unionrepo: don't insert index tuples with None as int field
None is not a valid size. Use -1 as placeholder instead. This will be
necessary when the index starts enforcing type correctness.
Differential Revision: https://phab.mercurial-scm.org/D9161
--- a/mercurial/unionrepo.py Wed Oct 07 03:00:01 2020 +0200
+++ b/mercurial/unionrepo.py Wed Oct 07 03:00:26 2020 +0200
@@ -71,11 +71,11 @@
p1node = self.revlog2.node(p1rev)
p2node = self.revlog2.node(p2rev)
- # TODO: it's probably wrong to set compressed length to None, but
+ # TODO: it's probably wrong to set compressed length to -1, but
# I have no idea if csize is valid in the base revlog context.
e = (
flags,
- None,
+ -1,
rsize,
base,
link,