mercurial/commands.py
branchstable
changeset 18701 61c8327ced50
parent 18657 d4a79e075303
child 18703 5bef0655f2e9
child 18854 afab180307be
--- a/mercurial/commands.py	Fri Feb 15 15:06:43 2013 -0600
+++ b/mercurial/commands.py	Mon Feb 18 00:04:28 2013 +0900
@@ -1066,7 +1066,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, checkout = hg.addbranchrevs(repo, other, branches, revs)
+        revs, checkout = hg.addbranchrevs(repo, repo, branches, revs)
         heads = revs and map(repo.lookup, revs) or revs
         outgoing = discovery.findcommonoutgoing(repo, other,
                                                 onlyheads=heads,