Mercurial > hg
comparison mercurial/narrowspec.py @ 51700:7f0cb9ee0534
Backout accidental publication of a large range of revisions
I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 23 Jul 2024 10:02:46 +0200 |
parents | 493034cc3265 |
children | ca7bde5dbafb |
comparison
equal
deleted
inserted
replaced
51699:bd1483fd7088 | 51700:7f0cb9ee0534 |
---|---|
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 | |
228 reporef = weakref.ref(repo) | 229 reporef = weakref.ref(repo) |
229 | 230 |
230 def clean_pending(tr): | 231 def clean_pending(tr): |
231 r = reporef() | 232 r = reporef() |
232 if r is not None: | 233 if r is not None: |