Commit Graph

18 Commits

Author SHA1 Message Date
Patrick Mezard
f32df1c921 Make {file_copies} usable as a --template key
Before this, to display file copies in templates, you had to write something
like {file_copies%filecopy}. For some reason, the {file_copy} subtemplate was
used by default but not defined by default in changeset_templater, while styles
were already using it. Here we define {file_copy} in changeset_templater, and
change the templater to handle formatting strings like {file_copies%filecopy}
with already expanded keys (in this case {file_copies}), for backward
compatibility.
2009-12-13 18:06:24 +01:00
Patrick Mezard
46b592cdfa templatekw: change {file_copies} behaviour, add {file_copies_switch}
{file_copies} template now displays file copies with or without the --copies
switch being set. A new {file_copies_switch} template implements the former
behaviour.
2009-12-13 18:06:24 +01:00
Christian Ebert
ebde959a47 log: prevent negative date range from displaying entire log (issue1805) 2009-09-04 11:51:28 +02:00
Dirkjan Ochtman
1677a2b0c1 log: fix traceback for log -k caused by 51e61d3c56bc (issue1805) 2009-08-21 09:33:27 +02:00
Henrik Stuart
235c60980e log: fix broken multiple user search
This fix also allows partial user matches so the full name and email
does not have to be written out in verbatim.
2009-04-07 20:57:25 +02:00
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
Sune Foldager
9b5eac039b provide nicer feedback when an unknown node id is passed to a command
Previously, an unknown node id would lead to the following error:
abort: 00changelog.i@343445453433: no node!

All other unknown revision would instead display as:
abort: unknown revision '343445453'!

The former error message has been suppressed in favor of the latter.
2008-10-04 10:14:39 +02:00
Maxim Dounin
4d9877b4eb Fix copies reporting in log and convert.
If copy logged in file revision, we report copy for changeset only
if file revisions linkrev points back to the changeset in question
or both changeset parents contain different file revisions.

This fixes extra copies reported when executable bit was changed for
previously copied file.
2007-12-29 17:11:48 +03:00
Thomas Arendsen Hein
cf1ee4e625 Issue a warning if "-r ." is used with two working directory parents.
Rationale for not aborting instead:
The first parent is usually more important as it is the local branch
during a merge and commands like 'hg diff' and 'hg diff -r.' behave still
identically (except for the warning of course).

Added a test for log -r. with one and two parents.
2007-06-06 19:05:18 +02:00
Matt Mackall
c1ade819b5 Remove dummy branch hack from tests 2007-03-13 18:53:23 -05:00
Thomas Arendsen Hein
92fa573aed Store empty (default) branch in branch cache, too.
Operations on this branch don't work otherwise.

Reading branches.cache had to be adjusted to allow an empty label.
Adjusted reading of the cache tip for symmetry, no functional change here.
2007-03-09 18:09:02 +01:00
Matt Mackall
daf6a67d1c Fix log regression where log -p file showed diffs for other files 2006-12-08 20:44:58 -06:00
Alexis S. L. Carvalho
3ef2e9ed94 fix hg log -r '' 2006-11-27 22:56:26 -02:00
Brendan Cully
db101c8e2b Test case for log --copies on non-linear manifests (issue391) 2006-10-13 09:58:55 -07:00
Brendan Cully
d1c28696d4 Show copies in hg log.
The format is:
copies: destination (source)...
2006-09-29 13:01:19 -07:00
Brendan Cully
44847fbcba Test for log --prune. 2006-08-14 10:27:02 -07:00
Brendan Cully
956d0c4e17 Test suite for log --follow and --follow-first. 2006-08-03 15:12:15 -07:00
Vadim Gelfer
fed53854c7 log: add -f/--follow option, to follow rename/copy 2006-07-31 07:31:31 -07:00