PATCH + Experimental debian package of tip

Thomas Arendsen Hein thomas at intevation.de
Thu Jan 12 05:44:25 UTC 2006


* Vincent Danjean <Vincent.Danjean at ens-lyon.org> [20060112 02:04]:
> For debian users, I made a package based on tip one day ago and upload
> it to experimental (I will wait for the official 0.8 to upload the
> package to unstable). This package is also available on my web page :
> http://dept-info.labri.fr/~danjean/deb.html#mercurial

Good idea!

> There are two patches I applied that can be included in tip (see
> attachments).
> 
> The first is a two-line patch that remove the #! line of hgk.py (this is
> not a script)

Applied to crew to be pulled by Matt.

> The second one display the module from which the command come from in
> the help (in the example, the 'hct' extension) :
> vdanjean at cayuga:~$ hg -h
> [...]
>  copy        mark files as copied for the next commit
>  ct         [hgext/hct] Run hgct commit tool
>  diff        diff repository (or selected files)
> [...]

I agree with Alexis here to not clutter the normal help display.
Showing it only with -v would be good, and maybe the commands loaded
from extensions should be grouped together, something like:

list of commands:

 add:
      add the specified files on the next commit
[...]
 copy, cp:
      mark files as copied for the next commit
 diff:
      diff repository (or selected files)
[...]
 version:
      output version and copyright information

list of commands from extension 'hct': <-- full path only with --debug

 ct:
      Run hgct commit tool

list of commands from extension 'mq':

 q...


global options:
 
 -R --repository      repository root directory
    --cwd             change working directory
[...]


>   I think this patch can be improved by also displaying (with a new
> command ? by improving the version command ?) a list of the loaded
> extension (and their version is it exists), so that it would be easier
> to know the exact state of the software when receiving bugs reports.

Yes, here I think it can be displayed always, except if -q is used.

Thomas

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/



More information about the Mercurial mailing list