From 2f33e342f96255fc0caca810b5bba324f505a1e2 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 26 Oct 2014 17:48:07 +0200 Subject: Make hg pulls use URL from spec, not default --- lorry | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lorry b/lorry index b802ebd..898ee4c 100755 --- a/lorry +++ b/lorry @@ -451,7 +451,12 @@ class Lorry(cliapp.Application): hgdir = os.path.join(dirname, 'hg') if os.path.exists(hgdir): self.progress('.. updating hg branch') - self.run_program(['hg', 'pull', '--quiet', '--insecure'], cwd=hgdir) + + # Note that we always specify the URL from the spec, so + # that if the spec changes, we pick up the new URL. + self.run_program( + ['hg', 'pull', '--quiet', '--insecure', spec['url']], + cwd=hgdir) else: self.progress('.. doing initial hg branch') self.run_program(['hg', 'clone', '--quiet', '--insecure', spec['url'], hgdir]) -- cgit v1.2.1