# HG changeset patch # User Christian Ebert # Date 1154189708 -7200 # Node ID eb1bde9560bc1b031eccc4640b46cf902795c290 # Parent 07026da25ed88f85b37119bbf134f828eb53874f fix output file format %r diff --git a/mercurial/commands.py b/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: