changeset e078306e0d02 in tryton-tools:default details: https://hg.tryton.org/tryton-tools?cmd=changeset&node=e078306e0d02 description: Update repository to the requested branch
When using shared pool of repository, cloning with a branch argument does not always update to the requested branch. diffstat: reviewbot.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diffs (12 lines): diff -r 93a228fc7e69 -r e078306e0d02 reviewbot.py --- a/reviewbot.py Wed May 05 23:08:26 2021 +0200 +++ b/reviewbot.py Fri May 07 10:06:09 2021 +0200 @@ -59,6 +59,8 @@ if branch: subprocess.check_call( ['hg', 'clone', '-q', '-b', branch, repo_url, repo_dir]) + subprocess.check_call( + ['hg', 'update', '-q', branch, '--cwd', repo_dir]) else: subprocess.check_call(['hg', 'clone', '-q', repo_url, repo_dir]) return repo_dir