changeset 47015:7001f92e0ee9

rewriteutil: replace "null changeset" by "the null revision" in error message The evolve extension uses "the null revision" and we seem to use that term much more frequently in core too. Differential Revision: https://phab.mercurial-scm.org/D10514
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 27 Apr 2021 11:02:41 -0700
parents d55b71393907
children 8ad2f43fe37b
files mercurial/rewriteutil.py tests/test-uncommit.t
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/rewriteutil.py	Mon Mar 29 01:52:06 2021 +0200
+++ b/mercurial/rewriteutil.py	Tue Apr 27 11:02:41 2021 -0700
@@ -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)
 
--- a/tests/test-uncommit.t	Mon Mar 29 01:52:06 2021 +0200
+++ b/tests/test-uncommit.t	Tue Apr 27 11:02:41 2021 -0700
@@ -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]