mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
b5fe0d906e
This adds a " (glob)" marker that works like a simpler version of (re): "*" is converted to ".*", and "?" is converted to ".". Both special characters can be escaped using "\", and the backslash itself can be escaped as well. Other glob-style syntax, like "**", "[chars]", or "[!chars]", isn't supported.
16 lines
515 B
Perl
16 lines
515 B
Perl
$ echo 'raise Exception("bit bucket overflow")' > badext.py
|
|
$ abspath=`pwd`/badext.py
|
|
|
|
$ echo '[extensions]' >> $HGRCPATH
|
|
$ echo "gpg =" >> $HGRCPATH
|
|
$ echo "hgext.gpg =" >> $HGRCPATH
|
|
$ echo "badext = $abspath" >> $HGRCPATH
|
|
$ echo "badext2 =" >> $HGRCPATH
|
|
|
|
$ hg -q help help
|
|
\*\*\* failed to import extension badext from */badext.py: bit bucket overflow (glob)
|
|
*** failed to import extension badext2: No module named badext2
|
|
hg help [TOPIC]
|
|
|
|
show help for a given topic or a help overview
|