fix output file format %r
authorChristian Ebert <blacktrash@gmx.net>
Sat, 29 Jul 2006 18:15:08 +0200
changeset 2735 eb1bde9560bc
parent 2734 07026da25ed8
child 2736 a5c43944e1ee
fix output file format %r
mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -287,7 +287,8 @@ def make_filename(repo, pat, node,
         if node:
             expander.update(node_expander)
         if node and revwidth is not None:
-            expander['r'] = lambda: str(r.rev(node)).zfill(revwidth)
+            expander['r'] = (lambda:
+                    str(repo.changelog.rev(node)).zfill(revwidth))
         if total is not None:
             expander['N'] = lambda: str(total)
         if seqno is not None: