--- a/mercurial/revset.py Tue Jan 27 17:24:12 2015 -0800
+++ b/mercurial/revset.py Tue Feb 03 17:54:01 2015 -0600
@@ -1277,7 +1277,7 @@
names = set()
for ns in namespaces:
for name in ns.listnames(repo):
- names.update(ns.nodes(repo, name))
+ names.update(repo[n].rev() for n in ns.nodes(repo, name))
names -= set([node.nullrev])
return subset & names
--- a/tests/test-revset.t Tue Jan 27 17:24:12 2015 -0800
+++ b/tests/test-revset.t Tue Feb 03 17:54:01 2015 -0600
@@ -787,6 +787,12 @@
$ log 'present(named("unknown"))'
$ log 'present(named("re:unknown"))'
+ $ log 'tag()'
+ 6
+ $ log 'named("tags")'
+ 6
+ 9
+
issue2437
$ log '3 and p1(5)'