[Bug 5506] New: bundle -t zstd fails on long-lived repository
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Thu Mar 16 14:54:28 UTC 2017
https://bz.mercurial-scm.org/show_bug.cgi?id=5506
Bug ID: 5506
Summary: bundle -t zstd fails on long-lived repository
Product: Mercurial
Version: 4.1.1
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: bundle2
Assignee: bugzilla at mercurial-scm.org
Reporter: foozy at lares.dti.ne.jp
CC: mercurial-devel at mercurial-scm.org,
pierre-yves.david at ens-lyon.org
On long-lived repository (5.5 years or so, or one created with
usegeneraldelta=no, explicitly), "hg bundle --type zstd" fails
with error below.
File "..../mercurial/bundle2.py", line 1320, in writebundle
header, comp = bundletypes[bundletype]
KeyError: 'HG10ZS'
If current repository doesn't have "generaldelta" in its
requirements, parsebundlespec() in exchange.py returns "v1" as
"appropriate bundle version".
This causes unknown bundle type name "HG10ZS" for "hg bundle
--type zstd".
This issue can be reproduced by steps below.
$ hg --config format.usegeneraldelta=no init repo
$ echo a > repo/a
$ hg -R repo commit -Am '#0'
$ hg -R repo bundle --all --type zstd bundle.zstd
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list