Subrepository always shown as dirty when using backslash in path
Created originally on Bitbucket by rpeshkov (Roman Peshkov)
== Problem == When using subrepositories placed in some subdirectory of main repository and in .hgsub backslash is used as path delimiter, tortoisehg always show that subrepository is dirty.
== Software == Windows 7 Home Basic x64 TortoiseHG 2.4.3 x64 with Mercurial 2.3
== How to recreate situation == In some directory execute the following commands: hg init master-bad cd master-bad mkdir lib cd lib hg init nested cd .. echo lib\nested=lib\nested > .hgsub hg add hg ci -m "Commit"
Then open HG Workbench and add master-bad repository to your repository registry. Even after commit, subrepository will be marked as dirty as shown in attached file "bad.png".
== What should be ==
In some directory execute the following commands:
hg init master-good
cd master-good
mkdir lib
cd lib
hg init nested
cd ..
echo lib/nested=lib/nested > .hgsub
hg add
hg ci -m "Commit"
Notice that slash is used in "echo lib/nested=lib/nested > .hgsub" instead of backslash. Then open HG Workbench and add master-good repository to your repository registry. Subrepository is not marked as dirty. It's shown in attached file "good.png".