comparison mercurial/commands.py @ 2735:eb1bde9560bc

fix output file format %r
author Christian Ebert <blacktrash@gmx.net>
date Sat, 29 Jul 2006 18:15:08 +0200
parents 42a02b5773d4
children 3248aa10b388
comparison
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: