Mercurial > hg
comparison hgext/remotefilelog/datapack.py @ 51700:7f0cb9ee0534
Backout accidental publication of a large range of revisions
I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 23 Jul 2024 10:02:46 +0200 |
parents | 493034cc3265 |
children | ca7bde5dbafb |
comparison
equal
deleted
inserted
replaced
51699:bd1483fd7088 | 51700:7f0cb9ee0534 |
---|---|
412 def _compress(self, data): | 412 def _compress(self, data): |
413 return zlib.compress(data) | 413 return zlib.compress(data) |
414 | 414 |
415 def add(self, name, node, deltabasenode, delta, metadata=None): | 415 def add(self, name, node, deltabasenode, delta, metadata=None): |
416 # metadata is a dict, ex. {METAKEYFLAG: flag} | 416 # metadata is a dict, ex. {METAKEYFLAG: flag} |
417 if len(name) > 2**16: | 417 if len(name) > 2 ** 16: |
418 raise RuntimeError(_(b"name too long %s") % name) | 418 raise RuntimeError(_(b"name too long %s") % name) |
419 if len(node) != 20: | 419 if len(node) != 20: |
420 raise RuntimeError(_(b"node should be 20 bytes %s") % node) | 420 raise RuntimeError(_(b"node should be 20 bytes %s") % node) |
421 | 421 |
422 if node in self.entries: | 422 if node in self.entries: |