comparison mercurial/hg.py @ 15741:60344b83e442

phases: on copy clone, do not copy phases data if repote is publishing
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 26 Dec 2011 13:48:31 +0100
parents dbdb8aa70503
children cd956049fc14
comparison
equal deleted inserted replaced
15740:62aa9305399d 15741:60344b83e442
181 ''' 181 '''
182 destlock = None 182 destlock = None
183 try: 183 try:
184 hardlink = None 184 hardlink = None
185 num = 0 185 num = 0
186 srcpublishing = srcrepo.ui.configbool('phases', 'publish', True)
186 for f in srcrepo.store.copylist(): 187 for f in srcrepo.store.copylist():
188 if srcpublishing and f.endswith('phaseroots'):
189 continue
187 src = os.path.join(srcrepo.sharedpath, f) 190 src = os.path.join(srcrepo.sharedpath, f)
188 dst = os.path.join(destpath, f) 191 dst = os.path.join(destpath, f)
189 dstbase = os.path.dirname(dst) 192 dstbase = os.path.dirname(dst)
190 if dstbase and not os.path.exists(dstbase): 193 if dstbase and not os.path.exists(dstbase):
191 os.mkdir(dstbase) 194 os.mkdir(dstbase)