Bug 446604 Provide -v option to client.py to list changed files during hg update. r=KaiRo,callek. a=KaiRo,dmose for checkin to closed tree
authorMark Banner <bugzilla@standard8.plus.com>
Tue, 22 Jul 2008 20:58:15 +0100
changeset 5 6cb90fe969331423b5189dfa2ada51a8d8e65241
parent 4 201855946b54aa8dd10e5a289b12c622f44d372d
child 6 1942f07a9fb818fe72ae8286f1c618b9a7b5a648
push id3
push userbugzilla@standard8.plus.com
push dateTue, 22 Jul 2008 19:59:47 +0000
treeherdercomm-central@6cb90fe96933 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersKaiRo, callek, KaiRo, dmose
bugs446604
Bug 446604 Provide -v option to client.py to list changed files during hg update. r=KaiRo,callek. a=KaiRo,dmose for checkin to closed tree
client.py
--- a/client.py
+++ b/client.py
@@ -46,17 +46,20 @@ def check_call_noisy(cmd, *args, **kwarg
 
 def do_hg_pull(dir, repository, hg):
     fulldir = os.path.join(topsrcdir, dir)
     # clone if the dir doesn't exist, pull if it does
     if not os.path.exists(fulldir):
         fulldir = os.path.join(topsrcdir, dir)
         check_call_noisy([hg, 'clone', repository, fulldir])
     else:
-        cmd = [hg, 'pull', '-u', '-R', fulldir]
+        if options.verbose:
+            cmd = [hg, 'pull', '-u', '-v', '-R', fulldir]
+        else:
+            cmd = [hg, 'pull', '-u', '-R', fulldir]
         if repository is not None:
             cmd.append(repository)
         check_call_noisy(cmd)
     check_call([hg, 'parent', '-R', fulldir,
                 '--template=Updated to revision {node}.\n'])
 
 def do_cvs_checkout(modules, tag, cvsroot, cvs, checkoutdir):
     """Check out a CVS directory into the mozilla/ subdirectory.
@@ -101,16 +104,19 @@ o.add_option("--skip-calendar", dest="sk
 
 o.add_option("--hg", dest="hg", default=os.environ.get('HG', 'hg'),
              help="The location of the hg binary")
 o.add_option("--cvs", dest="cvs", default=os.environ.get('CVS', 'cvs'),
              help="The location of the cvs binary")
 o.add_option("--cvsroot", dest="cvsroot",
              default=os.environ.get('CVSROOT', ':pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot'),
              help="The CVSROOT (default: :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot")
+o.add_option("-v", "--verbose", dest="verbose",
+             action="store_true", default=False,
+             help="Enable verbose output on hg updates")
 
 
 def fixup_repo_options(options):
     """ Check options.comm_repo and options.mozilla_repo values;
     populate mozilla_repo if needed.
 
     options.comm_repo and options.mozilla_repo are normally None.
     This is fine-- our "hg pull" commands will omit the repo URL.