Mercurial > hg
comparison mercurial/patch.py @ 3387:2065789f6a3e
use short hashes with diff -v
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 13 Oct 2006 15:34:35 -0300 |
parents | 1106e00e6847 |
children | 2d35a8d2b32d |
comparison
equal
deleted
inserted
replaced
3386:55476ce8e59c | 3387:2065789f6a3e |
---|---|
524 return None | 524 return None |
525 | 525 |
526 if repo.ui.quiet: | 526 if repo.ui.quiet: |
527 r = None | 527 r = None |
528 else: | 528 else: |
529 hexfunc = repo.ui.verbose and hex or short | 529 hexfunc = repo.ui.debugflag and hex or short |
530 r = [hexfunc(node) for node in [node1, node2] if node] | 530 r = [hexfunc(node) for node in [node1, node2] if node] |
531 | 531 |
532 if opts.git: | 532 if opts.git: |
533 copied = {} | 533 copied = {} |
534 for f in added: | 534 for f in added: |