Bug 459396. make client.py use 'hg pull -r tip' when pulling to work around hg bug. r=Callek
authorPhilippe M. Chiasson <gozer@mozillamessaging.com>
Fri, 10 Oct 2008 12:59:43 -0400
changeset 576 9e490af402e6d85f192de982c1eda00a1a1e469f
parent 574 da42f7f36f7b2e29a9a82076fc261b28ba9a1cb2
child 577 0c8a7645484fdf5252260c8a7949f8e2bfad1e2b
push id512
push usergozer@mozillamessaging.com
push dateFri, 10 Oct 2008 19:41:11 +0000
treeherdercomm-central@0c8a7645484f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersCallek
bugs459396
Bug 459396. make client.py use 'hg pull -r tip' when pulling to work around hg bug. r=Callek Upstream bug: http://www.selenic.com/mercurial/bts/issue1320
client.py
--- a/client.py
+++ b/client.py
@@ -51,17 +51,17 @@ def do_hg_pull(dir, repository, hg, rev)
     # clone if the dir doesn't exist, pull if it does
     hgopts = []
     if options.hgopts:
         hgopts = options.hgopts.split()
     if not os.path.exists(fulldir):
         fulldir = os.path.join(topsrcdir, dir)
         check_call_noisy([hg, 'clone'] + hgopts + [repository, fulldir])
     else:
-        cmd = [hg, 'pull', '-R', fulldir ] + hgopts
+        cmd = [hg, 'pull', '-R', fulldir, '-r', 'tip' ] + hgopts
         if repository is not None:
             cmd.append(repository)
         check_call_noisy(cmd)
     # update to specific revision
     if options.verbose:
         cmd = [hg, 'update', '-v', '-r', rev, '-R', fulldir ] + hgopts
     else:
         cmd = [hg, 'update', '-r', rev, '-R', fulldir ] + hgopts