diff -r 62aa9305399d -r 60344b83e442 mercurial/hg.py --- 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)