4717 I = ignored |
4717 I = ignored |
4718 = origin of the previous file (with --copies) |
4718 = origin of the previous file (with --copies) |
4719 |
4719 |
4720 .. container:: verbose |
4720 .. container:: verbose |
4721 |
4721 |
4722 The -t/--terse option abbreviates the output by showing directory name |
4722 The -t/--terse option abbreviates the output by showing only the directory |
4723 if all the files in it share the same status. The option expects a value |
4723 name if all the files in it share the same status. The option takes an |
4724 which can be a string formed by using 'm', 'a', 'r', 'd', 'u', 'i', 'c' |
4724 argument indicating the statuses to abbreviate: 'm' for 'modified', 'a' |
4725 where, 'm' stands for 'modified', 'a' for 'added', 'r' for 'removed', |
4725 for 'added', 'r' for 'removed', 'd' for 'deleted', 'u' for 'unknown', 'i' |
4726 'd' for 'deleted', 'u' for 'unknown', 'i' for 'ignored' and 'c' for clean. |
4726 for 'ignored' and 'c' for clean. |
4727 |
4727 |
4728 It terses the output of only those status which are passed. The ignored |
4728 It abbreviates only those statuses which are passed. Note that ignored |
4729 files are not considered while tersing until 'i' is there in --terse value |
4729 files are not displayed with '--terse i' unless the -i/--ignored option is |
4730 or the --ignored option is used. |
4730 also used. |
4731 |
4731 |
4732 --verbose option shows more context about the state of the repo |
4732 The -v/--verbose option shows information when the repository is in an |
4733 like the repository is in unfinised merge, shelve, rebase state etc. |
4733 unfinished merge, shelve, rebase state etc. You can have this behavior |
4734 You can have this behaviour turned on by default by following config: |
4734 turned on by default by enabling the ``commands.status.verbose`` option. |
4735 |
4735 |
4736 [commands] |
4736 You can skip displaying some of these states by setting |
4737 status.verbose = true |
4737 ``commands.status.skipstates`` to one or more of: 'bisect', 'graft', |
4738 |
4738 'histedit', 'merge', 'rebase', or 'unshelve'. |
4739 You can also skip some states like bisect by adding following in |
|
4740 configuration file. |
|
4741 |
|
4742 [commands] |
|
4743 status.skipstates = bisect |
|
4744 |
4739 |
4745 Examples: |
4740 Examples: |
4746 |
4741 |
4747 - show changes in the working directory relative to a |
4742 - show changes in the working directory relative to a |
4748 changeset:: |
4743 changeset:: |
4760 |
4755 |
4761 - get a NUL separated list of added files, suitable for xargs:: |
4756 - get a NUL separated list of added files, suitable for xargs:: |
4762 |
4757 |
4763 hg status -an0 |
4758 hg status -an0 |
4764 |
4759 |
|
4760 - show more information about the repository status, abbreviating |
|
4761 added, removed, modified, deleted, and untracked paths:: |
|
4762 |
|
4763 hg status -v -t mardu |
|
4764 |
4765 Returns 0 on success. |
4765 Returns 0 on success. |
|
4766 |
4766 """ |
4767 """ |
4767 |
4768 |
4768 opts = pycompat.byteskwargs(opts) |
4769 opts = pycompat.byteskwargs(opts) |
4769 revs = opts.get('rev') |
4770 revs = opts.get('rev') |
4770 change = opts.get('change') |
4771 change = opts.get('change') |