diff tests/test-rhg.t @ 47962:8c29af0f6d6e

rhg: Align with Python on some revset parsing corner cases In particular: * A string of ASCII digits can be either an integer on a hex prefix * The NULL node ID should convert to the NULL revision number Differential Revision: https://phab.mercurial-scm.org/D11409
author Simon Sapin <simon.sapin@octobus.net>
date Mon, 13 Sep 2021 17:23:42 +0200
parents cc3ad5c3af3b
children d919b0ca8449
line wrap: on
line diff
--- a/tests/test-rhg.t	Mon Sep 13 15:42:39 2021 +0200
+++ b/tests/test-rhg.t	Mon Sep 13 17:23:42 2021 +0200
@@ -126,6 +126,9 @@
   [255]
   $ $NO_FALLBACK rhg cat -r d file-2
   2
+  $ $NO_FALLBACK rhg cat -r 0000 file-2
+  abort: invalid revision identifier: 0000
+  [255]
 
 Cat files
   $ cd $TESTTMP