mirror of
https://github.com/facebook/sapling.git
synced 2024-10-16 19:57:18 +03:00
96cb1050bc
Summary: Updated the global help summaries that are displayed for each command when you run 'hg help' and fixed corresponding tests Reviewed By: markbt, kulshrax Differential Revision: D12832280 fbshipit-source-id: 950dad1c805feab573d7d0182da523ae12299d3b
78 lines
1.8 KiB
Perl
78 lines
1.8 KiB
Perl
$ hg init
|
|
|
|
$ echo a > a
|
|
$ hg ci -Ama
|
|
adding a
|
|
|
|
$ hg an a
|
|
0: a
|
|
|
|
$ hg --config ui.strict=False an a
|
|
0: a
|
|
|
|
$ 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:
|
|
|
|
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
|
|
[255]
|
|
$ 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
|