equal
deleted
inserted
replaced
223 spec = format(*repo.narrowpats) |
223 spec = format(*repo.narrowpats) |
224 if tr is None: |
224 if tr is None: |
225 m = "changing narrow spec outside of a transaction" |
225 m = "changing narrow spec outside of a transaction" |
226 raise error.ProgrammingError(m) |
226 raise error.ProgrammingError(m) |
227 else: |
227 else: |
228 |
|
229 reporef = weakref.ref(repo) |
228 reporef = weakref.ref(repo) |
230 |
229 |
231 def clean_pending(tr): |
230 def clean_pending(tr): |
232 r = reporef() |
231 r = reporef() |
233 if r is not None: |
232 if r is not None: |