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

            Bug ID: 6516
           Summary: Tags in .hgtags somtimes not usable
           Product: Mercurial
           Version: 5.6
          Hardware: PC
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzi...@mercurial-scm.org
          Reporter: dirk.heinri...@altum.de
                CC: mercurial-devel@mercurial-scm.org
    Python Version: ---

Since a few weeks now, we see a strange phenomenon in one of our repositories
where newly attached tags are properly recorded in .hgtags, but cannot be used.
The only way to fix the problem is to remove those tags by manually editing
.hgtags and reattach them.

For example:

% grep AXC_21.3_11 .hgtags
90a3ad39ec61076700f9ba9c8b484832c73f205c AXC_21.3_110
3ea4e9df54be1502ebb2c58beb1497dfb5ef4fb1 AXC_21.3_112
ac32a874067ed9aab86993de17c5619abd7df21f AXC_21.3_114
f7e8199d0ff44b6c2edec05f703d8d9b132860dd AXC_21.3_115
37a639ce1aee0528897890ee69d5729f60589355 AXC_21.3_116
81ef8873cbc49c68599013e30370e2e2d1810345 AXC_21.3_117
adf801c043e6b2578bf46b00f90fb978e24e3ec6 AXC_21.3_119
% hg id -r AXC_21.3_114
ac32a874067e AXC_21.3_114
% hg id -r AXC_21.3_115      
abort: unknown revision 'AXC_21.3_115'!
% hg log -r f7e8199d0ff44b6c2edec05f703d8d9b132860dd
changeset:   133967:f7e8199d0ff4
user:        <redacted>
date:        Tue May 04 10:26:17 2021 +0200
summary:     <redacted>

This happens for the last 4 tags.

Now I edit .hgtags and reattach the tags:

% vi .hgtags
% hg commit -m "NO-TICKET: Remove unusable tags."
% hg tag -m "NO-TICKET: Reattach unusable tag." -r
f7e8199d0ff44b6c2edec05f703d8d9b132860dd AXC_21.3_115
% hg tag -m "NO-TICKET: Reattach unusable tag." -r
37a639ce1aee0528897890ee69d5729f60589355 AXC_21.3_116 
% hg tag -m "NO-TICKET: Reattach unusable tag." -r
81ef8873cbc49c68599013e30370e2e2d1810345 AXC_21.3_117
% hg tag -m "NO-TICKET: Reattach unusable tag." -r
adf801c043e6b2578bf46b00f90fb978e24e3ec6 AXC_21.3_119
% grep AXC_21.3_11 .hgtags
90a3ad39ec61076700f9ba9c8b484832c73f205c AXC_21.3_110
3ea4e9df54be1502ebb2c58beb1497dfb5ef4fb1 AXC_21.3_112
ac32a874067ed9aab86993de17c5619abd7df21f AXC_21.3_114
f7e8199d0ff44b6c2edec05f703d8d9b132860dd AXC_21.3_115
37a639ce1aee0528897890ee69d5729f60589355 AXC_21.3_116
81ef8873cbc49c68599013e30370e2e2d1810345 AXC_21.3_117
adf801c043e6b2578bf46b00f90fb978e24e3ec6 AXC_21.3_119
% hg id -r AXC_21.3_115                                                         
f7e8199d0ff4 AXC_21.3_115

Now they can be used again.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to