comparison mercurial/hg.py @ 17874:2ba70eec1cf0 stable

peer: subrepo isolation, pass repo instead of repo.ui to hg.peer Do not pass ui because it contains the configuration of the repo. It is the same object as repo.ui. When a repo is passed to hg.peer, the global configuration is read from repo.baseui.
author Simon Heimberg <simohe@besonet.ch>
date Sat, 28 Jul 2012 23:28:36 +0200
parents 7d4e98bf114d
children 92ba3cd55be6
comparison
equal deleted inserted replaced
17873:573bec4ab7ba 17874:2ba70eec1cf0
346 os.mkdir(dstcachedir) 346 os.mkdir(dstcachedir)
347 util.copyfile(srcbranchcache, dstbranchcache) 347 util.copyfile(srcbranchcache, dstbranchcache)
348 348
349 # we need to re-init the repo after manually copying the data 349 # we need to re-init the repo after manually copying the data
350 # into it 350 # into it
351 destpeer = peer(ui, peeropts, dest) 351 destpeer = peer(srcrepo, peeropts, dest)
352 srcrepo.hook('outgoing', source='clone', 352 srcrepo.hook('outgoing', source='clone',
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(ui, peeropts, dest, create=True)