Show More
@@ -108,6 +108,9 class changelog(revlog): | |||
|
108 | 108 | # if we're doing an initial clone, divert to another file |
|
109 | 109 | if self._delaycount == 0: |
|
110 | 110 | self._delayname = fp.name |
|
111 | if not self.count(): | |
|
112 | # make sure to truncate the file | |
|
113 | mode = mode.replace('a', 'w') | |
|
111 | 114 | return self._realopener(name + ".a", mode) |
|
112 | 115 | # otherwise, divert to memory |
|
113 | 116 | return appender(fp, self._delaybuf) |
General Comments 0
You need to be logged in to leave comments.
Login now