Show More
@@ -182,7 +182,8 b' def save(repo, includepats, excludepats)' | |||
|
182 | 182 | |
|
183 | 183 | tr = repo.currenttransaction() |
|
184 | 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 | 187 | else: |
|
187 | 188 | # the roundtrip is sometime different |
|
188 | 189 | # not taking any chance for now |
@@ -215,7 +216,8 b' def copytoworkingcopy(repo):' | |||
|
215 | 216 | tr = repo.currenttransaction() |
|
216 | 217 | spec = format(*repo.narrowpats) |
|
217 | 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 | 221 | else: |
|
220 | 222 | |
|
221 | 223 | reporef = weakref.ref(repo) |
General Comments 0
You need to be logged in to leave comments.
Login now