What is the title of an older movie that centered around a group of revolutionaries and when two of them became romantically involved the man was shot and the woman had her head shaved?

You may be thinking of Ryan's Daughter [1970], directed by David Lean. Set in an isolated Irish village during World War I, it tells the story of the unhappily married Rosy Ryan, who has an affair with a British soldier. At the end, she is attacked by other villagers and they shave her head. The soldier commits suicide by blowing up a cache of explosives.