hg branches -a incorrect in mercurial 3.1.1

Augie Fackler raf at durin42.com
Fri Dec 19 16:03:36 UTC 2014


On Dec 19, 2014, at 3:51 AM, Mariska Hoogenboom <M.Hoogenboom at nl.ccv.eu> wrote:

> 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?

Without knowing a lot more about your repository history, it’s hard to know. Does Mercurial 3.2.3 solve the problem for you?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20141219/333e43d0/attachment.asc>


More information about the Mercurial mailing list