# HG changeset patch # User Martin von Zweigbergk # Date 1522861988 25200 # Node ID d5e1678026fd34ce5dd8f5b4c61bd503e50a2b63 # Parent 7c8524efd847a8dd245a9075fe1a8cd897b64073 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 diff -r 7c8524efd847 -r d5e1678026fd mercurial/commands.py --- 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,