Make print what was pulled from CVS/hg. b=433390 r=jorendorff, ted.mielczarek
authorL. David Baron <>
Mon, 02 Jun 2008 15:52:25 -0700
changeset 15202 75f25ddb2329cb136a20d6f139f530e0b1e05c76
parent 15201 a61611c9992a4f57427da96bdc668713ae236ea1
child 15203 383f7c74e05525db71510d04a020f3686c66c4e8
push id53
push dateMon, 02 Jun 2008 22:53:58 +0000
treeherdermozilla-central@6693b069fee5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff, ted.mielczarek
Make print what was pulled from CVS/hg. b=433390 r=jorendorff, ted.mielczarek
--- a/
+++ b/
@@ -9,16 +9,17 @@ NSS_DIRS  = ('dbm',
 # URL of the default hg repository to clone for Tamarin.
 import os
 import sys
+import datetime
 from optparse import OptionParser
 topsrcdir = os.path.dirname(__file__)
 if topsrcdir == '':
     topsrcdir = '.'
     from subprocess import check_call
@@ -42,27 +43,31 @@ def do_hg_pull(dir, repository, hg):
     if not os.path.exists(fulldir):
         fulldir = os.path.join(topsrcdir, dir)
         check_call_noisy([hg, 'clone', repository, fulldir])
         cmd = [hg, 'pull', '-u', '-R', fulldir]
         if repository is not None:
+    check_call([hg, 'parent', '-R', fulldir,
+                '--template=Updated to revision {node}.\n'])
 def do_cvs_checkout(modules, tag, cvsroot, cvs):
     """Check out a CVS directory.
     modules is a list of directories to check out, e.g. ['nsprpub']
     for module in modules:
         (parent, leaf) = os.path.split(module)
+        print "CVS checkout begin: " + datetime.datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S UTC")
         check_call_noisy([cvs, '-d', cvsroot,
                           'checkout', '-P', '-r', tag, '-d', leaf,
                           'mozilla/%s' % module],
                          cwd=os.path.join(topsrcdir, parent))
+        print "CVS checkout end: " + datetime.datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S UTC")
 o = OptionParser(usage=" [options] checkout")
 o.add_option("-m", "--mozilla-repo", dest="mozilla_repo",
              help="URL of Mozilla repository to pull from (default: use hg default in .hg/hgrc)")
 o.add_option("--skip-mozilla", dest="skip_mozilla",
              action="store_true", default=False,
              help="Skip pulling the Mozilla repository.")