Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/hg.py Mon Dec 26 13:47:37 2011 +0100 +++ b/mercurial/hg.py Mon Dec 26 13:48:31 2011 +0100 @@ -183,7 +183,10 @@ try: hardlink = None num = 0 + srcpublishing = srcrepo.ui.configbool('phases', 'publish', True) for f in srcrepo.store.copylist(): + if srcpublishing and f.endswith('phaseroots'): + continue src = os.path.join(srcrepo.sharedpath, f) dst = os.path.join(destpath, f) dstbase = os.path.dirname(dst)