[Bug 5952] New: sending narrowspecs as bundle params leads error when len(specs) > 255

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Wed Aug 8 04:11:10 UTC 2018


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

            Bug ID: 5952
           Summary: sending narrowspecs as bundle params leads error when
                    len(specs) > 255
           Product: Mercurial
           Version: default branch
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: 7895pulkit at gmail.com
                CC: mercurial-devel at mercurial-scm.org

When using narrow extension and cloning initially, if you pass alot of
--include such that the length of specs increases 255, one gets an error
message from the server which is: 'error: ubyte format requires 0 <= number <=
255'.

I don't have the complete traceback, the error is raised from this line:
https://www.mercurial-scm.org/repo/hg/file/382b055cc358/mercurial/bundle2.py#l1068.


It looks like narrow extension, send the list of includes as bundle2 parameters
and bundle2 logic blows up when length is bigger than 255.

I will post the complete traceback and maybe reproduction steps as followups.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list