Show More
@@ -273,7 +273,11 b' class changelog(revlog.revlog):' | |||
|
273 | 273 | if self._delaybuf: |
|
274 | 274 | # make a temporary copy of the index |
|
275 | 275 | fp1 = self._realopener(self.indexfile) |
|
276 |
|
|
|
276 | pendingfilename = self.indexfile + ".a" | |
|
277 | # register as a temp file to ensure cleanup on failure | |
|
278 | tr.registertmp(pendingfilename) | |
|
279 | # write existing data | |
|
280 | fp2 = self._realopener(pendingfilename, "w") | |
|
277 | 281 | fp2.write(fp1.read()) |
|
278 | 282 | # add pending data |
|
279 | 283 | fp2.write("".join(self._delaybuf)) |
@@ -148,6 +148,19 b' more there after' | |||
|
148 | 148 | $ hg -q tip |
|
149 | 149 | 4:539e4b31b6dc |
|
150 | 150 | |
|
151 | (Check that no 'changelog.i.a' file were left behind) | |
|
152 | ||
|
153 | $ ls -1 .hg/store/ | |
|
154 | 00changelog.i | |
|
155 | 00manifest.i | |
|
156 | data | |
|
157 | fncache | |
|
158 | journal.phaseroots | |
|
159 | phaseroots | |
|
160 | undo | |
|
161 | undo.phaseroots | |
|
162 | ||
|
163 | ||
|
151 | 164 | precommit hook can prevent commit |
|
152 | 165 | |
|
153 | 166 | $ echo "precommit.forbid = python \"$TESTDIR/printenv.py\" precommit.forbid 1" >> .hg/hgrc |
General Comments 0
You need to be logged in to leave comments.
Login now