comparison tests/test-strict @ 2971: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
comparison
equal deleted inserted replaced
2970:12d1475b48df 2971:63c3a1921a67
1 #!/bin/sh
2
3 hg init
4
5 echo a > a
6 hg ci -d '0 0' -Ama
7
8 hg an a
9
10 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
11 echo "[ui]" >> $HGTMP/.hgrc
12 echo "strict=True" >> $HGTMP/.hgrc
13
14 hg an a
15 hg annotate a
16
17 echo % should succeed - up is an alias, not an abbreviation
18
19 hg up