Show More
@@ -26,11 +26,6 b' REVLOG_DEFAULT_FLAGS = REVLOGNGINLINEDAT' | |||||
26 | REVLOG_DEFAULT_FORMAT = REVLOGNG |
|
26 | REVLOG_DEFAULT_FORMAT = REVLOGNG | |
27 | REVLOG_DEFAULT_VERSION = REVLOG_DEFAULT_FORMAT | REVLOG_DEFAULT_FLAGS |
|
27 | REVLOG_DEFAULT_VERSION = REVLOG_DEFAULT_FORMAT | REVLOG_DEFAULT_FLAGS | |
28 |
|
28 | |||
29 | def flagstr(flag): |
|
|||
30 | if flag == "inline": |
|
|||
31 | return REVLOGNGINLINEDATA |
|
|||
32 | raise RevlogError(_("unknown revlog flag %s") % flag) |
|
|||
33 |
|
||||
34 | def hash(text, p1, p2): |
|
29 | def hash(text, p1, p2): | |
35 | """generate a hash from the given text and its parent hashes |
|
30 | """generate a hash from the given text and its parent hashes | |
36 |
|
31 | |||
@@ -328,6 +323,8 b' class revlog(object):' | |||||
328 | self.defversion = REVLOG_DEFAULT_VERSION |
|
323 | self.defversion = REVLOG_DEFAULT_VERSION | |
329 | if hasattr(opener, "defversion"): |
|
324 | if hasattr(opener, "defversion"): | |
330 | self.defversion = opener.defversion |
|
325 | self.defversion = opener.defversion | |
|
326 | if self.defversion & REVLOGNG: | |||
|
327 | self.defversion |= REVLOGNGINLINEDATA | |||
331 | self.load() |
|
328 | self.load() | |
332 |
|
329 | |||
333 | def load(self): |
|
330 | def load(self): |
General Comments 0
You need to be logged in to leave comments.
Login now