diff -r 32292ad53f9f -r 5bef0655f2e9 mercurial/commands.py --- a/mercurial/commands.py Mon Feb 18 13:20:59 2013 -0600 +++ b/mercurial/commands.py Mon Feb 18 13:21:27 2013 -0600 @@ -1068,7 +1068,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,