sapling/tests/test-strict.t

78 lines
1.8 KiB
Perl
Raw Normal View History

2010-08-30 07:48:17 +04:00
$ hg init
$ echo a > a
$ hg ci -Ama
adding a
$ hg an a
0: a
$ hg --config ui.strict=False an a
0: a
2010-08-30 07:48:17 +04:00
$ echo "[ui]" >> $HGRCPATH
$ echo "strict=True" >> $HGRCPATH
$ hg an a
hg: unknown command 'an'
Mercurial Distributed SCM
hg COMMAND [OPTIONS]
These are some common Mercurial commands. Use 'hg help commands' to list all
commands, and 'hg help COMMAND' to get help on a specific command.
Get the latest commits from the server:
2010-08-30 07:48:17 +04:00
pull pull changes from the specified source
View commits:
show show commit in detail
diff show differences between commits
Check out a commit:
checkout check out a specific commit
Work with your checkout:
status list files with pending changes
add start tracking the specified files
remove delete the specified tracked files
forget stop tracking the specified files
revert change the specified files to match a commit
Commit changes and modify commits:
commit save all pending changes or specified files in a new commit
Rearrange commits:
graft copy commits from a different location
Undo changes:
uncommit uncommit part or all of the current commit
Other commands:
config show config settings
grep search for a pattern in tracked files in the working directory
Additional help topics:
filesets specifying files by their characteristics
glossary common terms
patterns specifying files by file name pattern
revisions specifying commits
templating customizing output with templates
2010-09-17 02:51:32 +04:00
[255]
2010-08-30 07:48:17 +04:00
$ hg annotate a
0: a
should succeed - up is an alias, not an abbreviation
$ hg up
0 files updated, 0 files merged, 0 files removed, 0 files unresolved