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
--- 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,