pull: pass rev to check out as integer to postincoming()
authorMartin von Zweigbergk <martinvonz@google.com>
Wed, 04 Apr 2018 10:13:08 -0700
changeset 37358 d5e1678026fd
parent 37357 7c8524efd847
child 37359 e27298bf11dd
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
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,