comparison mercurial/cmdutil.py @ 4868:192cd95c2ba8

merge with crew-stable
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Wed, 11 Jul 2007 20:15:03 -0300
parents 0e2d0a78f81a
children 10afa3fab6b4 30847b8af7ca
comparison
equal deleted inserted replaced
4857:8be7ba425621 4868:192cd95c2ba8
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: