Commit Graph

2032 Commits

Author SHA1 Message Date
Matt Mackall
4b881af7a0 help: make optlist local to subfunctions 2011-09-17 14:55:55 -05:00
Matt Mackall
63e723fcd6 help: move option list display into subfunctions 2011-09-17 14:50:42 -05:00
Matt Mackall
4146bb2bc3 help: fold header selection into helplist 2011-09-17 14:46:13 -05:00
Matt Mackall
e1472f09e5 help: fold some list help clauses into the helplist function 2011-09-17 14:46:00 -05:00
Matt Mackall
cca20e5611 minirst: end all blocks with newlines
Formerly RST blocks were formatted without a trailing newline, which
wasn't particularly helpful. Now everything that comes back from the
formatter has a trailing newline so remove all the extra ones added by
users.
2011-09-17 14:17:09 -05:00
Matt Mackall
ec137afc04 status: add some help examples 2011-09-17 13:20:10 -05:00
Matt Mackall
cc2ab1f8be forget: add help examples 2011-09-17 13:08:24 -05:00
Matt Mackall
35b02109ec remove: suggest forget to undo adds 2011-09-16 17:53:58 -05:00
Matt Mackall
afc77ff233 remove: simplify help
- move the obscure parts into the verbose help
- drop confusing references to "remove from repository" / "not remove
  from history"
- add mention of hg forget
2011-09-16 17:41:36 -05:00
Matt Mackall
0fdc02c47b import: add help examples 2011-09-16 17:08:18 -05:00
Matt Mackall
ed765a6700 id: add some help examples 2011-09-16 16:52:45 -05:00
Matt Mackall
ed8757e2e2 export: add help examples 2011-09-16 16:40:27 -05:00
Matt Mackall
f675d667e0 diff: add help examples 2011-09-16 16:39:55 -05:00
Matt Mackall
2bdbf24590 archive: add help examples 2011-09-16 15:31:21 -05:00
Matt Mackall
fbed9a5363 log: add a usage note about --removed 2011-09-16 14:37:57 -05:00
Matt Mackall
715141efcd log: rearrange the help text a bit 2011-09-16 14:37:56 -05:00
Matt Mackall
c1eff9f80e log: add some usage examples to verbose help 2011-09-16 14:37:55 -05:00
Matt Mackall
757bb24a98 merge with stable 2011-09-10 17:56:42 -05:00
Matt Mackall
3b9c548c27 log: remove -h short option for --hidden (issue2995) 2011-09-09 14:41:22 -05:00
Martin Geisler
efdbb8077d commands: clarify that 'hg heads foo' shows heads on branch foo
This is a FAQ: people try 'hg heads -r foo' and only see the tip-most
branch heads on foo.
2011-08-18 13:56:58 +02:00
Pang Yan Han
92e6290eb7 commands: fix grammar in resolve help text 2011-08-17 16:41:14 +08:00
Marc Simpson
17eefd766c ui: use labels when outputting tags 2011-08-20 21:47:10 +01:00
Matt Mackall
c3e3cbc373 merge with stable 2011-08-18 17:24:04 -05:00
Martin Geisler
ff2f8288c9 merge with stable 2011-08-17 14:17:35 +02:00
Matt Mackall
4f50548371 minirst: add simple table support
This adds a subset of the 'simple table' support from RST to allow
formatting of options lists through RST. Table columns are
automatically sized based on contents, with line wrapping in the last
column.
2011-08-11 22:05:57 -05:00
Matt Mackall
a2a77ad26c help: move option text display into a helper function 2011-08-04 16:12:58 -05:00
Matt Mackall
15881a6150 help: move 'additional help topics' code 2011-08-04 15:36:15 -05:00
Matt Mackall
1731276051 help: drop with_version
If --version is specified, we print the version and exit (as documented).
2011-08-04 15:08:41 -05:00
Adrian Buehlmann
70fde84539 revert: introduce short option -C for --no-backup
Corresponds to -C of the update command.

It's much more convenient to use:

  $ hg revert -aC

than having to type

  $ hg revert -a --no-backup

I think the 'no-backup' case is a frequent use case.

Introducing short option -C here fits with the muscle memory we have from
'hg update -C', which is described there as "discard uncommitted changes
(no backup)".
2011-08-02 11:32:39 +02:00
Andrzej Bieniek
c9cba11d78 export: add %m to file format string (first line of the commit message)
$ hg commit -m "Initial commit"
$ hg export -o %m.patch tip          #It creates Initial_commit.patch file.
2011-07-30 11:08:45 +01:00
Matt Mackall
edf401959a revert: restore check for uncommitted merge (issue2915) (BC)
This will restore the pre-1.9 behavior.
2011-07-21 15:39:37 -05:00
Martin Geisler
d1589aefcc commands: improve help for -y/--noninteractive
Before, the help text said that Mercurial would assume 'yes' for all
prompts, but this is confusing since many prompts don't have any 'yes'
choice. It now more accurately describes what will happen.
2011-07-07 10:32:30 +02:00
Adrian Buehlmann
9b3812c8c6 revert: improve hints on abort when reverting to parent without --all
BEFORE:

    $ hg revert
    abort: no files or directories specified
    (use --all to discard all changes)

AFTER:

  Uncommitted changes (using --all *will* nuke edits):

    $ hg revert
    abort: no files or directories specified
    (uncommitted changes, use --all to discard all changes)

  Clean working directory (using --all won't discard anything):

    $ hg revert
    abort: no files or directories specified
    (use --all to revert all files)
2011-06-26 01:13:30 +02:00
Idan Kamara
05ff7deb85 archive: wrap the ui descriptor so it doesn't get closed
archival.tarit closes the fileobj if one is passed to it, which is undesired
when reading from '-'.
2011-06-24 17:04:37 +03:00
Idan Kamara
eb3fbf796f bisect: use ui out descriptor when calling util.system 2011-06-24 17:04:37 +03:00
Adrian Buehlmann
3ae6b61c82 update: do not use the term 'update' when mentioning reverting one file
and give a more precise hint for how to revert such a file

I'm using the term 'revision' instead of 'changeset' in this change to be
consistent with the REV we use in the synopsis.
2011-06-24 10:31:44 +02:00
Adrian Buehlmann
1d541dffa3 revert: mention update in hint of abort when reverting to non-parent
and explicitly warn about uncommitted changes

Examples:

BEFORE:

    $ hg par -q
    7:e81a2efd53d4
    $ hg revert -r 2
    abort: no files or directories specified
    (use --all to discard all changes)

AFTER:

  Clean working directory (revert can be easily undone, no edits to be lost):

    $ hg revert -r 2
    abort: no files or directories specified
    (use --all to revert all files, or 'hg update 2' to update)

  Uncommitted changes (revert --all *does* discard edits and is pretty hard to
  undo or even impossible if --no-backup is specified):

    $ hg revert -r 2
    abort: no files or directories specified
    (uncommitted changes, use --all to discard all changes, or 'hg update 2' to update)
2011-06-24 12:37:29 +02:00
Adrian Buehlmann
aff67e5bff update: clarify that update changes the parent revison 2011-06-24 10:51:05 +02:00
Adrian Buehlmann
c1d402dc5f revert: be more helpful on uncommitted merges
BEFORE:
   $ hg revert
   abort: no files or directories specified
   (use --all to discard all changes)

 AFTER:
   $ hg revert
   abort: no files or directories specified
   (uncommitted merge, use --all to discard all changes, or 'hg update -C .' to abort the merge)
2011-06-22 15:34:33 +02:00
Kevin Bullock
99e4d74da2 revert: be more explicit that changes are lost
BEFORE:
   $ hg revert
   abort: no files or directories specified
   (use --all to revert all files)

 AFTER:
   $ hg revert
   abort: no files or directories specified
   (use --all to discard all changes)
2011-06-20 22:15:52 -05:00
David Soria Parra
881ac28f17 i18n: remove translation of debug messages 2011-06-21 18:35:13 +02:00
Matt Mackall
3c219ce0dc fileset: drop matchfn
This is now built into contexts
2011-06-18 16:52:51 -05:00
Matt Mackall
5ab97592f7 scmutil: switch match users to supplying contexts
The most appropriate context is not always clearly defined. The obvious cases:

For working directory commands, we use None
For commands (eg annotate) with single revs, we use that revision

The less obvious cases:

For commands (eg status, diff) with a pair of revs, we use the second revision
For commands that take a range (like log), we use None
2011-06-18 16:52:51 -05:00
Idan Kamara
40027596a8 serve: add --cmdserver option to communicate with hg over a pipe 2011-06-03 17:27:41 +03:00
Pierre-Yves David
d3dabeeb99 log: do not display hidden changeset
We add a --hidden option to display them.
2011-06-16 01:58:00 +02:00
Idan Kamara
71b4a06c3c commands: use ui descriptors when reading/writing from stdin/out 2011-06-08 14:54:52 +03:00
Idan Kamara
4f72223e4d cmdutil, logmessage: use ui.fin when reading from '-' 2011-06-08 14:54:52 +03:00
Martin Geisler
0e27878c46 commands: add pointer to bookmarks command in branch help 2011-06-15 17:25:58 +02:00
Patrick Mezard
fd8786d770 import: add --bypass option
This feature is more a way to test patching without a working directory than
something people asked about. Adding a --rev option to specify the parent patch
revision would make it a little more useful.

What this change introduces is patch.repobackend class which let patches be
applied against repository revisions. The caller must supply a filestore object
to receive patched content, which can be turned into a memctx with
patch.makememctx() helper.
2011-06-14 23:26:35 +02:00
Patrick Mezard
7350aaca49 import: separate parents selection from working dir update
This will be useful when patching without updating the dirstate
2011-06-14 23:24:40 +02:00