[PATCH] Tweaks to MQ user interface
Dan Villiom Podlaski Christiansen
danchr at gmail.com
Sun Jun 28 10:22:07 CDT 2009
Hi,
Attached below are three small patches for the MQ and colour extensions:
The first patch changes the index column in the verbose output of
‘qseries’ to be right aligned, and also crops the line interactive mode.
The second patch changes the colorisation of ‘qseries’ when passed -
v/--verbose or -s/--summary, such that only the patch name is
coloured. I find this more readable this way. It also adapts the
extension to the altered output caused by the first patch.
The third patch is also quite simple in functionality, but rather
invasive in how it affects the user interface. It adds a wrapper to
all built-in commands which require a repository, and add a -Q/--queue
option which causes them to operate on a queue repository, if present.
The error message for an absent queue repository was copied from
another location in the extension.
If the third patch is accepted, it might be worthwhile to either
deprecate or hide the ‘qcommit’ command. It'd be one less command
cluttering the help screen :)
I started a test run with of patches about 20 minutes ago: so far,
everything seems fine.
> 2009-06-27 Dan Villiom Podlaski Christiansen <danchr at gmail.com>
>
> * hgext/mq.py:
> mq: align columns in verbose qseries output.
> [bbe5d7648c5b] [qbase, mq-qseries-align.diff]
>
> * hgext/color.py:
> color: don't highlight the summary part of the qseries command
> [c95c14547c63] [mq-qseries-color.diff]
>
> 2009-06-28 Dan Villiom Podlaski Christiansen <danchr at gmail.com>
>
> * hgext/mq.py:
> mq: add -Q/--queue option to some commands for operating on
> the
> queue repo.
> [99c4b776e36a] [qtip, tip, mq-repo-option.diff]
--
Dan Villiom Podlaski Christiansen
danchr at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mq-qseries-align.diff
Type: application/octet-stream
Size: 2583 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090628/6806bfa8/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mq-qseries-color.diff
Type: application/octet-stream
Size: 1173 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090628/6806bfa8/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mq-repo-option.diff
Type: application/octet-stream
Size: 1719 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090628/6806bfa8/attachment-0002.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1943 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090628/6806bfa8/attachment.bin
More information about the Mercurial-devel
mailing list