https://bz.mercurial-scm.org/show_bug.cgi?id=6960

            Bug ID: 6960
           Summary: Boolean bundlespec option leads to crash
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: clonebundles
          Assignee: bugzi...@mercurial-scm.org
          Reporter: georges.raci...@octobus.net
                CC: mercurial-de...@mercurial-scm.org
    Python Version: ---

I was trying this:

  [clone-bundles]
  auto-generate.formats = zstd-v2;obsolescence=false


and got this

  File "/home/hg/venv/lib/python3.9/site-packages/hgext/clonebundles.py", line
1039, in cmd_admin_clone_bundles_refresh
    create, delete = auto_bundle_needed_actions(repo, bundles, op_id)
  File "/home/hg/venv/lib/python3.9/site-packages/hgext/clonebundles.py", line
861, in auto_bundle_needed_actions
    t = bundlecaches.parsebundlespec(repo, t, strict=False).as_spec()
  File "/home/hg/venv/lib/python3.9/site-packages/mercurial/bundlecaches.py",
line 97, in as_spec
    parts.append(b'%s=%s' % param)
TypeError: %b requires a bytes-like object, or an object that implements
__bytes__, not 'bool'

The problems seems to lie in `bundlecaches` hence actually in the core.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to