mercurial/narrowspec.py
changeset 51690 493034cc3265
parent 50929 18c8c18993f0
child 51700 7f0cb9ee0534
equal deleted inserted replaced
51689:39e2b2d062c1 51690:493034cc3265
   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: