Mercurial > public > mercurial-scm > hg
diff mercurial/narrowspec.py @ 48230:7ed0fc687220
narrow: raise StateError when working copy is stale (for detailed exit code)
Differential Revision: https://phab.mercurial-scm.org/D11663
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 14 Oct 2021 08:58:07 -0700 |
parents | 5bcd305389c7 |
children | 322525db4c98 |
line wrap: on
line diff
--- a/mercurial/narrowspec.py Thu Oct 14 15:05:04 2021 +0200 +++ b/mercurial/narrowspec.py Thu Oct 14 08:58:07 2021 -0700 @@ -299,7 +299,7 @@ storespec = repo.svfs.tryread(FILENAME) wcspec = repo.vfs.tryread(DIRSTATE_FILENAME) if wcspec != storespec: - raise error.Abort( + raise error.StateError( _(b"working copy's narrowspec is stale"), hint=_(b"run 'hg tracked --update-working-copy'"), )