[Updated] D10514: rewriteutil: replace "null changeset" by "the null revision" in error message
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Fri Apr 30 14:06:36 UTC 2021
Closed by commit rHG7001f92e0ee9: rewriteutil: replace "null changeset" by "the null revision" in error message (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10514?vs=27165&id=27244
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10514/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10514
AFFECTED FILES
mercurial/rewriteutil.py
tests/test-uncommit.t
CHANGE DETAILS
diff --git a/tests/test-uncommit.t b/tests/test-uncommit.t
--- a/tests/test-uncommit.t
+++ b/tests/test-uncommit.t
@@ -51,7 +51,7 @@
Uncommit with no commits should fail
$ hg uncommit
- abort: cannot uncommit null changeset
+ abort: cannot uncommit the null revision
(no changeset checked out)
[10]
diff --git a/mercurial/rewriteutil.py b/mercurial/rewriteutil.py
--- a/mercurial/rewriteutil.py
+++ b/mercurial/rewriteutil.py
@@ -34,7 +34,7 @@
Make sure this function is called after taking the lock.
"""
if nullrev in revs:
- msg = _(b"cannot %s null changeset") % action
+ msg = _(b"cannot %s the null revision") % action
hint = _(b"no changeset checked out")
raise error.InputError(msg, hint=hint)
To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210430/3ff8e092/attachment-0002.html>
More information about the Mercurial-patches
mailing list