##// END OF EJS Templates
localrepo: don't reintroduce pruned tag entries when tagging...
Matt Harbison -
r24113:b08af8f0 default
parent child Browse files
Show More
@@ -504,7 +504,6 b' class localrepository(object):'
504 """
504 """
505 return hook.hook(self.ui, self, name, throw, **args)
505 return hook.hook(self.ui, self, name, throw, **args)
506
506
507 @unfilteredmethod
508 def _tag(self, names, node, message, local, user, date, extra={},
507 def _tag(self, names, node, message, local, user, date, extra={},
509 editor=False):
508 editor=False):
510 if isinstance(names, str):
509 if isinstance(names, str):
@@ -753,3 +753,45 b' Test that removing a local tag does not '
753 $ hg tags
753 $ hg tags
754 visible 0:193e9254ce7e
754 visible 0:193e9254ce7e
755 tip 0:193e9254ce7e
755 tip 0:193e9254ce7e
756
757 $ hg init a
758 $ cd a
759 $ touch foo
760 $ hg add foo
761 $ hg ci -mfoo
762 $ touch bar
763 $ hg add bar
764 $ hg ci -mbar
765 $ hg up 0
766 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
767 $ touch quux
768 $ hg add quux
769 $ hg ci -m quux
770 created new head
771 $ hg up 1
772 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
773 $ hg tag 1.0
774
775 $ hg up 2
776 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
777 $ hg log -G
778 o 3:bc47fc7e1c1d (draft) [tip ] Added tag 1.0 for changeset 50c889141114
779 |
780 | @ 2:3d7f255a0081 (draft) [ ] quux
781 | |
782 o | 1:50c889141114 (draft) [1.0 ] bar
783 |/
784 o 0:1f7b0de80e11 (draft) [ ] foo
785
786 $ hg debugobsolete `getid bar`
787 $ hg debugobsolete `getid 1.0`
788 $ hg tag 1.0
789 $ hg log -G
790 @ 4:f9f2ab71ffd5 (draft) [tip ] Added tag 1.0 for changeset 3d7f255a0081
791 |
792 o 2:3d7f255a0081 (draft) [1.0 ] quux
793 |
794 o 0:1f7b0de80e11 (draft) [ ] foo
795
796 $ cat .hgtags
797 3d7f255a008103380aeb2a7d581fe257f40969e7 1.0
General Comments 0
You need to be logged in to leave comments. Login now