Fix update in cloneunified
authorGregory Szorc <gps@mozilla.com>
Mon, 22 Jul 2013 00:39:19 -0700
changeset 16 761f34455600006c20c9022ee30cbd69189ff420
parent 15 699ae892efef7dbd6ec0d0d45d6da82f824a5d27
child 17 838e18f486db459d6e20c2ab3cb18ec07df4c042
push id6
push usergszorc@mozilla.com
push dateMon, 22 Jul 2013 07:39:24 +0000
Fix update in cloneunified
__init__.py
--- a/__init__.py
+++ b/__init__.py
@@ -179,17 +179,17 @@ def cloneunified(ui, dest='gecko', **opt
     success = False
 
     try:
         for tree in ('esr17', 'b2g18', 'release', 'beta', 'aurora', 'central',
             'inbound'):
             peer = hg.peer(ui, {}, tree)
             ui.warn('Pulling from %s.\n' % peer.url())
             result = repo.pull(peer)
-        res = update(ui, repo, rev='central/default')
+        res = hg.update(repo, repo.lookup('central/default'))
         success = True
         return res
     finally:
         if not success:
             shutil.rmtree(path)
 
 
 @command('pushtree',