Show More
@@ -24,7 +24,7 b' def maketemplater(ui, repo, tmpl):' | |||||
24 |
|
24 | |||
25 | def changedlines(ui, repo, ctx1, ctx2, fns): |
|
25 | def changedlines(ui, repo, ctx1, ctx2, fns): | |
26 | lines = 0 |
|
26 | lines = 0 | |
27 |
fmatch = cmdutil.match(repo, |
|
27 | fmatch = cmdutil.matchfiles(repo, fns) | |
28 | diff = ''.join(patch.diff(repo, ctx1.node(), ctx2.node(), fmatch)) |
|
28 | diff = ''.join(patch.diff(repo, ctx1.node(), ctx2.node(), fmatch)) | |
29 | for l in diff.split('\n'): |
|
29 | for l in diff.split('\n'): | |
30 | if (l.startswith("+") and not l.startswith("+++ ") or |
|
30 | if (l.startswith("+") and not l.startswith("+++ ") or |
@@ -28,11 +28,13 b' echo def > d/g/f2.txt' | |||||
28 | hg ci -Am "add d/g/f2.txt" -u user1 -d 13:00 d/g/f2.txt |
|
28 | hg ci -Am "add d/g/f2.txt" -u user1 -d 13:00 d/g/f2.txt | |
29 |
|
29 | |||
30 | echo % churn separate directories |
|
30 | echo % churn separate directories | |
31 | hg churn d/e |
|
31 | cd d | |
|
32 | hg churn e | |||
32 | echo % churn all |
|
33 | echo % churn all | |
33 | hg churn |
|
34 | hg churn | |
34 | echo % churn up to rev 2 |
|
35 | echo % churn up to rev 2 | |
35 | hg churn -r :2 |
|
36 | hg churn -r :2 | |
|
37 | cd .. | |||
36 | echo % churn with aliases |
|
38 | echo % churn with aliases | |
37 | cat > ../aliases <<EOF |
|
39 | cat > ../aliases <<EOF | |
38 | user1 alias1 |
|
40 | user1 alias1 |
General Comments 0
You need to be logged in to leave comments.
Login now