Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
32622:931bb962e0eb | 32623:ed566a59f660 |
---|---|
47 bundletype = "HG10BZ" | 47 bundletype = "HG10BZ" |
48 else: | 48 else: |
49 bundletype = "HG10UN" | 49 bundletype = "HG10UN" |
50 | 50 |
51 outgoing = discovery.outgoing(repo, missingroots=bases, missingheads=heads) | 51 outgoing = discovery.outgoing(repo, missingroots=bases, missingheads=heads) |
52 contentopts = {'cg.version': cgversion} | 52 contentopts = {'cg.version': cgversion, 'obsolescence': True} |
53 return bundle2.writenewbundle(repo.ui, repo, 'strip', name, bundletype, | 53 return bundle2.writenewbundle(repo.ui, repo, 'strip', name, bundletype, |
54 outgoing, contentopts, vfs, compression=comp) | 54 outgoing, contentopts, vfs, compression=comp) |
55 | 55 |
56 def _collectfiles(repo, striprev): | 56 def _collectfiles(repo, striprev): |
57 """find out the filelogs affected by the strip""" | 57 """find out the filelogs affected by the strip""" |