[PATCH 2 of 2] debug: pass debug flag to remote ui object
Eric Sumner
ericsumner at fb.com
Tue Apr 14 15:32:29 CDT 2015
# HG changeset patch
# User Eric Sumner <ericsumner at fb.com>
# Date 1429043033 14400
# Tue Apr 14 16:23:53 2015 -0400
# Node ID b10599cba2adb8bf281ea9c913d6f235780618bf
# Parent b30cb32ea6821e165aab65051767aa810fdb8464
debug: pass debug flag to remote ui object
When we're talking to another repository, --debug shows more information than
setting ui.debug=True inside .hg/hgrc; this patch adds ui.debug to the config
options that get copied into the new UI object for remote repos
diff --git a/mercurial/hg.py b/mercurial/hg.py
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -691,4 +691,9 @@
elif v:
dst.setconfig('web', 'cacerts', util.expandpath(v), 'copied')
+ # copy debug flag
+ r = src.config('ui', 'debug')
+ if r:
+ dst.setconfig('ui', 'debug', r, 'copied')
+
return dst
More information about the Mercurial-devel
mailing list