Bug 451887 – Special case cvs checkout on HEAD in client.py for comm-central
authorIan Neal <iann_cvs@blueyonder.co.uk>
Sun, 24 Aug 2008 02:07:00 +0100
changeset 176 b9818424c55b853c5c78aeee6b061e66db0d432b
parent 175 3f93f937cce7eb68cba43c8ff10c0bca13fa2682
child 177 c136db2028c9c125306d69e01155bf4d812d30d1
push id152
push useriann_cvs@blueyonder.co.uk
push dateSun, 24 Aug 2008 01:07:32 +0000
treeherdercomm-central@b9818424c55b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs451887
Bug 451887 – Special case cvs checkout on HEAD in client.py for comm-central p=me r=kairo
client.py
--- a/client.py
+++ b/client.py
@@ -64,20 +64,26 @@ def do_hg_pull(dir, repository, hg):
 
 def do_cvs_checkout(modules, tag, cvsroot, cvs, checkoutdir):
     """Check out a CVS directory into the mozilla/ subdirectory.
     modules is a list of directories to check out, e.g. ['extensions/irc']
     """
     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, '-q',
-                          'checkout', '-P', '-r', tag, '-d', leaf,
-                          'mozilla/%s' % module],
-                         cwd=os.path.join(topsrcdir, checkoutdir, parent))
+        if tag == 'HEAD':
+            check_call_noisy([cvs, '-d', cvsroot, '-q',
+                              'checkout', '-P', '-A', '-d', leaf,
+                              'mozilla/%s' % module],
+                             cwd=os.path.join(topsrcdir, checkoutdir, parent))
+        else:
+            check_call_noisy([cvs, '-d', cvsroot, '-q',
+                              'checkout', '-P', '-r', tag, '-d', leaf,
+                              'mozilla/%s' % module],
+                             cwd=os.path.join(topsrcdir, checkoutdir, parent))
         print "CVS checkout end: " + datetime.datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S UTC")
 
 o = OptionParser(usage="client.py [options] checkout")
 o.add_option("-m", "--comm-repo", dest="comm_repo",
              default=None,
              help="URL of comm (Calendar/Mail/Suite) repository to pull from (default: use hg default in .hg/hgrc)")
 o.add_option("--skip-comm", dest="skip_comm",
              action="store_true", default=False,