Mercurial > hg
changeset 4836:0e2d0a78f81a
archive: make the %r escape work.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Wed, 11 Jul 2007 19:56:16 -0300 |
parents | 9858477ed74c |
children | 192cd95c2ba8 242026115e6a |
files | mercurial/cmdutil.py tests/test-archive tests/test-archive.out |
diffstat | 3 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Wed Jul 11 19:56:16 2007 -0300 +++ b/mercurial/cmdutil.py Wed Jul 11 19:56:16 2007 -0300 @@ -542,9 +542,9 @@ try: if node: expander.update(node_expander) - if node and revwidth is not None: + if node: expander['r'] = (lambda: - str(repo.changelog.rev(node)).zfill(revwidth)) + str(repo.changelog.rev(node)).zfill(revwidth or 0)) if total is not None: expander['N'] = lambda: str(total) if seqno is not None: