Skip to content
Snippets Groups Projects
Commit 5b58714e authored by Katsunori FUJIWARA's avatar Katsunori FUJIWARA
Browse files

changegroup: add "vfs" argument to "readbundle()" to pass relative filename

parent a57dcd11
No related branches found
No related tags found
No related merge requests found
......@@ -214,7 +214,7 @@
return d
return readexactly(self._fh, n)
def readbundle(fh, fname):
def readbundle(fh, fname, vfs=None):
header = readexactly(fh, 6)
if not fname:
......@@ -222,6 +222,8 @@
if not header.startswith('HG') and header.startswith('\0'):
fh = headerlessfixup(fh, header)
header = "HG10UN"
elif vfs:
fname = vfs.join(fname)
magic, version, alg = header[0:2], header[2:4], header[4:6]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment