changeset 2736:eb1bde9560bc

fix output file format %r
author Christian Ebert <blacktrash@gmx.net>
date Sat, 29 Jul 2006 18:15:08 +0200
parents 07026da25ed8
children a5c43944e1ee
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Jul 28 21:20:41 2006 -0300
+++ b/mercurial/commands.py	Sat Jul 29 18:15:08 2006 +0200
@@ -287,7 +287,8 @@
         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: