mercurial/cmdutil.py
changeset 4867 0e2d0a78f81a
parent 4842 3cf94964c56b
child 4944 10afa3fab6b4
child 4950 30847b8af7ca
equal deleted inserted replaced
4866:9858477ed74c 4867: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: