diff mercurial/patch.py @ 3386: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
line wrap: on
line diff
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -526,7 +526,7 @@ def diff(repo, node1=None, node2=None, f
     if repo.ui.quiet:
         r = None
     else:
-        hexfunc = repo.ui.verbose and hex or short
+        hexfunc = repo.ui.debugflag and hex or short
         r = [hexfunc(node) for node in [node1, node2] if node]
 
     if opts.git: