Commit Graph

23 Commits

Author SHA1 Message Date
madhu@madhu
d6166450e5 Returns lines changed for paths specified as arguments correctly.
This fixes issue 1569. hg churn <path> now returns only the number
of lines changed in the path, if the path is specified by filtering
files through a match filter at the changeset level. test-churn
has been updated to take care of this issue.
2009-03-25 01:49:03 +05:30
Jim Correia
78e5b53d7d add --git option to commands supporting --patch (log, incoming, history, tip)
No short -g form, since it would conflict with -g from the graphlog extension.
2009-02-14 22:40:39 +01:00
Martin Geisler
03c8c2c928 churn: lowercase output
This changes the continuously updated progress bar -- not something a
script would rely on.
2009-01-03 17:15:21 +01:00
Martin Geisler
23608038bf lowercase help output
Changes docstrings to begin with a lowercase word. Only docstrings
used in help output is changed.

Scripts are not expected to grep the output of 'hg help' so this
change should pose no problem with regard to the compatibility rules.
2009-01-03 17:15:15 +01:00
Alexander Solovyov
c1774bb6c3 python implementation of diffstat
Implemented as two functions: diffstat, which yields lines of text,
formatted as a usual diffstat output, and diffstatdata, which is called
inside diffstat to do real performing and yield file names with
appropriate data (numbers of added and removed lines).
2008-12-25 10:48:24 +02:00
Dirkjan Ochtman
9ef9b3e5db cmdutil: use change contexts for cset-printer and cset-templater 2008-11-14 13:59:25 +01:00
Dirkjan Ochtman
2f6d26d640 patch: turn patch.diff() into a generator
This should even be a little faster than passing in an fp argument.
2008-11-03 16:48:23 +01:00
Martin Geisler
657a408af8 churn: corrected help output 2008-10-18 16:51:26 +02:00
Dirkjan Ochtman
c5e3760e1d help: better documentation intro for a few extensions 2008-10-18 16:56:39 +02:00
Alexander Solovyov
79c547d51d churn: py2.3 compatibility fix
- generator expressions appeared in py2.4
 - sort doesn't have any arguments except sorting function
2008-10-10 15:53:49 +03:00
Alexander Solovyov
dfa7272d1d churn and stats commands merged 2008-10-09 00:14:20 +03:00
Alexander Solovyov
0d41308ed2 churn: generalisation, now it is possible to see statistics grouped by custom template 2008-10-03 00:07:38 +03:00
Martin Geisler
9eb8225664 i18n, churn: mark string for translation 2008-09-23 22:01:40 +02:00
Martin Geisler
f74df9cd08 i18n: mark strings for translation in churn extension 2008-08-31 16:12:02 +02:00
Dirkjan Ochtman
c567140bc4 merge with crew-stable 2008-07-25 13:27:06 +02:00
Dirkjan Ochtman
1fcc9951d2 churn: fix documentation for churn options 2008-07-25 13:23:59 +02:00
Matt Mackall
a65ef7bc5d util: add sort helper 2008-06-27 18:28:45 -05:00
Matt Mackall
8372593b89 churn: major refactor
- use contexts
- use ui.pushbuffer and patch.diff to greatly simplify patch generation
- simplify diff counting logic
- fold all the counting functions together
- simplify progress math
- simplify padding function
- kill graph helper function
- simplify alias reading
- use Schwartzian transform on stats
- change some notes to debugs
2008-06-26 18:49:45 -05:00
Matt Mackall
bc715be859 add __len__ and __iter__ methods to repo and revlog 2008-06-26 14:35:50 -05:00
Dirkjan Ochtman
dc3b56ac83 convert comments to docstrings in a bunch of extensions 2008-06-12 11:33:47 +02:00
Matt Mackall
593a8ec0d1 churn: simplify hg status call 2008-05-12 11:37:08 -05:00
Kirill Smelkov
b3208d45a6 churn: allow whitespaces as delimiter in aliases
it was exactly on space character before.
2008-03-28 11:17:10 +03:00
Patrick Mezard
449fc02367 Make churn an official extension 2008-03-22 18:01:46 +01:00