##// END OF EJS Templates
localrepo: back out changeset b08af8f0ac01...
Pierre-Yves David -
r24234:7977d35d default
parent child Browse files
Show More
@@ -504,6 +504,7 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
507 def _tag(self, names, node, message, local, user, date, extra={},
508 def _tag(self, names, node, message, local, user, date, extra={},
508 editor=False):
509 editor=False):
509 if isinstance(names, str):
510 if isinstance(names, str):
@@ -795,44 +795,3 b' Test issue 4506'
795
795
796 #endif
796 #endif
797
797
798 $ hg init a
799 $ cd a
800 $ touch foo
801 $ hg add foo
802 $ hg ci -mfoo
803 $ touch bar
804 $ hg add bar
805 $ hg ci -mbar
806 $ hg up 0
807 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
808 $ touch quux
809 $ hg add quux
810 $ hg ci -m quux
811 created new head
812 $ hg up 1
813 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
814 $ hg tag 1.0
815
816 $ hg up 2
817 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
818 $ hg log -G
819 o 3:bc47fc7e1c1d (draft) [tip ] Added tag 1.0 for changeset 50c889141114
820 |
821 | @ 2:3d7f255a0081 (draft) [ ] quux
822 | |
823 o | 1:50c889141114 (draft) [1.0 ] bar
824 |/
825 o 0:1f7b0de80e11 (draft) [ ] foo
826
827 $ hg debugobsolete `getid bar`
828 $ hg debugobsolete `getid 1.0`
829 $ hg tag 1.0
830 $ hg log -G
831 @ 4:f9f2ab71ffd5 (draft) [tip ] Added tag 1.0 for changeset 3d7f255a0081
832 |
833 o 2:3d7f255a0081 (draft) [1.0 ] quux
834 |
835 o 0:1f7b0de80e11 (draft) [ ] foo
836
837 $ cat .hgtags
838 3d7f255a008103380aeb2a7d581fe257f40969e7 1.0
General Comments 0
You need to be logged in to leave comments. Login now