annotate tests/test-log-linerange.t @ 50400:95acba2c29f6

encoding: avoid quadratic time complexity when json-encoding non-UTF8 strings Apparently the code uses "+=" with a bytes object, which is linear-time, so the whole encoding is quadratic-time. This patch makes us use a bytearray object, instead, which has a(n amortized-)constant-time append operation. The encoding is still not particularly fast, but at least a 10MB file takes tens of seconds, not many hours to encode.
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Mon, 06 Mar 2023 11:27:57 +0000
parents 55c6ebd11cb9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
1 $ cat >> $HGRCPATH << EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
2 > [diff]
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
3 > git = true
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
4 > EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
5
49621
55c6ebd11cb9 tests: run many tests in $TESTTMP/repo instead of $TESTTMP
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents: 48553
diff changeset
6 $ hg init repo
55c6ebd11cb9 tests: run many tests in $TESTTMP/repo instead of $TESTTMP
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents: 48553
diff changeset
7 $ cd repo
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
8 $ cat > foo << EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
9 > 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
10 > 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
11 > 2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
12 > 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
13 > 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
14 > EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
15 $ hg ci -Am init
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
16 adding foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
17 $ cat > foo << EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
18 > 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
19 > 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
20 > 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
21 > 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
22 > 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
23 > 2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
24 > 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
25 > 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
26 > EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
27 $ hg ci -m 'more 0'
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
28 $ sed 's/2/2+/' foo > foo.new
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
29 $ mv foo.new foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
30 $ cat > bar << EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
31 > a
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
32 > b
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
33 > c
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
34 > d
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
35 > e
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
36 > EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
37 $ hg add bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
38 $ hg ci -Am "2 -> 2+; added bar"
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
39 $ cat >> foo << EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
40 > 5
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
41 > 6
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
42 > 7
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
43 > 8
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
44 > 9
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
45 > 10
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
46 > 11
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
47 > EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
48 $ hg ci -m "to 11"
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
49
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
50 Add some changes with two diff hunks
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
51
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
52 $ sed 's/^1$/ 1/' foo > foo.new
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
53 $ mv foo.new foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
54 $ sed 's/^11$/11+/' foo > foo.new
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
55 $ mv foo.new foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
56 $ hg ci -m '11 -> 11+; leading space before "1"'
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
57 (make sure there are two hunks in "foo")
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
58 $ hg diff -c .
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
59 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
60 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
61 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
62 @@ -2,7 +2,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
63 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
64 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
65 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
66 -1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
67 + 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
68 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
69 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
70 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
71 @@ -12,4 +12,4 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
72 8
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
73 9
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
74 10
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
75 -11
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
76 +11+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
77 $ sed 's/3/3+/' foo > foo.new
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
78 $ mv foo.new foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
79 $ sed 's/^11+$/11-/' foo > foo.new
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
80 $ mv foo.new foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
81 $ sed 's/a/a+/' bar > bar.new
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
82 $ mv bar.new bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
83 $ hg ci -m 'foo: 3 -> 3+ and 11+ -> 11-; bar: a -> a+'
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
84 (make sure there are two hunks in "foo")
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
85 $ hg diff -c . foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
86 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
87 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
88 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
89 @@ -4,7 +4,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
90 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
91 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
92 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
93 -3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
94 +3+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
95 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
96 5
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
97 6
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
98 @@ -12,4 +12,4 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
99 8
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
100 9
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
101 10
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
102 -11+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
103 +11-
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
104
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
105 $ hg log -f -L foo,5:7 -p
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
106 changeset: 5:cfdf972b3971
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
107 tag: tip
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
108 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
109 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
110 summary: foo: 3 -> 3+ and 11+ -> 11-; bar: a -> a+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
111
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
112 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
113 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
114 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
115 @@ -4,7 +4,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
116 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
117 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
118 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
119 -3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
120 +3+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
121 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
122 5
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
123 6
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
124
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
125 changeset: 4:eaec41c1a0c9
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
126 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
127 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
128 summary: 11 -> 11+; leading space before "1"
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
129
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
130 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
131 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
132 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
133 @@ -2,7 +2,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
134 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
135 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
136 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
137 -1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
138 + 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
139 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
140 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
141 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
142
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
143 changeset: 2:63a884426fd0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
144 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
145 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
146 summary: 2 -> 2+; added bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
147
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
148 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
149 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
150 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
151 @@ -3,6 +3,6 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
152 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
153 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
154 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
155 -2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
156 +2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
157 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
158 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
159
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
160 changeset: 0:5ae1f82b9a00
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
161 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
162 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
163 summary: init
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
164
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
165 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
166 new file mode 100644
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
167 --- /dev/null
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
168 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
169 @@ -0,0 +1,5 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
170 +0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
171 +1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
172 +2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
173 +3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
174 +4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
175
36033
dae84ccebc57 tests: fix check for --graph option in test-log-linerange.t
Denis Laxalde <denis@laxalde.org>
parents: 34937
diff changeset
176 $ hg log -f --graph -L foo,5:7 -p
36197
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
177 @ changeset: 5:cfdf972b3971
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
178 | tag: tip
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
179 | user: test
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
180 | date: Thu Jan 01 00:00:00 1970 +0000
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
181 | summary: foo: 3 -> 3+ and 11+ -> 11-; bar: a -> a+
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
182 |
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
183 | diff --git a/foo b/foo
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
184 | --- a/foo
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
185 | +++ b/foo
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
186 | @@ -4,7 +4,7 @@
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
187 | 0
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
188 | 1
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
189 | 2+
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
190 | -3
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
191 | +3+
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
192 | 4
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
193 | 5
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
194 | 6
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
195 |
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
196 o changeset: 4:eaec41c1a0c9
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
197 : user: test
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
198 : date: Thu Jan 01 00:00:00 1970 +0000
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
199 : summary: 11 -> 11+; leading space before "1"
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
200 :
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
201 : diff --git a/foo b/foo
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
202 : --- a/foo
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
203 : +++ b/foo
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
204 : @@ -2,7 +2,7 @@
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
205 : 0
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
206 : 0
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
207 : 0
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
208 : -1
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
209 : + 1
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
210 : 2+
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
211 : 3
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
212 : 4
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
213 :
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
214 o changeset: 2:63a884426fd0
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
215 : user: test
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
216 : date: Thu Jan 01 00:00:00 1970 +0000
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
217 : summary: 2 -> 2+; added bar
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
218 :
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
219 : diff --git a/foo b/foo
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
220 : --- a/foo
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
221 : +++ b/foo
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
222 : @@ -3,6 +3,6 @@
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
223 : 0
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
224 : 0
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
225 : 1
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
226 : -2
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
227 : +2+
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
228 : 3
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
229 : 4
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
230 :
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
231 o changeset: 0:5ae1f82b9a00
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
232 user: test
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
233 date: Thu Jan 01 00:00:00 1970 +0000
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
234 summary: init
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
235
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
236 diff --git a/foo b/foo
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
237 new file mode 100644
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
238 --- /dev/null
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
239 +++ b/foo
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
240 @@ -0,0 +1,5 @@
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
241 +0
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
242 +1
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
243 +2
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
244 +3
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
245 +4
db26e6a0a677 graphlog: unblock --line-range option
Yuya Nishihara <yuya@tcha.org>
parents: 36033
diff changeset
246
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
247
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
248 With --template.
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
249
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
250 $ hg log -f -L foo,5:7 -T '{rev}:{node|short} {desc|firstline}\n'
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
251 5:cfdf972b3971 foo: 3 -> 3+ and 11+ -> 11-; bar: a -> a+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
252 4:eaec41c1a0c9 11 -> 11+; leading space before "1"
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
253 2:63a884426fd0 2 -> 2+; added bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
254 0:5ae1f82b9a00 init
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
255 $ hg log -f -L foo,5:7 -T json
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
256 [
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
257 {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
258 "bookmarks": [],
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
259 "branch": "default",
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
260 "date": [0, 0],
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
261 "desc": "foo: 3 -> 3+ and 11+ -> 11-; bar: a -> a+",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
262 "node": "cfdf972b3971a2a59638bf9583c0debbffee5404",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
263 "parents": ["eaec41c1a0c9ad0a5e999611d0149d171beffb8c"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
264 "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
265 "rev": 5,
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
266 "tags": ["tip"],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
267 "user": "test"
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
268 },
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
269 {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
270 "bookmarks": [],
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
271 "branch": "default",
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
272 "date": [0, 0],
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
273 "desc": "11 -> 11+; leading space before \"1\"",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
274 "node": "eaec41c1a0c9ad0a5e999611d0149d171beffb8c",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
275 "parents": ["730a61fbaecf426c17c2c66bc42d195b5d5b0ba8"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
276 "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
277 "rev": 4,
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
278 "tags": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
279 "user": "test"
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
280 },
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
281 {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
282 "bookmarks": [],
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
283 "branch": "default",
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
284 "date": [0, 0],
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
285 "desc": "2 -> 2+; added bar",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
286 "node": "63a884426fd0b277fcd55895bbb2f230434576eb",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
287 "parents": ["29a1e7c6b80024f63f310a2d71de979e9d2996d7"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
288 "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
289 "rev": 2,
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
290 "tags": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
291 "user": "test"
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
292 },
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
293 {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
294 "bookmarks": [],
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
295 "branch": "default",
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
296 "date": [0, 0],
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
297 "desc": "init",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
298 "node": "5ae1f82b9a000ff1e0967d0dac1c58b9d796e1b4",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
299 "parents": ["0000000000000000000000000000000000000000"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
300 "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
301 "rev": 0,
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
302 "tags": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 36994
diff changeset
303 "user": "test"
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
304 }
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
305 ]
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
306
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
307 With some white-space diff option, respective revisions are skipped.
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
308
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
309 $ hg log -f -L foo,5:7 -p --config diff.ignorews=true
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
310 changeset: 5:cfdf972b3971
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
311 tag: tip
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
312 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
313 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
314 summary: foo: 3 -> 3+ and 11+ -> 11-; bar: a -> a+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
315
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
316 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
317 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
318 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
319 @@ -4,7 +4,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
320 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
321 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
322 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
323 -3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
324 +3+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
325 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
326 5
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
327 6
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
328
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
329 changeset: 2:63a884426fd0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
330 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
331 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
332 summary: 2 -> 2+; added bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
333
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
334 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
335 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
336 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
337 @@ -3,6 +3,6 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
338 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
339 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
340 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
341 -2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
342 +2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
343 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
344 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
345
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
346 changeset: 0:5ae1f82b9a00
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
347 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
348 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
349 summary: init
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
350
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
351 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
352 new file mode 100644
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
353 --- /dev/null
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
354 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
355 @@ -0,0 +1,5 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
356 +0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
357 +1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
358 +2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
359 +3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
360 +4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
361
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
362
34906
2e45bbd3db7b log: disable bare file patterns with --line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34905
diff changeset
363 Regular file patterns are not allowed.
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
364
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
365 $ hg log -f -L foo,5:7 -p bar
34906
2e45bbd3db7b log: disable bare file patterns with --line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34905
diff changeset
366 abort: FILE arguments are not compatible with --line-range option
45827
8d72e29ad1e0 errors: introduce InputError and use it from commands and cmdutil
Martin von Zweigbergk <martinvonz@google.com>
parents: 43793
diff changeset
367 [10]
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
368
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
369 Option --rev acts as a restriction.
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
370
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
371 $ hg log -f -L foo,5:7 -p -r 'desc(2)'
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
372 changeset: 2:63a884426fd0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
373 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
374 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
375 summary: 2 -> 2+; added bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
376
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
377 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
378 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
379 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
380 @@ -3,6 +3,6 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
381 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
382 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
383 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
384 -2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
385 +2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
386 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
387 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
388
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
389 changeset: 0:5ae1f82b9a00
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
390 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
391 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
392 summary: init
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
393
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
394 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
395 new file mode 100644
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
396 --- /dev/null
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
397 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
398 @@ -0,0 +1,5 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
399 +0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
400 +1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
401 +2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
402 +3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
403 +4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
404
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
405
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
406 With several -L patterns, changes touching any files in their respective line
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
407 range are show.
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
408
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
409 $ hg log -f -L foo,5:7 -L bar,1:2 -p
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
410 changeset: 5:cfdf972b3971
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
411 tag: tip
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
412 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
413 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
414 summary: foo: 3 -> 3+ and 11+ -> 11-; bar: a -> a+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
415
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
416 diff --git a/bar b/bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
417 --- a/bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
418 +++ b/bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
419 @@ -1,4 +1,4 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
420 -a
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
421 +a+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
422 b
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
423 c
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
424 d
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
425 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
426 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
427 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
428 @@ -4,7 +4,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
429 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
430 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
431 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
432 -3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
433 +3+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
434 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
435 5
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
436 6
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
437
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
438 changeset: 4:eaec41c1a0c9
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
439 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
440 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
441 summary: 11 -> 11+; leading space before "1"
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
442
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
443 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
444 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
445 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
446 @@ -2,7 +2,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
447 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
448 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
449 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
450 -1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
451 + 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
452 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
453 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
454 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
455
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
456 changeset: 2:63a884426fd0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
457 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
458 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
459 summary: 2 -> 2+; added bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
460
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
461 diff --git a/bar b/bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
462 new file mode 100644
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
463 --- /dev/null
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
464 +++ b/bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
465 @@ -0,0 +1,5 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
466 +a
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
467 +b
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
468 +c
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
469 +d
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
470 +e
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
471 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
472 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
473 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
474 @@ -3,6 +3,6 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
475 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
476 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
477 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
478 -2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
479 +2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
480 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
481 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
482
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
483 changeset: 0:5ae1f82b9a00
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
484 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
485 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
486 summary: init
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
487
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
488 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
489 new file mode 100644
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
490 --- /dev/null
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
491 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
492 @@ -0,0 +1,5 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
493 +0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
494 +1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
495 +2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
496 +3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
497 +4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
498
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
499
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
500 Multiple -L options with the same file yields changes touching any of
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
501 specified line ranges.
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
502
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
503 $ hg log -f -L foo,5:7 -L foo,14:15 -p
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
504 changeset: 5:cfdf972b3971
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
505 tag: tip
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
506 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
507 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
508 summary: foo: 3 -> 3+ and 11+ -> 11-; bar: a -> a+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
509
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
510 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
511 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
512 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
513 @@ -4,7 +4,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
514 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
515 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
516 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
517 -3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
518 +3+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
519 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
520 5
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
521 6
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
522 @@ -12,4 +12,4 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
523 8
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
524 9
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
525 10
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
526 -11+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
527 +11-
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
528
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
529 changeset: 4:eaec41c1a0c9
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
530 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
531 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
532 summary: 11 -> 11+; leading space before "1"
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
533
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
534 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
535 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
536 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
537 @@ -2,7 +2,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
538 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
539 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
540 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
541 -1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
542 + 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
543 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
544 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
545 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
546 @@ -12,4 +12,4 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
547 8
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
548 9
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
549 10
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
550 -11
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
551 +11+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
552
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
553 changeset: 3:730a61fbaecf
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
554 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
555 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
556 summary: to 11
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
557
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
558 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
559 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
560 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
561 @@ -6,3 +6,10 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
562 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
563 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
564 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
565 +5
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
566 +6
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
567 +7
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
568 +8
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
569 +9
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
570 +10
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
571 +11
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
572
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
573 changeset: 2:63a884426fd0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
574 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
575 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
576 summary: 2 -> 2+; added bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
577
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
578 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
579 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
580 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
581 @@ -3,6 +3,6 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
582 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
583 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
584 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
585 -2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
586 +2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
587 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
588 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
589
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
590 changeset: 0:5ae1f82b9a00
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
591 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
592 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
593 summary: init
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
594
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
595 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
596 new file mode 100644
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
597 --- /dev/null
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
598 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
599 @@ -0,0 +1,5 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
600 +0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
601 +1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
602 +2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
603 +3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
604 +4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
605
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
606
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
607 A file with a comma in its name.
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
608
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
609 $ cat > ba,z << EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
610 > q
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
611 > w
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
612 > e
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
613 > r
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
614 > t
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
615 > y
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
616 > EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
617 $ hg ci -Am 'querty'
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
618 adding ba,z
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
619 $ cat >> ba,z << EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
620 > u
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
621 > i
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
622 > o
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
623 > p
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
624 > EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
625 $ hg ci -m 'more keys'
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
626 $ cat > ba,z << EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
627 > a
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
628 > z
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
629 > e
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
630 > r
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
631 > t
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
632 > y
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
633 > u
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
634 > i
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
635 > o
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
636 > p
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
637 > EOF
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
638 $ hg ci -m 'azerty'
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
639 $ hg log -f -L ba,z,1:2 -p
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
640 changeset: 8:52373265138b
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
641 tag: tip
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
642 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
643 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
644 summary: azerty
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
645
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
646 diff --git a/ba,z b/ba,z
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
647 --- a/ba,z
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
648 +++ b/ba,z
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
649 @@ -1,5 +1,5 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
650 -q
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
651 -w
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
652 +a
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
653 +z
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
654 e
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
655 r
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
656 t
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
657
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
658 changeset: 6:96ba8850f316
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
659 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
660 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
661 summary: querty
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
662
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
663 diff --git a/ba,z b/ba,z
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
664 new file mode 100644
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
665 --- /dev/null
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
666 +++ b/ba,z
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
667 @@ -0,0 +1,6 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
668 +q
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
669 +w
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
670 +e
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
671 +r
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
672 +t
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
673 +y
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
674
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
675
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
676 Exact prefix kinds work in -L options.
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
677
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
678 $ mkdir dir
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
679 $ cd dir
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
680 $ hg log -f -L path:foo,5:7 -p
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
681 changeset: 5:cfdf972b3971
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
682 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
683 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
684 summary: foo: 3 -> 3+ and 11+ -> 11-; bar: a -> a+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
685
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
686 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
687 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
688 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
689 @@ -4,7 +4,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
690 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
691 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
692 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
693 -3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
694 +3+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
695 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
696 5
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
697 6
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
698
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
699 changeset: 4:eaec41c1a0c9
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
700 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
701 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
702 summary: 11 -> 11+; leading space before "1"
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
703
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
704 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
705 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
706 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
707 @@ -2,7 +2,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
708 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
709 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
710 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
711 -1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
712 + 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
713 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
714 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
715 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
716
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
717 changeset: 2:63a884426fd0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
718 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
719 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
720 summary: 2 -> 2+; added bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
721
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
722 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
723 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
724 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
725 @@ -3,6 +3,6 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
726 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
727 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
728 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
729 -2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
730 +2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
731 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
732 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
733
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
734 changeset: 0:5ae1f82b9a00
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
735 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
736 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
737 summary: init
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
738
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
739 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
740 new file mode 100644
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
741 --- /dev/null
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
742 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
743 @@ -0,0 +1,5 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
744 +0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
745 +1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
746 +2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
747 +3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
748 +4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
749
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
750
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
751 Renames are followed.
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
752
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
753 $ hg mv ../foo baz
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
754 $ sed 's/1/1+/' baz > baz.new
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
755 $ mv baz.new baz
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
756 $ hg ci -m 'foo -> dir/baz; 1-1+'
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
757 $ hg diff -c .
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
758 diff --git a/foo b/dir/baz
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
759 rename from foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
760 rename to dir/baz
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
761 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
762 +++ b/dir/baz
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
763 @@ -2,7 +2,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
764 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
765 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
766 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
767 - 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
768 + 1+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
769 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
770 3+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
771 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
772 @@ -11,5 +11,5 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
773 7
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
774 8
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
775 9
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
776 -10
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
777 -11-
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
778 +1+0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
779 +1+1-
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
780 $ hg log -f -L relpath:baz,5:7 -p
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
781 changeset: 9:6af29c3a778f
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
782 tag: tip
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
783 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
784 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
785 summary: foo -> dir/baz; 1-1+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
786
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
787 diff --git a/foo b/dir/baz
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
788 copy from foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
789 copy to dir/baz
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
790 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
791 +++ b/dir/baz
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
792 @@ -2,7 +2,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
793 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
794 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
795 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
796 - 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
797 + 1+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
798 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
799 3+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
800 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
801
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
802 changeset: 5:cfdf972b3971
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
803 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
804 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
805 summary: foo: 3 -> 3+ and 11+ -> 11-; bar: a -> a+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
806
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
807 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
808 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
809 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
810 @@ -4,7 +4,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
811 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
812 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
813 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
814 -3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
815 +3+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
816 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
817 5
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
818 6
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
819
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
820 changeset: 4:eaec41c1a0c9
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
821 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
822 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
823 summary: 11 -> 11+; leading space before "1"
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
824
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
825 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
826 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
827 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
828 @@ -2,7 +2,7 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
829 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
830 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
831 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
832 -1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
833 + 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
834 2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
835 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
836 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
837
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
838 changeset: 2:63a884426fd0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
839 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
840 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
841 summary: 2 -> 2+; added bar
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
842
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
843 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
844 --- a/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
845 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
846 @@ -3,6 +3,6 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
847 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
848 0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
849 1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
850 -2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
851 +2+
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
852 3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
853 4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
854
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
855 changeset: 0:5ae1f82b9a00
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
856 user: test
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
857 date: Thu Jan 01 00:00:00 1970 +0000
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
858 summary: init
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
859
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
860 diff --git a/foo b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
861 new file mode 100644
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
862 --- /dev/null
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
863 +++ b/foo
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
864 @@ -0,0 +1,5 @@
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
865 +0
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
866 +1
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
867 +2
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
868 +3
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
869 +4
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
870
34904
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
871
43739
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
872 Uncommitted changes with a rename
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
873
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
874 $ hg mv baz bazn
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
875 $ hg log -f -L bazn,5:7
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
876 changeset: 9:6af29c3a778f
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
877 tag: tip
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
878 user: test
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
879 date: Thu Jan 01 00:00:00 1970 +0000
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
880 summary: foo -> dir/baz; 1-1+
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
881
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
882 changeset: 5:cfdf972b3971
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
883 user: test
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
884 date: Thu Jan 01 00:00:00 1970 +0000
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
885 summary: foo: 3 -> 3+ and 11+ -> 11-; bar: a -> a+
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
886
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
887 changeset: 4:eaec41c1a0c9
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
888 user: test
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
889 date: Thu Jan 01 00:00:00 1970 +0000
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
890 summary: 11 -> 11+; leading space before "1"
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
891
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
892 changeset: 2:63a884426fd0
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
893 user: test
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
894 date: Thu Jan 01 00:00:00 1970 +0000
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
895 summary: 2 -> 2+; added bar
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
896
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
897 changeset: 0:5ae1f82b9a00
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
898 user: test
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
899 date: Thu Jan 01 00:00:00 1970 +0000
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
900 summary: init
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
901
43740
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
902
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
903 Uncommitted changes in requested line range
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
904
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
905 $ sed 's/2/ /' bazn > bazn.new
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
906 $ mv bazn.new bazn
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
907 $ hg diff
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
908 diff --git a/dir/baz b/dir/bazn
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
909 rename from dir/baz
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
910 rename to dir/bazn
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
911 --- a/dir/baz
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
912 +++ b/dir/bazn
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
913 @@ -3,7 +3,7 @@
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
914 0
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
915 0
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
916 1+
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
917 -2+
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
918 + +
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
919 3+
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
920 4
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
921 5
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
922 $ hg log -f -L bazn,5:7
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
923 changeset: 9:6af29c3a778f
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
924 tag: tip
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
925 user: test
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
926 date: Thu Jan 01 00:00:00 1970 +0000
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
927 summary: foo -> dir/baz; 1-1+
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
928
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
929 changeset: 5:cfdf972b3971
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
930 user: test
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
931 date: Thu Jan 01 00:00:00 1970 +0000
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
932 summary: foo: 3 -> 3+ and 11+ -> 11-; bar: a -> a+
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
933
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
934 changeset: 4:eaec41c1a0c9
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
935 user: test
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
936 date: Thu Jan 01 00:00:00 1970 +0000
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
937 summary: 11 -> 11+; leading space before "1"
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
938
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
939 changeset: 2:63a884426fd0
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
940 user: test
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
941 date: Thu Jan 01 00:00:00 1970 +0000
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
942 summary: 2 -> 2+; added bar
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
943
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
944 changeset: 0:5ae1f82b9a00
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
945 user: test
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
946 date: Thu Jan 01 00:00:00 1970 +0000
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
947 summary: init
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
948
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
949
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
950 Uncommitted changes in line-range + wdir()
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
951
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
952 $ hg log -r 'wdir()' -f -L bazn,5:7 --limit 2 -p
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
953 changeset: 2147483647:ffffffffffff
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
954 parent: 9:6af29c3a778f
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
955 user: test
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
956 date: Thu Jan 01 00:00:00 1970 +0000
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
957
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
958 diff --git a/dir/baz b/dir/bazn
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
959 copy from dir/baz
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
960 copy to dir/bazn
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
961 --- a/dir/baz
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
962 +++ b/dir/bazn
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
963 @@ -3,7 +3,7 @@
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
964 0
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
965 0
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
966 1+
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
967 -2+
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
968 + +
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
969 3+
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
970 4
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
971 5
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
972
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
973 changeset: 9:6af29c3a778f
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
974 tag: tip
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
975 user: test
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
976 date: Thu Jan 01 00:00:00 1970 +0000
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
977 summary: foo -> dir/baz; 1-1+
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
978
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
979 diff --git a/foo b/dir/baz
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
980 copy from foo
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
981 copy to dir/baz
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
982 --- a/foo
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
983 +++ b/dir/baz
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
984 @@ -2,7 +2,7 @@
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
985 0
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
986 0
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
987 0
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
988 - 1
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
989 + 1+
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
990 2+
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
991 3+
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
992 4
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
993
d1b9d2c6ec96 log: map None rev to wdirrev when filtering revisions with --line-range
Denis Laxalde <denis@laxalde.org>
parents: 43739
diff changeset
994
43739
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
995 $ hg revert -a -C -q
66d5c8c3afed tests: check that 'log --line-range' follows uncommitted changes
Denis Laxalde <denis@laxalde.org>
parents: 37772
diff changeset
996
43631
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
997 Copies.
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
998
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
999 $ hg copy baz bbaz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1000 $ sed 's/6/6+/' bbaz > bbaz.new
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1001 $ mv bbaz.new bbaz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1002 $ hg commit -m 'cp baz bbaz; 6-6+'
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1003 $ hg diff -c .
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1004 diff --git a/dir/baz b/dir/bbaz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1005 copy from dir/baz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1006 copy to dir/bbaz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1007 --- a/dir/baz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1008 +++ b/dir/bbaz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1009 @@ -7,7 +7,7 @@
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1010 3+
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1011 4
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1012 5
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1013 -6
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1014 +6+
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1015 7
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1016 8
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1017 9
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1018 $ hg log --copies -f -L bbaz,10:11 -p
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1019 changeset: 10:91a3d3b6c546
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1020 tag: tip
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1021 user: test
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1022 date: Thu Jan 01 00:00:00 1970 +0000
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1023 summary: cp baz bbaz; 6-6+
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1024
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1025 diff --git a/dir/baz b/dir/bbaz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1026 copy from dir/baz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1027 copy to dir/bbaz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1028 --- a/dir/baz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1029 +++ b/dir/bbaz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1030 @@ -7,7 +7,7 @@
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1031 3+
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1032 4
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1033 5
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1034 -6
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1035 +6+
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1036 7
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1037 8
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1038 9
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1039
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1040 changeset: 3:730a61fbaecf
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1041 user: test
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1042 date: Thu Jan 01 00:00:00 1970 +0000
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1043 summary: to 11
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1044
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1045 diff --git a/foo b/foo
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1046 --- a/foo
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1047 +++ b/foo
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1048 @@ -6,3 +6,10 @@
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1049 2+
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1050 3
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1051 4
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1052 +5
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1053 +6
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1054 +7
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1055 +8
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1056 +9
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1057 +10
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1058 +11
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1059
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1060 $ hg log -f -L bbaz,10:11 -p
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1061 changeset: 10:91a3d3b6c546
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1062 tag: tip
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1063 user: test
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1064 date: Thu Jan 01 00:00:00 1970 +0000
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1065 summary: cp baz bbaz; 6-6+
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1066
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1067 diff --git a/dir/baz b/dir/bbaz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1068 copy from dir/baz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1069 copy to dir/bbaz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1070 --- a/dir/baz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1071 +++ b/dir/bbaz
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1072 @@ -7,7 +7,7 @@
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1073 3+
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1074 4
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1075 5
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1076 -6
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1077 +6+
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1078 7
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1079 8
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1080 9
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1081
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1082 changeset: 3:730a61fbaecf
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1083 user: test
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1084 date: Thu Jan 01 00:00:00 1970 +0000
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1085 summary: to 11
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1086
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1087 diff --git a/foo b/foo
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1088 --- a/foo
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1089 +++ b/foo
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1090 @@ -6,3 +6,10 @@
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1091 2+
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1092 3
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1093 4
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1094 +5
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1095 +6
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1096 +7
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1097 +8
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1098 +9
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1099 +10
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1100 +11
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1101
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1102
34904
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1103 Binary files work but without diff hunks filtering.
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1104 (Checking w/ and w/o diff.git option.)
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1105
36994
0baf0e3ee569 py3: make tests/test-log-linerange.t work on Python 3
Pulkit Goyal <7895pulkit@gmail.com>
parents: 36197
diff changeset
1106 >>> open('binary', 'wb').write(b'this\nis\na\nbinary\0') and None
34904
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1107 $ hg add binary
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1108 $ hg ci -m 'add a binary file' --quiet
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
1109 $ hg log -f -L binary,1:2 -p
43631
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1110 changeset: 11:dc865b608edf
34904
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1111 tag: tip
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1112 user: test
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1113 date: Thu Jan 01 00:00:00 1970 +0000
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1114 summary: add a binary file
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1115
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1116 diff --git a/dir/binary b/dir/binary
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1117 new file mode 100644
46548
0492002560f3 tests: accept output changes by 33350debb480
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 45895
diff changeset
1118 index 0000000000000000000000000000000000000000..c2e1fbed209fe919b3f189a6a31950e9adf61e45
34904
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1119 GIT binary patch
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1120 literal 17
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1121 Wc$_QA$SmdpqC~Ew%)G>+N(KNlNClYy
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1122
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1123
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
1124 $ hg log -f -L binary,1:2 -p --config diff.git=false
43631
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1125 changeset: 11:dc865b608edf
34904
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1126 tag: tip
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1127 user: test
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1128 date: Thu Jan 01 00:00:00 1970 +0000
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1129 summary: add a binary file
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1130
43631
d3c4368099ed tests: test "hg log" with --line-range and --copies
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 37772
diff changeset
1131 diff -r 91a3d3b6c546 -r dc865b608edf dir/binary
34904
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1132 Binary file dir/binary has changed
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1133
4554649a6ea4 log: handle binary files in --line-range patterns
Denis Laxalde <denis@laxalde.org>
parents: 34857
diff changeset
1134
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
1135 Option --follow is required.
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
1136
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
1137 $ hg log -L foo,5:7
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
1138 abort: --line-range requires --follow
45827
8d72e29ad1e0 errors: introduce InputError and use it from commands and cmdutil
Martin von Zweigbergk <martinvonz@google.com>
parents: 43793
diff changeset
1139 [10]
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
1140
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
1141 Non-exact pattern kinds are not allowed.
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
1142
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
1143 $ cd ..
34905
5c7dbb730179 log: switch to FROMLINE:TOLINE syntax for -L/--line-range
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34904
diff changeset
1144 $ hg log -f -L glob:*a*,1:2
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
1145 hg: parse error: line range pattern 'glob:*a*' must match exactly one file
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45827
diff changeset
1146 [10]
34857
84c6b9384d6a log: add -L/--line-range option to follow file history by line range
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
1147
34907
0ccfc468423a log: handle removed files with --line-range patterns
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34906
diff changeset
1148 We get an error for removed files.
0ccfc468423a log: handle removed files with --line-range patterns
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34906
diff changeset
1149
0ccfc468423a log: handle removed files with --line-range patterns
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34906
diff changeset
1150 $ hg rm dir/baz
0ccfc468423a log: handle removed files with --line-range patterns
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34906
diff changeset
1151 $ hg ci -m 'remove baz' --quiet
0ccfc468423a log: handle removed files with --line-range patterns
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34906
diff changeset
1152 $ hg log -f -L dir/baz,5:7 -p
0ccfc468423a log: handle removed files with --line-range patterns
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34906
diff changeset
1153 abort: cannot follow file not in parent revision: "dir/baz"
48553
3b6b43a7ace4 logcmdutil: raise `StateError` when file to follow doesn't exist
Martin von Zweigbergk <martinvonz@google.com>
parents: 46548
diff changeset
1154 [20]