Mercurial > hg-stable
changeset 37358:d5e1678026fd
pull: pass rev to check out as integer to postincoming()
I don't know if there's ever been a need for it to be a string (it's
been like that since 02f40b2ece3f (commands: use rev from remote repo
when updating as part of a pull, 2009-10-21)). I'm soon going to
require it to be an integer, so let's fix this first.
Differential Revision: https://phab.mercurial-scm.org/D3086
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 04 Apr 2018 10:13:08 -0700 |
parents | 7c8524efd847 |
children | e27298bf11dd |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Apr 05 14:21:37 2018 +0530 +++ b/mercurial/commands.py Wed Apr 04 10:13:08 2018 -0700 @@ -4034,7 +4034,7 @@ brev = None if checkout: - checkout = "%d" % repo.changelog.rev(checkout) + checkout = repo.changelog.rev(checkout) # order below depends on implementation of # hg.addbranchrevs(). opts['bookmark'] is ignored,