git-hg-sub-import: Affiche les traces pour subpaths seulement en mode debug
authorHugo Villeneuve <hugo@hugovil.com>
Fri, 28 Jun 2013 20:55:59 +0000 (16:55 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 31 Jul 2013 18:05:42 +0000 (14:05 -0400)
scripts/git-hg-sub-import

index 64b1035..9789578 100755 (executable)
@@ -24,8 +24,10 @@ hg_subpaths_config() {
         sp_src=${sp_src//\\/} # Remove windows separator (LSI)
         sp_dst=${subpaths//*=/}
 
-        echo "sp_src = $sp_src"
-        echo "sp_dst = $sp_dst"
+        if [ -n "${debug}" ]; then
+            echo "sp_src = $sp_src"
+            echo "sp_dst = $sp_dst"
+        fi
     fi
 }