sapling/eden/scm/edenscm/mercurial
Durham Goode 3eca8e1086 py3: enforce bytes for bundle2 parts
Summary:
We enforced this at send time, but it was hard to debug where it was
coming from. Let's enforce it at part.setdata() time so the stack points out
exactly who the problem is.

Reviewed By: farnz

Differential Revision: D19665895

fbshipit-source-id: 5a6ca0263d52cac472e1ef2aca3ee702f38258e4
2020-01-31 11:29:29 -08:00
..
cext obsutil: decode marker metadata 2020-01-30 18:12:29 -08:00
cffi typing: enable pyre 2019-12-04 10:55:00 -08:00
commands clone: make the samplehgrcs strings 2020-01-30 18:45:35 -08:00
help Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
hgweb fix_map 2020-01-28 18:24:56 -08:00
httpclient typing: enable pyre 2019-12-04 10:55:00 -08:00
pure py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
templates Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
thirdparty Update pyre version for eden 2019-12-20 16:14:21 -08:00
utils py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
__init__.py remove py3 code transform 2020-01-27 19:00:14 -08:00
ancestor.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
archival.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
bdiff.c Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
bdiff.h Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
bitmanipulation.h Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
blackbox.py typing: enable pyre 2019-12-04 10:55:00 -08:00
blobstore.py lfs: implement gc 2019-11-14 11:14:05 -08:00
bookmarks.py bookmarks: binaryencode should return a byte string 2020-01-30 18:45:36 -08:00
branchmap.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
bundle2.py py3: enforce bytes for bundle2 parts 2020-01-31 11:29:29 -08:00
bundlerepo.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
byterange.py fix_map 2020-01-28 18:24:56 -08:00
changegroup.py hg-py3: changegroup - types and encoding 2020-01-31 10:10:56 -08:00
changelog.py py3: changelog: use bytes in low-level interfaces 2020-01-29 07:45:13 -08:00
chgserver.py py3 chgserver bytes <-> unicode 2020-01-30 15:44:42 -08:00
CMakeLists.txt cmake: always build support for the EdenSCM backing store 2019-11-22 13:00:07 -08:00
cmdutil.py fix_map 2020-01-28 18:24:56 -08:00
color.py py3: remove b prefix 2020-01-28 10:29:15 -08:00
commandserver.py py3: commandserver write and read bytes 2020-01-30 11:12:10 -08:00
compat.h Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
config.py py3: config: fix some encoding issues 2020-01-29 07:45:15 -08:00
configitems.py py3: remove b prefix 2020-01-28 10:29:15 -08:00
connectionpool.py py3: connectionpool: fix some Python 3 issues 2020-01-29 14:27:12 -08:00
context.py py3: fix resolving unknown binary nodes in changectx 2020-01-30 14:39:41 -08:00
copies.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
crecord.py fix_map 2020-01-28 18:24:56 -08:00
dagop.py dagop: fix doc about reachableroots 2019-12-06 11:02:32 -08:00
dagparser.py typing: enable pyre 2019-12-04 10:55:00 -08:00
dagutil.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
debugcommands.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
destutil.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
dirstate.py py3: implement util.dirs in Rust 2020-01-30 17:33:36 -08:00
dirstateguard.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
discovery.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
dispatch.py py3: remove an incorrect encode() call in python 3 2020-01-28 16:33:38 -08:00
drawdag.py drawdag: the commit data should be bytes 2020-01-30 14:55:55 -08:00
dummycert.pem Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
eden_dirstate_fs.py py3: eden_dirstate: use unicode paths on Python 3 2020-01-29 07:45:16 -08:00
eden_dirstate_map.py eden_dirstate_map: encode the path 2020-01-29 16:45:46 -08:00
eden_dirstate.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
eden_update.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
edenfs.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
EdenThriftClient.py unicode to pycompat.unicode 2020-01-28 15:45:17 -08:00
encoding.py py3: changelog: use bytes in low-level interfaces 2020-01-29 07:45:13 -08:00
error.py pypathmatcher: use PyPath instead of PyByte 2020-01-28 12:40:48 -08:00
exchange.py fix_map 2020-01-28 18:24:56 -08:00
extensions.py make test-extension.t py3 compatible 2020-01-29 17:07:32 -08:00
fancyopts.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
filelog.py fix filelog to work with Python 2 again 2020-01-30 20:59:49 -08:00
filemerge.py merge: allow specifying a customized rename script 2020-01-29 14:27:11 -08:00
fileset.py py3: convert some dict.iteritems() calls to items() 2020-01-27 21:23:19 -08:00
filesystem.py hgevents: disable events during status 2020-01-29 10:30:22 -08:00
formatter.py fix the relpath() template to work in hg status 2020-01-30 18:26:36 -08:00
fscap.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
graphmod.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
hbisect.py fix_map 2020-01-28 18:24:56 -08:00
help.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
helptext.py pull: update remote/master unconditionally 2020-01-17 10:13:40 -08:00
hg.py clone: make the samplehgrcs strings 2020-01-30 18:45:35 -08:00
hintutil.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
hook.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
httpconnection.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
httppeer.py Update pyre version for eden 2019-12-20 16:14:21 -08:00
i18n.py py3: i18n: prefer unicode on Python3 2020-01-28 13:42:22 -08:00
identity.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
json.py py3: fix histedit json parsing 2020-01-31 10:56:30 -08:00
keepalive.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
localrepo.py bundle2: backout D19656773 2020-01-31 10:48:19 -08:00
lock.py py3: lock: drop an unnecessary encoding conversion 2020-01-29 07:45:13 -08:00
lsprof.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
lsprofcalltree.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
mail.py typing: enable pyre 2019-12-04 10:55:00 -08:00
manifest.py py3: manifest: drop pure lazymanifest 2020-01-29 07:45:23 -08:00
match.py py3/match: convert filter result to list 2020-01-29 17:03:05 -08:00
mdiff.py py3: diff: fix patchtext encoding 2020-01-29 07:45:12 -08:00
merge.py py3: merge: fix some encoding issues 2020-01-29 07:45:18 -08:00
mergeutil.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
metrics.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
minirst.py py3: minirst: fix some encoding issues 2020-01-29 09:00:19 -08:00
mpatch.c Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
mpatch.h Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
mutation.py mutation: the workingctx is not obsolete 2020-01-24 14:47:36 -08:00
namespaces.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
node.py py3: node: get rid of extra encoding 2020-01-29 16:48:41 -08:00
obsolete.py py3: obsolete: fix some encoding issues 2020-01-29 07:45:19 -08:00
obsutil.py obsutil: remove pyre-fixme 2019-12-04 17:04:45 -08:00
parser.py fix_map 2020-01-28 18:24:56 -08:00
patch.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
pathutil.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
peer.py py3: peer: fix a minor encoding issues 2020-01-29 07:45:19 -08:00
perftrace.py typing: enable pyre 2019-12-04 10:55:00 -08:00
phases.py py3: utf8 fixes for pull and wireproto 2020-01-30 09:58:26 -08:00
policy.py policy: simplify it 2019-12-09 13:13:27 -08:00
posix.py py3: lock: fix encoding 2020-01-29 07:45:12 -08:00
profiling.py py3: profiling: fix some encoding issues 2020-01-29 07:45:20 -08:00
progress.py bindings: move indexes and threading to bindings 2020-01-09 20:02:00 -08:00
pushkey.py py3: fix encoding of pushkeys 2020-01-30 13:55:20 -08:00
pvec.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
pycompat.py py3: fix stdout/stderr in dott tests 2020-01-30 18:00:34 -08:00
rcutil.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
registrar.py registrar: remove pyre-fixme 2019-12-04 17:04:45 -08:00
repair.py py3: repair: fix encoding for SHA1 calculation 2020-01-29 07:45:11 -08:00
replay.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
repository.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
repoview.py tags: remove tags feature 2020-01-07 12:31:10 -08:00
revlog.py py3: utf8 fixes for pull and wireproto 2020-01-30 09:58:26 -08:00
revset.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
revsetlang.py py3: revsetlang: fix some encoding issues 2020-01-29 07:45:20 -08:00
rewriteutil.py mutation: allow instabilities if mutation is enabled 2020-01-24 14:47:38 -08:00
scmposix.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
scmutil.py errors: drop quotes around OSError paths 2020-01-31 10:56:30 -08:00
scmwindows.py typing: enable pyre 2019-12-04 10:55:00 -08:00
server.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
setdiscovery.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
similar.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
simplemerge.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
smartset.py typing: enable pyre 2019-12-04 10:55:00 -08:00
sparse.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
sshpeer.py py3: fix pipe reads in sshpeer 2020-01-30 13:55:21 -08:00
sshserver.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
sslutil.py typing: enable pyre 2019-12-04 10:55:00 -08:00
statprof.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
store.py py3: store: fix some encoding issues 2020-01-29 07:45:21 -08:00
streamclone.py py3: streamclone: make wireprotocol bytes 2020-01-29 15:20:56 -08:00
templatefilters.py py3: templater: fix some encoding issues 2020-01-29 07:45:21 -08:00
templatekw.py fix_map 2020-01-28 18:24:56 -08:00
templater.py fix the relpath() template to work in hg status 2020-01-30 18:26:36 -08:00
transaction.py py3: transaction: fix some encoding issues 2020-01-29 07:45:22 -08:00
treedirstate.py pytreestate: use PyPath where necessary 2020-01-30 14:55:54 -08:00
treediscovery.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
treestate.py pytreestate: use PyPath where necessary 2020-01-30 14:55:54 -08:00
txnutil.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
types.py add types module 2020-01-29 12:59:44 -08:00
ui.py clone: make the samplehgrcs strings 2020-01-30 18:45:35 -08:00
uiconfig.py make all config function params strings 2020-01-29 12:09:37 -08:00
upgrade.py typing: enable pyre 2019-12-04 10:55:00 -08:00
url.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
urllibcompat.py py3: update urllibcompat.quote() to operate on strings again 2020-01-30 23:22:02 -08:00
util.py clone: make the samplehgrcs strings 2020-01-30 18:45:35 -08:00
verify.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
vfs.py clindex: use str as input to vfs 2020-01-29 11:07:09 -08:00
visibility.py py3: visibility: fix some encoding issue 2020-01-29 07:45:23 -08:00
win32.py typing: enable pyre 2019-12-04 10:55:00 -08:00
windows.py sshpeer: read stderr in a background thread 2020-01-13 12:55:18 -08:00
wireproto.py py3: fix known wireproto command 2020-01-30 10:59:01 -08:00
worker.py worker: remove pyre-fixme 2019-12-04 17:04:45 -08:00