Commit Graph

10774 Commits

Author SHA1 Message Date
Brodie Rao
3a2a2b8869 cmdutil: make use of output labeling in changeset_printer 2010-04-02 15:22:07 -05:00
Brodie Rao
e504a56477 diff: make use of output labeling 2010-04-02 15:22:06 -05:00
Brodie Rao
23d97750d1 status: make use of output labeling 2010-04-02 15:22:05 -05:00
Brodie Rao
94af2427db grep: make use of output labeling 2010-04-02 15:22:03 -05:00
Brodie Rao
9a7e3ba689 ui: add ui.write() output labeling API
This adds output labeling support with the following methods:

- ui.write(..., label='topic.name topic2.name2 ...')
- ui.write_err(.., label=...)
- ui.popbuffer(labeled=False)
- ui.label(msg, label)

By adding an API to label output directly, the color extension can forgo
parsing command output and instead override the above methods to insert
ANSI color codes. GUI tools can also override the above methods and use
the labels to do GUI-specific styling.

popbuffer gains a labeled argument that, when set to True, returns its
buffered output with labels handled. In the case of the color extension,
this would return output with color codes embedded. For existing users
that use this method to capture and parse output, labels are discarded
and output returned as normal when labeled is False (the default).

Existing wrappers of ui.write() and ui.write_err() should make sure to
accept its new **opts argument.
2010-04-02 15:22:00 -05:00
Matt Mackall
0726edad79 Merge with stable 2010-04-01 17:51:59 -05:00
Matt Mackall
08f50606a9 Merge with i18n 2010-04-01 17:51:32 -05:00
Matt Mackall
d01a64cf5b Added signature for changeset 4ac7199cdd90 2010-04-01 17:49:38 -05:00
Wagner Bruna
af918ca65f i18n-pt_BR: update qnew help text 2010-04-01 19:32:36 -03:00
Matt Mackall
d287a71ee7 Merge with i18n 2010-04-01 17:40:47 -05:00
Wagner Bruna
0d7a0676a9 mq: remove reference for deprecated -f option
-f is the default behaviour since a4e731b2164f
2010-04-01 19:32:08 -03:00
Wagner Bruna
bc1fe499c9 merge with i18n stable 2010-04-01 11:45:25 -03:00
Wagner Bruna
6ec12d4fb0 i18n-pt_BR: synchronized with 7e9fc3a0bf4a 2010-04-01 11:33:03 -03:00
Martin Geisler
b9e372455e Merge with stable 2010-04-01 00:15:29 +02:00
Brendan Cully
3f85d60b3e Merge with stable 2010-03-31 15:09:59 -07:00
Martin Geisler
3e53380842 share: drop experimental label
As per mail from Matt:

  http://selenic.com/pipermail/mercurial/2010-March/030774.html
2010-04-01 00:02:12 +02:00
bttfmcf
50b79c357e l10n: Updates to French (fr) translation
Transmitted-via: Transifex (www.transifex.net)
2010-03-31 21:22:07 +00:00
Martin Geisler
5cb99e439d Merge with stable 2010-03-31 17:32:19 +02:00
Wagner Bruna
d6a702e312 merge with i18n stable 2010-03-31 12:15:24 -03:00
Wagner Bruna
3a60c81239 i18n-pt_BR: synchronized with ba36046c1a0e 2010-03-31 12:14:38 -03:00
Michael Glassford
268693c3a0 Add missing --mq option to hg log.
Since norepo is a string, not a list, the norepo check was matching
command names against any substring in norepo. This fix splits norepo
into a list of commands.
2010-03-31 10:59:00 -04:00
Benoit Boissinot
533a498d7d merge with stable 2010-03-31 12:09:21 +02:00
Benoit Boissinot
a17cbb3e50 test-subrepo-svn: properly escape the url, make it work for svn 1.5 again 2010-03-31 12:07:13 +02:00
Mads Kiilerich
6f24bc8f03 check-code.py: Check for bare ^
Solaris sh interprets ^ as some kind of piping symbol.
2010-03-31 11:07:46 +02:00
Matt Mackall
c9d0f4131a Merge with stable 2010-03-30 13:09:25 -05:00
Matt Mackall
0c7546ee5b templatefilters: fix check-code warning 2010-03-29 16:11:40 -05:00
Matt Mackall
faa2c6e395 Merge with stable 2010-03-29 15:51:26 -05:00
Matt Mackall
ec439b5c96 Merge with i18n 2010-03-29 15:16:38 -05:00
Matt Mackall
b145c808c3 Merge with i18n 2010-03-29 15:16:05 -05:00
Matt Mackall
7e45d04b9e Merge stable heads 2010-03-29 15:15:44 -05:00
Matt Mackall
7b4accf43a tests: add helpers.sh 2010-03-29 12:56:16 -05:00
Elifarley Callado Coelho Cruz
43acaba36c Added support for 'everybody ' (using an asterisk) in user list. 2010-03-29 09:15:08 -03:00
Mads Kiilerich
378848d5c1 convert.cvs: Initialize state variable and abort on cvs error
Fix as proposed by Frank Kingswood.

Avoids
UnboundLocalError: local variable 'mode' referenced before assignment
when cvs fails.

This alsa partially fixes issue1592.
2010-03-30 02:42:21 +02:00
Jens Bäckman
a0e0ebca00 i18n-sv: translated the 'patterns' command 2010-03-28 20:27:09 +02:00
Wagner Bruna
6a72085baf merge with stable 2010-03-26 21:35:06 -03:00
Wagner Bruna
fd1b07dc4d merge with i18n stable 2010-03-26 21:32:49 -03:00
Wagner Bruna
8ab3ff6c66 i18n-pt_BR: synchronized with 6b0bb18e1bce 2010-03-26 20:18:14 -03:00
Benoit Allard
5c44ed9439 url: expand path in auth filenames 2010-03-26 21:37:18 +01:00
Alexander Solovyov
3283fbd2f5 expand paths in aliases 2010-03-27 13:39:45 +02:00
Sune Foldager
8d7f484a9b merge with stable 2010-03-26 17:09:56 +01:00
Sune Foldager
cd0e8d7662 push: refactor and optimize prepush 2010-03-26 17:02:49 +01:00
Sune Foldager
7acd5cb299 push: fix bug in prepush logic and its tests 2010-03-26 17:02:36 +01:00
Sune Foldager
7c4049acf8 localrepo: change _updatebranchcache to use a context generator 2010-03-26 17:02:23 +01:00
Greg Ward
eb66b8a2ca Fix default style so 'log --copies' has a start and an end. 2010-03-25 15:37:39 -04:00
Benjamin Pollack
bcc53961eb schemes: add Kiln On Demand to default schemes 2010-03-24 16:42:08 -04:00
Benoit Boissinot
2eb41c531f merge with stable 2010-03-24 19:44:53 +01:00
Benoit Boissinot
6180612089 setup.py: don't use tabs 2010-03-24 19:44:30 +01:00
Mads Kiilerich
6d35022505 Tests with spaces in paths
This allows most tests to succeed with
./run-tests.py --tmpdir='/tmp/hg  test'
and introduces other tests for spaces and shell quoting
2010-03-24 01:43:24 +01:00
Matt Mackall
1855f3419d Merge with crew 2010-03-23 17:24:17 -05:00
Matt Mackall
d5cced90bc Merge with crew 2010-03-23 17:06:58 -05:00