Mercurial > public > mercurial-scm > hg
comparison mercurial/rewriteutil.py @ 47271:055f7b9f2307
rewriteutil: add pointer to help text when rewrite would cause divergence
The evolve extension's version of the hint has this pointer. I missed
it when I moved it to core.
Differential Revision: https://phab.mercurial-scm.org/D10723
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 17 May 2021 15:15:44 -0700 |
parents | d90f6237b3aa |
children | 8125bcd28a5c |
comparison
equal
deleted
inserted
replaced
47270:25ce16bf724b | 47271:055f7b9f2307 |
---|---|
112 b'skip this check' | 112 b'skip this check' |
113 ) % (base_ctx, other_ctx, local_ctx) | 113 ) % (base_ctx, other_ctx, local_ctx) |
114 raise error.InputError(msg) | 114 raise error.InputError(msg) |
115 else: | 115 else: |
116 raise error.InputError( | 116 raise error.InputError( |
117 msg, hint=_(b"add --verbose for details") | 117 msg, |
118 hint=_( | |
119 b"add --verbose for details or see " | |
120 b"'hg help evolution.instability'" | |
121 ), | |
118 ) | 122 ) |
119 | 123 |
120 | 124 |
121 def disallowednewunstable(repo, revs): | 125 def disallowednewunstable(repo, revs): |
122 """Checks whether editing the revs will create new unstable changesets and | 126 """Checks whether editing the revs will create new unstable changesets and |