localrepo: back out changeset
b08af8f0ac01
Running the tags function filtered will lead to different results with different
filter levels. This seems too dangerous to be done blindly as
b08af8f0ac01 did.
--- a/mercurial/localrepo.py Mon Mar 09 12:32:29 2015 -0400
+++ b/mercurial/localrepo.py Thu Mar 05 14:42:25 2015 -0800
@@ -504,6 +504,7 @@
"""
return hook.hook(self.ui, self, name, throw, **args)
+ @unfilteredmethod
def _tag(self, names, node, message, local, user, date, extra={},
editor=False):
if isinstance(names, str):
--- a/tests/test-obsolete.t Mon Mar 09 12:32:29 2015 -0400
+++ b/tests/test-obsolete.t Thu Mar 05 14:42:25 2015 -0800
@@ -795,44 +795,3 @@
#endif
- $ hg init a
- $ cd a
- $ touch foo
- $ hg add foo
- $ hg ci -mfoo
- $ touch bar
- $ hg add bar
- $ hg ci -mbar
- $ hg up 0
- 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
- $ touch quux
- $ hg add quux
- $ hg ci -m quux
- created new head
- $ hg up 1
- 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
- $ hg tag 1.0
-
- $ hg up 2
- 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
- $ hg log -G
- o 3:bc47fc7e1c1d (draft) [tip ] Added tag 1.0 for changeset 50c889141114
- |
- | @ 2:3d7f255a0081 (draft) [ ] quux
- | |
- o | 1:50c889141114 (draft) [1.0 ] bar
- |/
- o 0:1f7b0de80e11 (draft) [ ] foo
-
- $ hg debugobsolete `getid bar`
- $ hg debugobsolete `getid 1.0`
- $ hg tag 1.0
- $ hg log -G
- @ 4:f9f2ab71ffd5 (draft) [tip ] Added tag 1.0 for changeset 3d7f255a0081
- |
- o 2:3d7f255a0081 (draft) [1.0 ] quux
- |
- o 0:1f7b0de80e11 (draft) [ ] foo
-
- $ cat .hgtags
- 3d7f255a008103380aeb2a7d581fe257f40969e7 1.0