copies: guard debug section with ui.debugflag
authorMads Kiilerich <madski@unity3d.com>
Tue, 25 Feb 2014 20:31:53 +0100
changeset 20990 d9e211a658eb
parent 20989 e8533ec2d222
child 20991 a05d694599f9
copies: guard debug section with ui.debugflag
mercurial/copies.py
--- a/mercurial/copies.py	Tue Feb 25 20:31:51 2014 +0100
+++ b/mercurial/copies.py	Tue Feb 25 20:31:53 2014 +0100
@@ -272,7 +272,7 @@
         if len(fl) == 2 and fl[0] == fl[1]:
             copy[fl[0]] = of # not actually divergent, just matching renames
 
-    if fullcopy:
+    if fullcopy and repo.ui.debugflag:
         repo.ui.debug("  all copies found (* = to merge, ! = divergent, "
                       "% = renamed and deleted):\n")
         for f in sorted(fullcopy):