Show More
@@ -21,14 +21,14 b' class filelog(revlog):' | |||
|
21 | 21 | |
|
22 | 22 | def read(self, node): |
|
23 | 23 | t = self.revision(node) |
|
24 |
if t |
|
|
24 | if not t.startswith('\1\n'): | |
|
25 | 25 | return t |
|
26 | 26 | s = t.find('\1\n', 2) |
|
27 | 27 | return t[s+2:] |
|
28 | 28 | |
|
29 | 29 | def readmeta(self, node): |
|
30 | 30 | t = self.revision(node) |
|
31 |
if t |
|
|
31 | if not t.startswith('\1\n'): | |
|
32 | 32 | return t |
|
33 | 33 | s = t.find('\1\n', 2) |
|
34 | 34 | mt = t[2:s] |
@@ -38,7 +38,7 b' class filelog(revlog):' | |||
|
38 | 38 | return m |
|
39 | 39 | |
|
40 | 40 | def add(self, text, meta, transaction, link, p1=None, p2=None): |
|
41 |
if meta or text |
|
|
41 | if meta or text.startswith('\1\n'): | |
|
42 | 42 | mt = "" |
|
43 | 43 | if meta: |
|
44 | 44 | mt = [ "%s: %s\n" % (k, v) for k,v in meta.items() ] |
@@ -436,7 +436,7 b' class dirstate:' | |||
|
436 | 436 | def opener(base): |
|
437 | 437 | p = base |
|
438 | 438 | def o(path, mode="r"): |
|
439 |
if p |
|
|
439 | if p.startswith("http://"): | |
|
440 | 440 | f = os.path.join(p, urllib.quote(path)) |
|
441 | 441 | return httprangereader.httprangereader(f) |
|
442 | 442 | |
@@ -465,7 +465,7 b' class RepoError(Exception): pass' | |||
|
465 | 465 | class localrepository: |
|
466 | 466 | def __init__(self, ui, path=None, create=0): |
|
467 | 467 | self.remote = 0 |
|
468 |
if path and path |
|
|
468 | if path and path.startswith("http://"): | |
|
469 | 469 | self.remote = 1 |
|
470 | 470 | self.path = path |
|
471 | 471 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now