##// END OF EJS Templates
subrepo: more isolation, only use ui for hg.peer when there is no repo...
Simon Heimberg -
r17875:92ba3cd5 stable
parent child Browse files
Show More
@@ -3538,7 +3538,7 b' def identify(ui, repo, source=None, rev='
3538
3538
3539 if source:
3539 if source:
3540 source, branches = hg.parseurl(ui.expandpath(source))
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 repo = peer.local()
3542 repo = peer.local()
3543 revs, checkout = hg.addbranchrevs(repo, peer, branches, None)
3543 revs, checkout = hg.addbranchrevs(repo, peer, branches, None)
3544
3544
@@ -353,7 +353,8 b' def clone(ui, peeropts, source, dest=Non'
353 node=node.hex(node.nullid))
353 node=node.hex(node.nullid))
354 else:
354 else:
355 try:
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 except OSError, inst:
358 except OSError, inst:
358 if inst.errno == errno.EEXIST:
359 if inst.errno == errno.EEXIST:
359 dircleanup.close()
360 dircleanup.close()
General Comments 0
You need to be logged in to leave comments. Login now