hg branches -a incorrect in mercurial 3.1.1

Mariska Hoogenboom M.Hoogenboom at nl.ccv.eu
Fri Dec 19 09:51:14 UTC 2014


Hi all,

We've got an issue with "hg branches" showing incorrect branches if the cloned repository has "unix" line endings and mercurial 3.1.1. is used. 

The mercurial clones are created from TeamCity 8.1.5 with mercurial 3.1.1 on a Windows server. The -via TeamCity- cloned repositories have a unix-line endings format. When I check on TeamCity server with mercurial 3.1.1, the active branches information is incorrect. When I copy the clone to a machine with mercurial 2.8.1 (on linux or windows), the active branches information is correct again. 
Note that Tortoisehg 3.1.1 on the same Windows server shows the active/closed branches correctly. But the with TortoiseHG shipped mercurial commandline, does not show the closed branches information correctly.

On Windows with mercurial 3.1.1

D:\Temp\test>hg branches -a
M1                           699:d77b9b9c0f33
default                      698:bada6c9a70bb

D:\Temp\test>hg branches -c
M1                           699:d77b9b9c0f33
default                      698:bada6c9a70bb

On linux with mercurial 2.8.1:

$ hg branches -a
default                      698:bada6c9a70bb

$ hg branches -c
default                      698:bada6c9a70bb
M1                           699:d77b9b9c0f33 (closed)

On windows with mercurial 2.8.1:

D:\Temp\test>hg branches -a
default                      698:bada6c9a70bb

D:\Temp\test>hg branches -c
default                      698:bada6c9a70bb
M1                           699:d77b9b9c0f33 (closed)

If I make a clone with mercurial 2.8.1. on linux, I can see the branches correctly on Windows with mercurial 3.1.1.
Is there a solution besides downgrading mercurial?

Thanks,
Mariska.


More information about the Mercurial mailing list