mercurial/cmdutil.py
changeset 4836 0e2d0a78f81a
parent 4825 3cf94964c56b
child 4906 30847b8af7ca
child 4962 10afa3fab6b4
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: