##// END OF EJS Templates
phases: on copy clone, do not copy phases data if repote is publishing
Pierre-Yves David -
r15741:60344b83 default
parent child Browse files
Show More
@@ -183,7 +183,10 b' def copystore(ui, srcrepo, destpath):'
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)
@@ -589,3 +589,21 b' 1. cloning non-publishing repository'
589 1 0 a-B - 548a3d25dbf0
589 1 0 a-B - 548a3d25dbf0
590 0 0 a-A - 054250a37db4
590 0 0 a-A - 054250a37db4
591
591
592 2. cloning publishing repository
593
594 (everything should be public)
595
596 $ hg clone -U alpha Upsilon
597 $ hgph -R Upsilon
598 11 0 A-secret - 435b5d83910c
599 10 0 a-H - 967b449fbc94
600 9 0 a-G - 3e27b6f1eee1
601 8 0 a-F - b740e3e5c05d
602 7 0 a-E - e9f537e46dea
603 6 0 n-B - 145e75495359
604 5 0 n-A - d6bcb4f74035
605 4 0 b-A - f54f1bb90ff3
606 3 0 a-D - b555f63b6063
607 2 0 a-C - 54acac6f23ab
608 1 0 a-B - 548a3d25dbf0
609 0 0 a-A - 054250a37db4
General Comments 0
You need to be logged in to leave comments. Login now