Mercurial > hg
diff mercurial/repair.py @ 32623:ed566a59f660
strip: also backup obsmarkers
We are about to give 'strip' the ability to remove obsmarkers. Before we start
removing data we must make sure it is preserved somewhere. So the backup bundle
created by 'strip' now contains obsmarkers.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 20 May 2017 15:06:10 +0200 |
parents | 4c4d91908492 |
children | 5732e6d2b369 |
line wrap: on
line diff
--- a/mercurial/repair.py Tue May 30 20:48:43 2017 -0400 +++ b/mercurial/repair.py Sat May 20 15:06:10 2017 +0200 @@ -49,7 +49,7 @@ bundletype = "HG10UN" outgoing = discovery.outgoing(repo, missingroots=bases, missingheads=heads) - contentopts = {'cg.version': cgversion} + contentopts = {'cg.version': cgversion, 'obsolescence': True} return bundle2.writenewbundle(repo.ui, repo, 'strip', name, bundletype, outgoing, contentopts, vfs, compression=comp)