Using cygwin and TortoiseHg in parallel

Gilles Moris gilles.moris at
Tue Jan 4 03:02:59 CST 2011

On Monday 03 January 2011 04:06:30 pm Jean-Pierre Bergamin wrote:
> Hello everyone
> I'd like to use cygwin and TortoiseHg on the same repository. I'm now
> running into the following issue:
> - I edit a file with PSPad.
> - I commit it with TortoiseHg.
> - "hg st" in cygwin still shows me that the just commited file has
> changes, but "hg diff" shows no pending changed. When I commit the file
> in cygwin as well, "hg st" show no modified files anymore.
> [james at JAMES-PC ~/test/my-branch]$ hg st
> M hello.txt
> [james at JAMES-PC ~/test/my-branch]$ hg diff --git
> [james at JAMES-PC ~/test/my-branch]$
> When I commit the changes in cygwin, everything is ok.
> Could this be some issue with EOL styles? Or any other ideas why files
> that have been commited with TortoiseHg still are shown as modified
> within cygwin?
> Best regards,
> James

This may has to do with the way Cygwin maps POSIX file permissions from 
Windows ACE. I never dig it up more than that since I am a very occasional 
user of Cygwin and know very little about NT file security, but you should 
look at
In particular, see how the execution right of the Everyone group is mapped to 
the other's executable bit.

So probably your files inherit the Everyone execution rights from the toplevel 
folder when they are edited, which translate in the executable bit to be set. 
What is strange is why 'hg diff --git' does not show anything. It should if 
my assumption is true.


More information about the Mercurial mailing list