Commit Graph

78 Commits

Author SHA1 Message Date
Mads Kiilerich
3d26010623 churn: sort users with same churn by name
This makes the output order well-defined and improves code readability.
2012-12-12 02:38:14 +01:00
Siddharth Agarwal
a5e71891bd commands: don't infer repo for commands like update (issue2748)
Maintain a whitelist of commands to infer the repo for instead. The whitelist
contains those commands that take file(s) in the working dir as arguments.
2012-10-16 11:43:15 -07:00
Martin Geisler
66a2883c3a churn: lowercase message 2012-06-12 14:18:18 +02:00
Augie Fackler
96d44b39f7 hgext: mark all first-party extensions as such 2012-05-15 14:37:49 -05:00
Matt Mackall
f2a652218a i18n: fix all remaining uses of % inside _() 2012-03-08 13:35:27 -06: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
Matt Mackall
0832007f60 scmutil: drop aliases in cmdutil for match functions 2011-05-13 14:58:24 -05:00
Alexander Solovyov
7a9d95a376 churn: strip key earlier to avoid false negative seach in aliases 2011-04-29 16:34:52 +02:00
Nicolas Dumazet
48d76e5f60 churn: ignore trailing and leading spaces (issue2546) 2010-12-13 16:41:39 +09:00
Augie Fackler
42c8b2cf07 termwidth: move to ui.ui from util 2010-10-10 10:06:36 -05:00
Martin Geisler
cb36142754 Merge with stable 2010-08-29 22:55:37 +02:00
Martin Geisler
bab69a5062 churn: do not crash on malformed lines in alias file 2010-08-29 22:46:00 +02:00
Ronny Pfannschmidt
1a68305741 churn: do not crash on empty lines in alias file 2010-08-29 10:54:22 +02:00
Renato Cunha
1b3435e951 churn: remove tuple parameter unpacking (deprecated in py3k) 2010-07-01 19:27:03 -03:00
FUJIWARA Katsunori
ce06b102df help: show value requirement and multiple occurrence of options
this helps users to know what kind of option is:

  - no value is required(flag option)
  - value is required
  - value is required, and multiple occurrences are allowed

each kinds are shown as below:

 -f --force              force push
 -e --ssh CMD            specify ssh command to use
 -b --branch BRANCH [+]  a specific branch you would like to push

if one or more 3rd type options are shown, explanation for '[+]' mark
is also shown as footnote.
2010-06-06 17:25:00 +09:00
Steve Borho
b82bd4f289 Backed out changeset: 1bfde817782c 2010-06-08 15:52:41 -05:00
Steve Borho
e91613380a color: labeled text should be passed to ui.write() as ui.labeled
Some implementations of ui.label() (HTML versions in particular) must escape
the provided text and then markup the text with their tags.  When this marked
up text is then passed to ui.write(), we must label the text as 'ui.labeled'
so the implementation knows not to escape it a second time (exposing the initial
markup).

This required the addition of a 'ui.plain' label for text that is purposefully
not marked up.

I was a little pedantic here, passing even ' ' strings to ui.label() when it
would be included with other labeled text in a ui.write() call.   But it seemed
appropriate to lean to the side of caution.
2010-06-03 23:18:18 -05:00
Alexander Solovyov
a6931a2129 churn: add possibility to include/exclude paths 2010-05-27 22:50:23 +03:00
Alexander Solovyov
06239f590d churn: support spaces in aliases (issue2222) 2010-06-02 14:28:45 +02:00
Nicolas Dumazet
7f1a963829 pylint, pyflakes: remove unused or duplicate imports 2010-04-14 17:58:10 +09:00
Brodie Rao
f203aa2c4e churn: make use of output labeling 2010-04-02 15:22:10 -05:00
Martin Geisler
652e04c99c progress: use a verb in present participle 2010-03-15 18:40:00 +01:00
Eric Eisner
c139fbc7cd churn: use ui.progress instead of --progress 2010-03-11 09:11:01 -05:00
Matt Mackall
8d99be19f0 many, many trivial check-code fixups 2010-01-25 00:05:27 -06:00
Matt Mackall
595d66f424 Update license to GPLv2+ 2010-01-19 22:20:08 -06:00
Alexander Solovyov
1c0a00c05d churn: fix --progress (broken by 37a70f0b3ab8) 2009-10-30 15:43:01 +02:00
Alexander Solovyov
6b680abcf9 churn: fix changeset count (broken by 0fc99cecabb9) 2009-10-30 13:40:23 +02:00
Alexander Solovyov
af41ec3842 churn: ability to display added/removed lines separately 2009-10-29 20:50:24 +02:00
Matt Mackall
4d8e4508a9 walkchangerevs: drop ui arg 2009-10-29 19:03:16 -05:00
Matt Mackall
de712b58f9 walkchangerevs: move 'add' to callback
Now walkchangerevs is a simple iterator over contexts
2009-10-29 17:07:51 -05:00
Matt Mackall
0366236cf5 walkchangerevs: internalize ctx caching 2009-10-27 17:01:32 -05:00
Matt Mackall
67e7c0b434 walkchangerevs: yield contexts 2009-10-25 18:43:59 -05:00
Matt Mackall
69f8478d8c walkchangerevs: pull out matchfn
* * *
imported patch mercurial/commands.py
2009-10-25 18:43:56 -05:00
Martin Geisler
9f1896c083 do not attempt to translate ui.debug output 2009-09-19 01:15:38 +02:00
Nicolas Dumazet
8f9d045fc3 churn: use genexps now that we dropped 2.3 compatibility 2009-08-26 13:07:27 +02:00
Dirkjan Ochtman
501b8446f3 merge with crew-stable 2009-08-26 13:05:51 +02:00
Nicolas Dumazet
efa014be98 churn: issue833 was reintroduced in 8c350d3a32c0, correct it and add a test 2009-08-24 12:47:44 +02:00
Dirkjan Ochtman
e00109f7e7 cmdutil: use context objects for walkchangerevs() 2009-08-20 08:34:22 +02:00
Brendan Cully
934b96bb88 churn: correct output when run in subdirectories 2009-08-05 17:17:06 -07:00
Martin Geisler
15a8335b92 churn: wrap docstrings at 70 characters 2009-07-26 01:41:31 +02:00
Martin Geisler
0c95184876 churn: use reST syntax for literal blocks 2009-07-23 00:22:05 +02:00
Martin Geisler
c8688ff0a2 churn: wrapped docstrings at 78 characters 2009-07-07 23:54:42 +02:00
Alejandro Santos
1ef2fb42a7 compat: use 'key' argument instead of 'cmp' when sorting a list 2009-07-05 11:02:00 +02:00
Dirkjan Ochtman
0448417ea2 extensions: change descriptions for extensions providing a few commands 2009-06-24 13:42:02 +02:00
Cédric Duval
dbcec5595d extensions: improve the consistency of synopses
Trying as much as possible to consistently:
 - use a present tense predicate followed by a direct object
 - verb referring directly to the functionality provided
   (ie. not "add command that does this" but simple "do that")
 - keep simple and to the point, leaving details for the long help
   (width is tight, possibly even more so for translations)

Thanks to timeless, Martin Geisler, Rafael Villar Burke, Dan Villiom
Podlaski Christiansen and others for the helpful suggestions.
2009-06-22 15:48:08 +02:00
Dirkjan Ochtman
605b944edf kill trailing whitespace 2009-06-19 13:47:50 +02:00
Cédric Duval
66894ecd9d churn: improve description
Thanks to Martin Geisler and timeless for the suggested improvements.
2009-06-16 22:24:46 +02:00
Martin Geisler
9302c79c56 churn: use .hgchurn in repo root as default map file 2009-04-29 20:03:54 +02:00
Martin Geisler
7d509c2459 add blank line after copyright notices and after header 2009-04-26 01:25:53 +02:00
Martin Geisler
750183bdad updated license to be explicit about GPL version 2 2009-04-26 01:08:54 +02:00