Bug 437064 - DOM Inspector should live in its own repository.
authorJustin Wood <Callek@gmail.com>
Fri, 15 Aug 2008 19:47:02 -0400
changeset 107 2d56d558d2b986266395f69772caed71af981af8
parent 106 f46fea54c2d53478758f4442b4e34243b9d93157
child 108 fad5a882c378061de4f6aa3f9582ae8bd8a7eb95
push id94
push userCallek@gmail.com
push dateFri, 15 Aug 2008 23:56:09 +0000
treeherdercomm-central@2d56d558d2b9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs437064
Bug 437064 - DOM Inspector should live in its own repository. comm-central patch to actually checkout from the new repo. r=KaiRo
client.py
--- a/client.py
+++ b/client.py
@@ -12,16 +12,18 @@ EXTENSION_DIRS = ('extensions/typeaheadf
                   'extensions/wallet',)
 LDAPCSDK_DIRS = ('directory/c-sdk',)
 
 CHATZILLA_DIRS = ('extensions/irc',)
 VENKMAN_DIRS = ('extensions/venkman',)
 
 # URL of the default hg repository to clone for Mozilla.
 DEFAULT_MOZILLA_REPO = 'http://hg.mozilla.org/mozilla-central/'
+# URL of the default hg repository to clone for inspector.
+DEFAULT_INSPECTOR_REPO = 'http://hg.mozilla.org/dom-inspector/'
 
 import os
 import sys
 import datetime
 from optparse import OptionParser
 
 topsrcdir = os.path.dirname(__file__)
 if topsrcdir == '':
@@ -83,16 +85,23 @@ o.add_option("--skip-comm", dest="skip_c
 
 o.add_option("-z", "--mozilla-repo", dest="mozilla_repo",
              default=None,
              help="URL of Mozilla repository to pull from (default: use hg default in mozilla/.hg/hgrc; or if that file doesn't exist, use \"" + DEFAULT_MOZILLA_REPO + "\".)")
 o.add_option("--skip-mozilla", dest="skip_mozilla",
              action="store_true", default=False,
              help="Skip pulling the Mozilla repository.")
 
+o.add_option("--inspector-repo", dest="inspector_repo",
+             default=None,
+             help="URL of DOM inspector repository to pull from (default: use hg default in mozilla/extensions/inspector/.hg/hgrc; or if that file doesn't exist, use \"" + DEFAULT_INSPECTOR_REPO + "\".)")
+o.add_option("--skip-inspector", dest="skip_inspector",
+             action="store_true", default=False,
+             help="Skip pulling the DOM inspector repository.")
+
 o.add_option("--skip-cvs", dest="skip_cvs",
              action="store_true", default=False,
              help="Skip pulling the old directories from the Mozilla CVS repository.")
 o.add_option("--skip-chatzilla", dest="skip_chatzilla",
              action="store_true", default=False,
              help="Skip pulling the ChatZilla repository.")
 o.add_option("--skip-venkman", dest="skip_venkman",
              action="store_true", default=False,
@@ -130,31 +139,39 @@ def fixup_repo_options(options):
         print "*** The -m option is required for the initial checkout."
         sys.exit(2)
 
     # Handle special case: initial checkout of Mozilla.
     if (options.mozilla_repo is None
             and not os.path.exists(os.path.join(topsrcdir, 'mozilla'))):
         options.mozilla_repo = DEFAULT_MOZILLA_REPO
 
+    # Handle special case: initial checkout of inspector.
+    if (options.inspector_repo is None
+            and not os.path.exists(os.path.join(topsrcdir, 'mozilla', 'extensions', 'inspector'))):
+        options.inspector_repo = DEFAULT_INSPECTOR_REPO
+
 try:
     (options, (action,)) = o.parse_args()
 except ValueError:
     o.print_help()
     sys.exit(2)
 
 fixup_repo_options(options)
 
 if action in ('checkout', 'co'):
     if not options.skip_comm:
         do_hg_pull('.', options.comm_repo, options.hg)
 
     if not options.skip_mozilla:
         do_hg_pull('mozilla', options.mozilla_repo, options.hg)
 
+    if not options.skip_inspector:
+        do_hg_pull(os.path.join('mozilla', 'extensions', 'inspector'), options.inspector_repo, options.hg)
+
     if not options.skip_cvs:
         if not options.skip_calendar:
           do_cvs_checkout(CALENDAR_DIRS, CALENDAR_CO_TAG, options.cvsroot, options.cvs, '')
         do_cvs_checkout(LDAPCSDK_DIRS, LDAPCSDK_CO_TAG, options.cvsroot, options.cvs, '')
         if os.path.exists(os.path.join(topsrcdir, 'mozilla', 'extensions')):
           do_cvs_checkout(EXTENSION_DIRS, EXTENSION_CO_TAG, options.cvsroot, options.cvs, 'mozilla')
         else:
           print >>sys.stderr, "Warning: mozilla/extensions does not exist, built-in extensions could not be checked out."