Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 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 | 3cf94964c56b |
children | 30847b8af7ca 10afa3fab6b4 |
comparison
equal
deleted
inserted
replaced
4835:9858477ed74c | 4836:0e2d0a78f81a |
---|---|
540 } | 540 } |
541 | 541 |
542 try: | 542 try: |
543 if node: | 543 if node: |
544 expander.update(node_expander) | 544 expander.update(node_expander) |
545 if node and revwidth is not None: | 545 if node: |
546 expander['r'] = (lambda: | 546 expander['r'] = (lambda: |
547 str(repo.changelog.rev(node)).zfill(revwidth)) | 547 str(repo.changelog.rev(node)).zfill(revwidth or 0)) |
548 if total is not None: | 548 if total is not None: |
549 expander['N'] = lambda: str(total) | 549 expander['N'] = lambda: str(total) |
550 if seqno is not None: | 550 if seqno is not None: |
551 expander['n'] = lambda: str(seqno) | 551 expander['n'] = lambda: str(seqno) |
552 if total is not None and seqno is not None: | 552 if total is not None and seqno is not None: |