Show More
@@ -3538,7 +3538,7 b' def identify(ui, repo, source=None, rev=' | |||
|
3538 | 3538 | |
|
3539 | 3539 | if source: |
|
3540 | 3540 | source, branches = hg.parseurl(ui.expandpath(source)) |
|
3541 | peer = hg.peer(ui, opts, source) | |
|
3541 | peer = hg.peer(repo or ui, opts, source) # only pass ui when no repo | |
|
3542 | 3542 | repo = peer.local() |
|
3543 | 3543 | revs, checkout = hg.addbranchrevs(repo, peer, branches, None) |
|
3544 | 3544 |
@@ -353,7 +353,8 b' def clone(ui, peeropts, source, dest=Non' | |||
|
353 | 353 | node=node.hex(node.nullid)) |
|
354 | 354 | else: |
|
355 | 355 | try: |
|
356 | destpeer = peer(ui, peeropts, dest, create=True) | |
|
356 | destpeer = peer(srcrepo or ui, peeropts, dest, create=True) | |
|
357 | # only pass ui when no srcrepo | |
|
357 | 358 | except OSError, inst: |
|
358 | 359 | if inst.errno == errno.EEXIST: |
|
359 | 360 | dircleanup.close() |
General Comments 0
You need to be logged in to leave comments.
Login now