diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-10-26 17:48:07 +0200 |
---|---|---|
committer | Richard Maw <richard.maw@gmail.com> | 2014-11-05 10:42:00 +0000 |
commit | 2f33e342f96255fc0caca810b5bba324f505a1e2 (patch) | |
tree | 6e4e6dcfa1037e2935d2c636d0c34b7e32934149 | |
parent | 2e4f9e911198ba117eee09b6192713215e7d109b (diff) | |
download | lorry-2f33e342f96255fc0caca810b5bba324f505a1e2.tar.gz |
Make hg pulls use URL from spec, not defaultbaserock/richardmaw/lars-url-change-fix
-rwxr-xr-x | lorry | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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]) |