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