diff tests/test-strict @ 2988:63c3a1921a67

Add ui.strict config item. This turns off command matching by unambiguous prefix, and is a good thing if you want to write future-proof scripts. This fixes issue 314.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 21 Aug 2006 21:59:29 -0700
parents
children 4e815ee377fd
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-strict	Mon Aug 21 21:59:29 2006 -0700
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+hg init
+
+echo a > a
+hg ci -d '0 0' -Ama
+
+hg an a
+
+HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
+echo "[ui]" >> $HGTMP/.hgrc
+echo "strict=True" >> $HGTMP/.hgrc
+
+hg an a
+hg annotate a
+
+echo % should succeed - up is an alias, not an abbreviation
+
+hg up