# HG changeset patch # User osimons # Date 1265909770 0 # Node ID 9b5630fdd35e995ab13e754804c17d6d7133cd96 # Parent a3197bba9c210fcaa202787f96c1d9dac0e2848f Use the hash and not the sequence number when updating local Mercurial repository. The hash is guaranteed to refer to the same changeset, whereas the sequence number may differ if local repository contains other changes. Closes #528. diff --git a/bitten/build/hgtools.py b/bitten/build/hgtools.py --- a/bitten/build/hgtools.py +++ b/bitten/build/hgtools.py @@ -18,7 +18,7 @@ """ args = ['pull', '-u'] if revision: - args += ['-r', revision.split(':')[0]] + args += ['-r', revision.split(':')[1]] from bitten.build import shtools returncode = shtools.execute(ctxt, file_='hg', args=args, dir_=dir_)