branch | stable |
changeset 17875 | 92ba3cd55be6 |
parent 17849 | 6da47b655d97 |
child 17887 | 0e2846b2482c |
--- a/mercurial/commands.py Sat Jul 28 23:28:36 2012 +0200 +++ b/mercurial/commands.py Thu Oct 04 19:46:43 2012 +0200 @@ -3538,7 +3538,7 @@ if source: source, branches = hg.parseurl(ui.expandpath(source)) - peer = hg.peer(ui, opts, source) + peer = hg.peer(repo or ui, opts, source) # only pass ui when no repo repo = peer.local() revs, checkout = hg.addbranchrevs(repo, peer, branches, None)