mercurial/commands.py
changeset 2735 eb1bde9560bc
parent 2732 42a02b5773d4
child 2739 3248aa10b388
equal deleted inserted replaced
2734:07026da25ed8 2735:eb1bde9560bc
   285 
   285 
   286     try:
   286     try:
   287         if node:
   287         if node:
   288             expander.update(node_expander)
   288             expander.update(node_expander)
   289         if node and revwidth is not None:
   289         if node and revwidth is not None:
   290             expander['r'] = lambda: str(r.rev(node)).zfill(revwidth)
   290             expander['r'] = (lambda:
       
   291                     str(repo.changelog.rev(node)).zfill(revwidth))
   291         if total is not None:
   292         if total is not None:
   292             expander['N'] = lambda: str(total)
   293             expander['N'] = lambda: str(total)
   293         if seqno is not None:
   294         if seqno is not None:
   294             expander['n'] = lambda: str(seqno)
   295             expander['n'] = lambda: str(seqno)
   295         if total is not None and seqno is not None:
   296         if total is not None and seqno is not None: