changeset 8851:52cf210d0046

tags: simplify rev handling
author Matt Mackall <mpm@selenic.com>
date Thu, 18 Jun 2009 20:50:33 -0500
parents 9db1c8e1cf17
children a81652fcaf6b
files mercurial/localrepo.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Jun 18 20:49:50 2009 -0500
+++ b/mercurial/localrepo.py	Thu Jun 18 20:50:33 2009 -0500
@@ -295,12 +295,11 @@
             ret = []
             for node in reversed(self.heads()):
                 c = self[node]
-                rev = c.rev()
                 try:
                     fnode = c.filenode('.hgtags')
                 except error.LookupError:
                     continue
-                ret.append((rev, node, fnode))
+                ret.append((node, fnode))
                 if fnode in last:
                     ret[last[fnode]] = None
                 last[fnode] = len(ret) - 1
@@ -308,7 +307,7 @@
 
         # read the tags file from each head, ending with the tip
         f = None
-        for rev, node, fnode in tagnodes():
+        for node, fnode in tagnodes():
             f = (f and f.filectx(fnode) or
                  self.filectx('.hgtags', fileid=fnode))
             readtags(f.data().splitlines(), f, "global")