Show More
@@ -99,7 +99,7 b' def writebundle(cg, filename, bundletype' | |||
|
99 | 99 | if cleanup is not None: |
|
100 | 100 | os.unlink(cleanup) |
|
101 | 101 | |
|
102 | def readbundle(fh): | |
|
102 | def readbundle(fh, fname): | |
|
103 | 103 | header = fh.read(6) |
|
104 | 104 | if not header.startswith("HG"): |
|
105 | 105 | raise util.Abort(_("%s: not a Mercurial bundle file") % fname) |
@@ -2474,7 +2474,7 b' def unbundle(ui, repo, fname, **opts):' | |||
|
2474 | 2474 | Apply a compressed changegroup file generated by the bundle |
|
2475 | 2475 | command. |
|
2476 | 2476 | """ |
|
2477 | gen = changegroup.readbundle(urllib.urlopen(fname)) | |
|
2477 | gen = changegroup.readbundle(urllib.urlopen(fname), fname) | |
|
2478 | 2478 | modheads = repo.addchangegroup(gen, 'unbundle', 'bundle:' + fname) |
|
2479 | 2479 | return postincoming(ui, repo, modheads, opts['update']) |
|
2480 | 2480 |
@@ -10,7 +10,7 b'' | |||
|
10 | 10 | from demandload import * |
|
11 | 11 | from i18n import gettext as _ |
|
12 | 12 | demandload(globals(), "changelog filelog httprangereader") |
|
13 | demandload(globals(), "localrepo manifest os urllib urllib2 util") | |
|
13 | demandload(globals(), "repo localrepo manifest os urllib urllib2 util") | |
|
14 | 14 | |
|
15 | 15 | class rangereader(httprangereader.httprangereader): |
|
16 | 16 | def read(self, size=None): |
General Comments 0
You need to be logged in to leave comments.
Login now