[Bug 5539] New: hg prune leaves pruned tags in .hgtags

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Mon Apr 17 08:20:09 EDT 2017


https://bz.mercurial-scm.org/show_bug.cgi?id=5539

            Bug ID: 5539
           Summary: hg prune leaves pruned tags in .hgtags
           Product: Mercurial
           Version: 3.8.4
          Hardware: PC
                OS: Other
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: evolution
          Assignee: bugzilla at mercurial-scm.org
          Reporter: jeffpc at josefsipek.net
                CC: mercurial-devel at mercurial-scm.org,
                    pierre-yves.david at ens-lyon.org

Pruning a cset which adds a tag doesn't remove the tag from .hgtags.  A
subsequent tag creation leads to multiple lines in .hgtags.

$ cat test.sh 
#!/bin/sh

set -x

rm -rf buggy
hg init buggy
cd buggy
echo a > a
hg add a
hg commit -m "added a"
hg tag v0.11
hg prune .
echo aa >> a
hg commit -m "modified a"
hg tag v0.11
cat .hgtags
hg --hidden log -G --stat
$ ./test.sh 
+ rm -rf buggy
+ hg init buggy
+ cd buggy
+ echo a
+ 1> a
+ hg add a
+ hg commit -m 'added a'
+ hg tag v0.11
+ hg prune .
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
working directory now at ccea2ef020a2
1 changesets pruned
+ echo aa
+ 1>> a
+ hg commit -m 'modified a'
+ hg tag v0.11
+ cat .hgtags
ccea2ef020a28810372574e5f5c016978e2dc5c5 v0.11
c35f92a2909e9094124073f3267c5c05070dbcf5 v0.11
+ hg --hidden log -G --stat
@  changeset:   3:72b2005a4989
|  tag:         tip
|  user:        Josef 'Jeff' Sipek <jeffpc at josefsipek.net>
|  date:        Mon Apr 17 12:11:17 2017 -0400
|  summary:     Added tag v0.11 for changeset c35f92a2909e
|
|   .hgtags |  2 ++
|   1 files changed, 2 insertions(+), 0 deletions(-)
|
o  changeset:   2:c35f92a2909e
|  tag:         v0.11
|  parent:      0:ccea2ef020a2
|  user:        Josef 'Jeff' Sipek <jeffpc at josefsipek.net>
|  date:        Mon Apr 17 12:11:17 2017 -0400
|  summary:     modified a
|
|   a |  1 +
|   1 files changed, 1 insertions(+), 0 deletions(-)
|
| x  changeset:   1:f14b117cc4bb
|/   user:        Josef 'Jeff' Sipek <jeffpc at josefsipek.net>
|    date:        Mon Apr 17 12:11:16 2017 -0400
|    summary:     Added tag v0.11 for changeset ccea2ef020a2
|
|     .hgtags |  1 +
|     1 files changed, 1 insertions(+), 0 deletions(-)
|
o  changeset:   0:ccea2ef020a2
   user:        Josef 'Jeff' Sipek <jeffpc at josefsipek.net>
   date:        Mon Apr 17 12:11:16 2017 -0400
   summary:     added a

    a |  1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list