Mercurial > public > mercurial-scm > hg-stable
diff mercurial/store.py @ 17249:7d4747c711a9 stable
clone: copy obsolete markers during local clone
This change adds `obsstore` to the list of files copied by local clone,
until now changesets were copied without their obsolete markers.
Note: extinct changesets were and are still included by such clones to
enable hardlinking. There is no obvious reason to prevent their exchange
here.
Rebased by Patrick Mezard <patrick@mezard.eu>
author | Pierre-Yves.David@ens-lyon.org |
---|---|
date | Wed, 25 Jul 2012 19:02:35 +0200 |
parents | d592759aabc7 |
children | 4cbb1137941d |
line wrap: on
line diff
--- a/mercurial/store.py Wed Jul 25 19:34:31 2012 +0200 +++ b/mercurial/store.py Wed Jul 25 19:02:35 2012 +0200 @@ -232,7 +232,8 @@ mode = None return mode -_data = 'data 00manifest.d 00manifest.i 00changelog.d 00changelog.i phaseroots' +_data = ('data 00manifest.d 00manifest.i 00changelog.d 00changelog.i' + ' phaseroots obsstore') class basicstore(object): '''base class for local repository stores''' @@ -411,7 +412,7 @@ self.fncache.rewrite(existing) def copylist(self): - d = ('data dh fncache phaseroots' + d = ('data dh fncache phaseroots obsstore' ' 00manifest.d 00manifest.i 00changelog.d 00changelog.i') return (['requires', '00changelog.i'] + ['store/' + f for f in d.split()])