Show More
@@ -182,7 +182,8 b' def save(repo, includepats, excludepats)' | |||||
182 |
|
182 | |||
183 | tr = repo.currenttransaction() |
|
183 | tr = repo.currenttransaction() | |
184 | if tr is None: |
|
184 | if tr is None: | |
185 | repo.svfs.write(FILENAME, spec) |
|
185 | m = "changing narrow spec outside of a transaction" | |
|
186 | raise error.ProgrammingError(m) | |||
186 | else: |
|
187 | else: | |
187 | # the roundtrip is sometime different |
|
188 | # the roundtrip is sometime different | |
188 | # not taking any chance for now |
|
189 | # not taking any chance for now | |
@@ -215,7 +216,8 b' def copytoworkingcopy(repo):' | |||||
215 | tr = repo.currenttransaction() |
|
216 | tr = repo.currenttransaction() | |
216 | spec = format(*repo.narrowpats) |
|
217 | spec = format(*repo.narrowpats) | |
217 | if tr is None: |
|
218 | if tr is None: | |
218 | repo.vfs.write(DIRSTATE_FILENAME, spec) |
|
219 | m = "changing narrow spec outside of a transaction" | |
|
220 | raise error.ProgrammingError(m) | |||
219 | else: |
|
221 | else: | |
220 |
|
222 | |||
221 | reporef = weakref.ref(repo) |
|
223 | reporef = weakref.ref(repo) |
General Comments 0
You need to be logged in to leave comments.
Login now