[issue1552] "hg heads ." reports multiple heads where there is only one, in version 1.2

Knut Arild Erstad mercurial-bugs at selenic.com
Fri Mar 13 13:32:38 UTC 2009


New submission from Knut Arild Erstad <knutae at gmail.com>:

Using Mercurial 1.2, "hg fetch" stopped working with the following error:

abort: multiple heads in this branch (use "hg heads ." and "hg merge" to merge)

------ begin transcript (hg 1.2)
$ hg fetch
abort: multiple heads in this branch (use "hg heads ." and "hg merge" to merge)

$ hg heads .
changeset:   3298:72d10148992e
tag:         tip
user:        [censored]
date:        Fri Mar 13 13:40:35 2009 +0100
summary:     Fix default value for preview to ensure that test works everywhere

changeset:   712:ef5e0a3ad198
user:        [cencored]
date:        Tue Oct 31 16:34:46 2006 +0000
summary:     nle trunk: embed manifest file automagically in beagle.dll

$ hg heads
changeset:   3298:72d10148992e
tag:         tip
user:        [censored]
date:        Fri Mar 13 13:40:35 2009 +0100
summary:     Fix default value for preview to ensure that test works everywhere

$ hg version
Mercurial Distributed SCM (version 1.2)

Copyright (C) 2005-2008 Matt Mackall <mpm at selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

------ end transcript (hg 1.2)

After downgrading to Mercurial 1.1.2, everything works as expected:

------ begin transcript (hg 1.1.2)
$ hg version
Mercurial Distributed SCM (version 1.1.2+20090302)

Copyright (C) 2005-2008 Matt Mackall <mpm at selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ hg heads .
changeset:   3298:72d10148992e
tag:         tip
user:        [cencored]
date:        Fri Mar 13 13:40:35 2009 +0100
summary:     Fix default value for preview to ensure that test works everywhere

------ end transcript (hg 1.1.2)

The repository contains proprietary code, so unfortunately I cannot share it. 
It has been converted from subversion and contains several inactive named
branches, but only one active branch (default).

----------
messages: 8806
nosy: knute
priority: bug
status: unread
title: "hg heads ." reports multiple heads where there is only one, in version 1.2
topic: 1.2

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1552>
____________________________________________________




More information about the Mercurial-devel mailing list