mercurial/commands.py
changeset 37309 88a056437061
parent 37308 0b4692b9646d
child 37312 e47bd4c71c5e
--- a/mercurial/commands.py	Mon Apr 02 15:10:41 2018 -0700
+++ b/mercurial/commands.py	Mon Apr 02 15:14:31 2018 -0700
@@ -1231,6 +1231,7 @@
         dest = ui.expandpath(dest or 'default-push', dest or 'default')
         dest, branches = hg.parseurl(dest, opts.get('branch'))
         other = hg.peer(repo, opts, dest)
+        revs = [repo[r].hex() for r in revs]
         revs, checkout = hg.addbranchrevs(repo, repo, branches, revs)
         heads = revs and map(repo.lookup, revs) or revs
         outgoing = discovery.findcommonoutgoing(repo, other,