[PATCH RFC] mq: support "qimport --existing --name renametothis thatexistingpatch"
Martin Geisler
mg at aragost.com
Fri Jul 23 04:23:04 CDT 2010
Nicolas Dumazet <nicdumz at gmail.com> writes:
> What about:
>
> diff --git a/hgext/mq.py b/hgext/mq.py
> --- a/hgext/mq.py
> +++ b/hgext/mq.py
> @@ -1806,6 +1806,16 @@
> To import a patch from standard input, pass - as the patch file.
> When importing from standard input, a patch name must be specified
> using the --name flag.
> +
> + You can import a patch existing inside the patch repository and
> + rename it on the go::
> +
> + hg qimport -e -n new-name existing-patch
> +
> + Note that order of arguments does not matter, and the same can be
> + achieved with::
> +
> + hg qimport -e existing-patch -n new-name
Looks good to me. If you want, you can put the example inside a
.. container:: verbose
block. Then it will only appear with 'hg help qimport -v'. You can see
this effect with 'hg help add'.
--
Martin Geisler
aragost Trifork
Professional Mercurial support
http://aragost.com/mercurial/
More information about the Mercurial-devel
mailing list