Comments
Patch
@@ -110,10 +110,11 @@ from i18n import _
# as bumped too, we add the `bumpedfix` flag to the marker. <A', (Ad,)>.
# This flag mean that the successors express the changes between the public and
# bumped version and fix the situation, breaking the transitivity of
# "bumped" here.
bumpedfix = 1
+usingsha256 = 2
## Parsing and writing of version "0"
#
# The header is followed by the markers. Each marker is made of:
#
@@ -191,10 +192,12 @@ def _fm0readmarkers(data, off=0):
yield (pre, sucs, flags, metadata, date, parents)
def _fm0encodeonemarker(marker):
pre, sucs, flags, metadata, date, parents = marker
+ if flags & usingsha256:
+ raise util.Abort(_('cannot handle sha256 with old obsstore format'))
metadata = dict(metadata)
metadata['date'] = '%d %i' % date
if parents is not None:
if not parents:
# mark that we explicitly recorded no parents