Mercurial > evolve
annotate tests/test-evolve-obshistory-amend.t @ 5658:398a3f0ca07a stable
packaging: use automatic variables for running test2rst.py
This script can take either file or directory path. It makes sense to only run
the script for the specific file that make tries to build and not the whole
tutorials/ directory.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 09 Nov 2020 22:37:05 +0800 |
parents | 87966baf6ea9 |
children | a34b5cf906c6 12c53d7122a7 |
rev | line source |
---|---|
5291
258c0a99c5b0
tests: update section headers and comments in obslog-related tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5262
diff
changeset
|
1 Testing obslog and other commands accessing obsolete revisions. |
2289
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
2 |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
3 Global setup |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
4 ============ |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
5 |
3885
3df8b6ecce2a
tests: extract obshistory setup in a separate file
Boris Feld <boris.feld@octobus.net>
parents:
3884
diff
changeset
|
6 $ . $TESTDIR/testlib/obshistory_setup.sh |
2289
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
7 |
5355
53953532885b
tests: put a common template snippet into [templates]
Anton Shestakov <av6@dwimlabs.net>
parents:
5354
diff
changeset
|
8 $ cat >> $HGRCPATH << EOF |
53953532885b
tests: put a common template snippet into [templates]
Anton Shestakov <av6@dwimlabs.net>
parents:
5354
diff
changeset
|
9 > [templates] |
5356
0b9fcdcdc58f
tests: update logmarkers template to use {dates} and {users}
Anton Shestakov <av6@dwimlabs.net>
parents:
5355
diff
changeset
|
10 > logdates = '{ifeq(min(dates), max(dates), "at {max(dates)|hgdate}", "between {min(dates)|hgdate} and {max(dates)|hgdate}")}' |
0b9fcdcdc58f
tests: update logmarkers template to use {dates} and {users}
Anton Shestakov <av6@dwimlabs.net>
parents:
5355
diff
changeset
|
11 > logmarkers = '{if(markers, join(markers % "{logdates} by {users} "))}' |
5355
53953532885b
tests: put a common template snippet into [templates]
Anton Shestakov <av6@dwimlabs.net>
parents:
5354
diff
changeset
|
12 > EOF |
53953532885b
tests: put a common template snippet into [templates]
Anton Shestakov <av6@dwimlabs.net>
parents:
5354
diff
changeset
|
13 |
2289
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
14 Test output on amended commit |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
15 ============================= |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
16 |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
17 Test setup |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
18 ---------- |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
19 |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
20 $ hg init $TESTTMP/local-amend |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
21 $ hg init $TESTTMP/server |
2289
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
22 $ cd $TESTTMP/local-amend |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
23 $ mkcommit ROOT |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
24 $ sync |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
25 $ mkcommit A0 . |
2289
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
26 $ echo 42 >> A0 |
2336
93a37e13424f
obshistory: add a debugobshistory command to show obs history of a revs
Boris Feld <boris.feld@octobus.net>
parents:
2290
diff
changeset
|
27 $ hg amend -m "A1 |
93a37e13424f
obshistory: add a debugobshistory command to show obs history of a revs
Boris Feld <boris.feld@octobus.net>
parents:
2290
diff
changeset
|
28 > |
93a37e13424f
obshistory: add a debugobshistory command to show obs history of a revs
Boris Feld <boris.feld@octobus.net>
parents:
2290
diff
changeset
|
29 > Better commit message" |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
30 $ sync |
2289
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
31 $ hg log --hidden -G |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
32 @ changeset: 2:4ae3a4151de9 |
2289
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
33 | tag: tip |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
34 | parent: 0:ea207398892e |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
35 | user: test |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
36 | date: Thu Jan 01 00:00:00 1970 +0000 |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
37 | summary: A1 |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
38 | |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
39 | x changeset: 1:471f378eab4c |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
40 |/ user: test |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
41 | date: Thu Jan 01 00:00:00 1970 +0000 |
3115
663dbef40f97
obsfate: re-enables operation display in obsfate
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3083
diff
changeset
|
42 | obsolete: rewritten using amend as 2:4ae3a4151de9 |
2289
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
43 | summary: A0 |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
44 | |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
45 o changeset: 0:ea207398892e |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
46 user: test |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
47 date: Thu Jan 01 00:00:00 1970 +0000 |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
48 summary: ROOT |
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
49 |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
50 Check output on the client side |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
51 ------------------------------- |
2637
49f2741c4dd7
obslog: add a patch option
Boris Feld <boris.feld@octobus.net>
parents:
2585
diff
changeset
|
52 $ hg obslog --patch 4ae3a4151de9 |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
53 @ 4ae3a4151de9 (2) A1 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
54 | rewritten(description, content) from 471f378eab4c using amend by test (*) (glob) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
55 | diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
56 | --- a/changeset-description |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
57 | +++ b/changeset-description |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
58 | @@ -1,1 +1,3 @@ |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
59 | -A0 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
60 | +A1 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
61 | + |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
62 | +Better commit message |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
63 | |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
64 | diff -r 471f378eab4c -r 4ae3a4151de9 A0 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
65 | --- a/A0 Thu Jan 01 00:00:00 1970 +0000 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
66 | +++ b/A0 Thu Jan 01 00:00:00 1970 +0000 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
67 | @@ -1,1 +1,2 @@ |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
68 | A0 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
69 | +42 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
70 | |
2407
783a74c60a5e
obshistory: add a graph option on the debugobshistory command
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2404
diff
changeset
|
71 | |
783a74c60a5e
obshistory: add a graph option on the debugobshistory command
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2404
diff
changeset
|
72 x 471f378eab4c (1) A0 |
783a74c60a5e
obshistory: add a graph option on the debugobshistory command
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2404
diff
changeset
|
73 |
3398
d67e6080e11b
obslog: colorize the patch shown using `hg obslog -p`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3375
diff
changeset
|
74 $ hg obslog --patch --color debug |
d67e6080e11b
obslog: colorize the patch shown using `hg obslog -p`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3375
diff
changeset
|
75 @ [evolve.node|4ae3a4151de9] [evolve.rev|(2)] [evolve.short_description|A1] |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
76 | [evolve.verb|rewritten](description, content) from [evolve.node|471f378eab4c] using [evolve.operation|amend] by [evolve.user|test] [evolve.date|(Thu Jan 01 00:00:00 1970 +0000)] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
77 | [diff.diffline|diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
78 | [diff.file_a|--- a/changeset-description] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
79 | [diff.file_b|+++ b/changeset-description] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
80 | [diff.hunk|@@ -1,1 +1,3 @@] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
81 | [diff.deleted|-A0] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
82 | [diff.inserted|+A1] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
83 | [diff.inserted|+] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
84 | [diff.inserted|+Better commit message] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
85 | |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
86 | [diff.diffline|diff -r 471f378eab4c -r 4ae3a4151de9 A0] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
87 | [diff.file_a|--- a/A0 Thu Jan 01 00:00:00 1970 +0000] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
88 | [diff.file_b|+++ b/A0 Thu Jan 01 00:00:00 1970 +0000] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
89 | [diff.hunk|@@ -1,1 +1,2 @@] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
90 | A0 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
91 | [diff.inserted|+42] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
92 | |
3398
d67e6080e11b
obslog: colorize the patch shown using `hg obslog -p`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3375
diff
changeset
|
93 | |
d67e6080e11b
obslog: colorize the patch shown using `hg obslog -p`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3375
diff
changeset
|
94 x [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0] |
d67e6080e11b
obslog: colorize the patch shown using `hg obslog -p`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3375
diff
changeset
|
95 |
2954 | 96 |
97 $ hg obslog --no-graph --patch 4ae3a4151de9 | |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
98 4ae3a4151de9 (2) A1 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
99 rewritten(description, content) from 471f378eab4c using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
3400
6d345d7ca682
obslog: add header to the changeset description diff
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3399
diff
changeset
|
100 diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description |
6d345d7ca682
obslog: add header to the changeset description diff
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3399
diff
changeset
|
101 --- a/changeset-description |
6d345d7ca682
obslog: add header to the changeset description diff
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3399
diff
changeset
|
102 +++ b/changeset-description |
2954 | 103 @@ -1,1 +1,3 @@ |
104 -A0 | |
105 +A1 | |
106 + | |
107 +Better commit message | |
4964
bb2042ff6444
tests: remove extra whitespace before patch in obslog output
Martin von Zweigbergk <martinvonz@google.com>
parents:
4955
diff
changeset
|
108 |
2954 | 109 diff -r 471f378eab4c -r 4ae3a4151de9 A0 |
110 --- a/A0 Thu Jan 01 00:00:00 1970 +0000 | |
111 +++ b/A0 Thu Jan 01 00:00:00 1970 +0000 | |
112 @@ -1,1 +1,2 @@ | |
113 A0 | |
114 +42 | |
4952
b135591bec1a
obslog: make {patch} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4951
diff
changeset
|
115 |
4948
069cfc5301fb
obslog: add newline after all markers in non-graphlog to match graphlog
Martin von Zweigbergk <martinvonz@google.com>
parents:
4946
diff
changeset
|
116 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
117 471f378eab4c (1) A0 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
118 |
2954 | 119 |
4944
f84a6ddb7f37
tests: demonstrate broken {patch} and {desc-diff} template keywords
Martin von Zweigbergk <martinvonz@google.com>
parents:
4939
diff
changeset
|
120 Test that content diff works with templating |
f84a6ddb7f37
tests: demonstrate broken {patch} and {desc-diff} template keywords
Martin von Zweigbergk <martinvonz@google.com>
parents:
4939
diff
changeset
|
121 $ hg obslog --color=debug --patch 4ae3a4151de9 \ |
4983
6d40e0166522
obslog: make {node} the full node and leave shortening to template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4964
diff
changeset
|
122 > -T '{node|short} {desc|firstline}\n{markers % "patch:\n```{patch}```\n"}' |
4944
f84a6ddb7f37
tests: demonstrate broken {patch} and {desc-diff} template keywords
Martin von Zweigbergk <martinvonz@google.com>
parents:
4939
diff
changeset
|
123 @ 4ae3a4151de9 A1 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
124 | patch: |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
125 | ``` |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
126 | [diff.diffline|diff -r 471f378eab4c -r 4ae3a4151de9 A0] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
127 | [diff.file_a|--- a/A0 Thu Jan 01 00:00:00 1970 +0000] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
128 | [diff.file_b|+++ b/A0 Thu Jan 01 00:00:00 1970 +0000] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
129 | [diff.hunk|@@ -1,1 +1,2 @@] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
130 | A0 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
131 | [diff.inserted|+42] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
132 | ``` |
4944
f84a6ddb7f37
tests: demonstrate broken {patch} and {desc-diff} template keywords
Martin von Zweigbergk <martinvonz@google.com>
parents:
4939
diff
changeset
|
133 x 471f378eab4c A0 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
134 |
4944
f84a6ddb7f37
tests: demonstrate broken {patch} and {desc-diff} template keywords
Martin von Zweigbergk <martinvonz@google.com>
parents:
4939
diff
changeset
|
135 |
5355
53953532885b
tests: put a common template snippet into [templates]
Anton Shestakov <av6@dwimlabs.net>
parents:
5354
diff
changeset
|
136 $ hg obslog 4ae3a4151de9 --graph --no-origin -T '{desc|firstline} {logmarkers}' |
4917
d1d8e97d32af
obslog: make changeset available to templater
Martin von Zweigbergk <martinvonz@google.com>
parents:
4823
diff
changeset
|
137 @ A1 |
d1d8e97d32af
obslog: make changeset available to templater
Martin von Zweigbergk <martinvonz@google.com>
parents:
4823
diff
changeset
|
138 | |
d1d8e97d32af
obslog: make changeset available to templater
Martin von Zweigbergk <martinvonz@google.com>
parents:
4823
diff
changeset
|
139 x A0 at 0 0 by test |
d1d8e97d32af
obslog: make changeset available to templater
Martin von Zweigbergk <martinvonz@google.com>
parents:
4823
diff
changeset
|
140 |
5355
53953532885b
tests: put a common template snippet into [templates]
Anton Shestakov <av6@dwimlabs.net>
parents:
5354
diff
changeset
|
141 $ hg obslog 4ae3a4151de9 --graph -T '{desc|firstline} {logmarkers}' |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
142 @ A1 at 0 0 by test |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
143 | |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
144 x A0 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
145 |
4917
d1d8e97d32af
obslog: make changeset available to templater
Martin von Zweigbergk <martinvonz@google.com>
parents:
4823
diff
changeset
|
146 |
d1d8e97d32af
obslog: make changeset available to templater
Martin von Zweigbergk <martinvonz@google.com>
parents:
4823
diff
changeset
|
147 Check that the same thing works with the old {shortdescription} form |
5355
53953532885b
tests: put a common template snippet into [templates]
Anton Shestakov <av6@dwimlabs.net>
parents:
5354
diff
changeset
|
148 $ hg obslog 4ae3a4151de9 --graph --no-origin -T '{shortdescription} {logmarkers}' |
2957 | 149 @ A1 |
150 | | |
151 x A0 at 0 0 by test | |
152 | |
5355
53953532885b
tests: put a common template snippet into [templates]
Anton Shestakov <av6@dwimlabs.net>
parents:
5354
diff
changeset
|
153 $ hg obslog 4ae3a4151de9 --graph -T '{shortdescription} {logmarkers}' |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
154 @ A1 at 0 0 by test |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
155 | |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
156 x A0 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
157 |
5613
87966baf6ea9
tests: use appropriate Python (2 or 3) for json.tool
Anton Shestakov <av6@dwimlabs.net>
parents:
5356
diff
changeset
|
158 $ hg obslog 4ae3a4151de9 --no-graph -Tjson | "$PYTHON" -m json.tool |
2342
e28026b4d3c1
obshistory: use formatter instead of ui.write in the debugobshistory command
Boris Feld <boris.feld@octobus.net>
parents:
2336
diff
changeset
|
159 [ |
e28026b4d3c1
obshistory: use formatter instead of ui.write in the debugobshistory command
Boris Feld <boris.feld@octobus.net>
parents:
2336
diff
changeset
|
160 { |
2957 | 161 "markers": [ |
2342
e28026b4d3c1
obshistory: use formatter instead of ui.write in the debugobshistory command
Boris Feld <boris.feld@octobus.net>
parents:
2336
diff
changeset
|
162 { |
5171
7f7f40cc6c9b
obslog: make date template property into dates
Anton Shestakov <av6@dwimlabs.net>
parents:
5169
diff
changeset
|
163 "dates": [ |
7f7f40cc6c9b
obslog: make date template property into dates
Anton Shestakov <av6@dwimlabs.net>
parents:
5169
diff
changeset
|
164 [ |
7f7f40cc6c9b
obslog: make date template property into dates
Anton Shestakov <av6@dwimlabs.net>
parents:
5169
diff
changeset
|
165 *, (glob) |
7f7f40cc6c9b
obslog: make date template property into dates
Anton Shestakov <av6@dwimlabs.net>
parents:
5169
diff
changeset
|
166 0 |
7f7f40cc6c9b
obslog: make date template property into dates
Anton Shestakov <av6@dwimlabs.net>
parents:
5169
diff
changeset
|
167 ] |
2957 | 168 ], |
4939
7aba58dc4b73
obslog: use plural name "effects" for list of all effects
Martin von Zweigbergk <martinvonz@google.com>
parents:
4918
diff
changeset
|
169 "effects": [ |
2585
b5e3fe610beb
effectflag: activate effect flag on test-evolve-obshistory test file
Boris Feld <boris.feld@octobus.net>
parents:
2546
diff
changeset
|
170 "description", |
b5e3fe610beb
effectflag: activate effect flag on test-evolve-obshistory test file
Boris Feld <boris.feld@octobus.net>
parents:
2546
diff
changeset
|
171 "content" |
b5e3fe610beb
effectflag: activate effect flag on test-evolve-obshistory test file
Boris Feld <boris.feld@octobus.net>
parents:
2546
diff
changeset
|
172 ], |
5169
897b371cd0c5
obslog: make operation template property into operations
Anton Shestakov <av6@dwimlabs.net>
parents:
5168
diff
changeset
|
173 "operations": [ |
897b371cd0c5
obslog: make operation template property into operations
Anton Shestakov <av6@dwimlabs.net>
parents:
5168
diff
changeset
|
174 "amend" |
897b371cd0c5
obslog: make operation template property into operations
Anton Shestakov <av6@dwimlabs.net>
parents:
5168
diff
changeset
|
175 ], |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
176 "prednodes": [ |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
177 "471f378eab4c5e25f6c77f785b27c936efb22874" |
2342
e28026b4d3c1
obshistory: use formatter instead of ui.write in the debugobshistory command
Boris Feld <boris.feld@octobus.net>
parents:
2336
diff
changeset
|
178 ], |
5168
c7ca43bba6c5
obslog: make user template property into users
Anton Shestakov <av6@dwimlabs.net>
parents:
5167
diff
changeset
|
179 "users": [ |
c7ca43bba6c5
obslog: make user template property into users
Anton Shestakov <av6@dwimlabs.net>
parents:
5167
diff
changeset
|
180 "test" |
c7ca43bba6c5
obslog: make user template property into users
Anton Shestakov <av6@dwimlabs.net>
parents:
5167
diff
changeset
|
181 ], |
2957 | 182 "verb": "rewritten" |
2342
e28026b4d3c1
obshistory: use formatter instead of ui.write in the debugobshistory command
Boris Feld <boris.feld@octobus.net>
parents:
2336
diff
changeset
|
183 } |
e28026b4d3c1
obshistory: use formatter instead of ui.write in the debugobshistory command
Boris Feld <boris.feld@octobus.net>
parents:
2336
diff
changeset
|
184 ], |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
185 "node": "4ae3a4151de9aa872113f0b196e28323308981e8", |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
186 "shortdescription": "A1" |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
187 }, |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
188 { |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
189 "markers": [], |
4983
6d40e0166522
obslog: make {node} the full node and leave shortening to template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4964
diff
changeset
|
190 "node": "471f378eab4c5e25f6c77f785b27c936efb22874", |
2957 | 191 "shortdescription": "A0" |
2342
e28026b4d3c1
obshistory: use formatter instead of ui.write in the debugobshistory command
Boris Feld <boris.feld@octobus.net>
parents:
2336
diff
changeset
|
192 } |
e28026b4d3c1
obshistory: use formatter instead of ui.write in the debugobshistory command
Boris Feld <boris.feld@octobus.net>
parents:
2336
diff
changeset
|
193 ] |
2637
49f2741c4dd7
obslog: add a patch option
Boris Feld <boris.feld@octobus.net>
parents:
2585
diff
changeset
|
194 $ hg obslog --hidden --patch 471f378eab4c |
2407
783a74c60a5e
obshistory: add a graph option on the debugobshistory command
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2404
diff
changeset
|
195 x 471f378eab4c (1) A0 |
783a74c60a5e
obshistory: add a graph option on the debugobshistory command
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
2404
diff
changeset
|
196 |
5613
87966baf6ea9
tests: use appropriate Python (2 or 3) for json.tool
Anton Shestakov <av6@dwimlabs.net>
parents:
5356
diff
changeset
|
197 $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | "$PYTHON" -m json.tool |
2342
e28026b4d3c1
obshistory: use formatter instead of ui.write in the debugobshistory command
Boris Feld <boris.feld@octobus.net>
parents:
2336
diff
changeset
|
198 [ |
e28026b4d3c1
obshistory: use formatter instead of ui.write in the debugobshistory command
Boris Feld <boris.feld@octobus.net>
parents:
2336
diff
changeset
|
199 { |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
200 "markers": [], |
4983
6d40e0166522
obslog: make {node} the full node and leave shortening to template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4964
diff
changeset
|
201 "node": "471f378eab4c5e25f6c77f785b27c936efb22874", |
2957 | 202 "shortdescription": "A0" |
2342
e28026b4d3c1
obshistory: use formatter instead of ui.write in the debugobshistory command
Boris Feld <boris.feld@octobus.net>
parents:
2336
diff
changeset
|
203 } |
e28026b4d3c1
obshistory: use formatter instead of ui.write in the debugobshistory command
Boris Feld <boris.feld@octobus.net>
parents:
2336
diff
changeset
|
204 ] |
2290
a36a8c6a09ac
ui: change the hidden revision error message
Boris Feld <boris.feld@octobus.net>
parents:
2289
diff
changeset
|
205 $ hg update 471f378eab4c |
3663
54a469cd5b26
test: update output to match upstream
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3567
diff
changeset
|
206 abort: hidden revision '471f378eab4c' was rewritten as: 4ae3a4151de9! |
54a469cd5b26
test: update output to match upstream
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3567
diff
changeset
|
207 (use --hidden to access hidden revisions) |
2290
a36a8c6a09ac
ui: change the hidden revision error message
Boris Feld <boris.feld@octobus.net>
parents:
2289
diff
changeset
|
208 [255] |
2289
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
209 $ hg update --hidden "desc(A0)" |
3747
1e103c7f7663
test: update to new outputs
Boris Feld <boris.feld@octobus.net>
parents:
3730
diff
changeset
|
210 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1e103c7f7663
test: update to new outputs
Boris Feld <boris.feld@octobus.net>
parents:
3730
diff
changeset
|
211 updated to hidden changeset 471f378eab4c |
3432
f57be161f34b
test: update with new 'update' hint about obsfate
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3417
diff
changeset
|
212 (hidden revision '471f378eab4c' was rewritten as: 4ae3a4151de9) |
2289
61d073590fb7
ui: add better messages when the working copy become obsolete.
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
213 working directory parent is obsolete! (471f378eab4c) |
2336
93a37e13424f
obshistory: add a debugobshistory command to show obs history of a revs
Boris Feld <boris.feld@octobus.net>
parents:
2290
diff
changeset
|
214 (use 'hg evolve' to update to its successor: 4ae3a4151de9) |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
215 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
216 Check output on the server side |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
217 ------------------------------- |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
218 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
219 $ hg obslog -R $TESTTMP/server --patch 4ae3a4151de9 --no-origin |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
220 o 4ae3a4151de9 (1) A1 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
221 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
222 x 471f378eab4c |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
223 rewritten(description, content) as 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
224 (No patch available, context is not local) |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
225 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
226 $ hg obslog -R $TESTTMP/server --patch 4ae3a4151de9 |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
227 o 4ae3a4151de9 (1) A1 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
228 | rewritten(description, content) from 471f378eab4c using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
229 | (No patch available, predecessor is unknown locally) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
230 | |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
231 x 471f378eab4c |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
232 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
233 $ hg obslog -R $TESTTMP/server --no-graph --patch 4ae3a4151de9 --no-origin |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
234 4ae3a4151de9 (1) A1 |
4948
069cfc5301fb
obslog: add newline after all markers in non-graphlog to match graphlog
Martin von Zweigbergk <martinvonz@google.com>
parents:
4946
diff
changeset
|
235 |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
236 471f378eab4c |
4964
bb2042ff6444
tests: remove extra whitespace before patch in obslog output
Martin von Zweigbergk <martinvonz@google.com>
parents:
4955
diff
changeset
|
237 rewritten(description, content) as 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
238 (No patch available, context is not local) |
4948
069cfc5301fb
obslog: add newline after all markers in non-graphlog to match graphlog
Martin von Zweigbergk <martinvonz@google.com>
parents:
4946
diff
changeset
|
239 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
240 $ hg obslog -R $TESTTMP/server --no-graph --patch 4ae3a4151de9 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
241 4ae3a4151de9 (1) A1 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
242 rewritten(description, content) from 471f378eab4c using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
243 (No patch available, predecessor is unknown locally) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
244 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
245 471f378eab4c |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
246 |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
247 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
248 $ hg obslog -R $TESTTMP/server -f --patch 4ae3a4151de9 --no-origin |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
249 o 4ae3a4151de9 (1) A1 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
250 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
251 $ hg obslog -R $TESTTMP/server -f --patch 4ae3a4151de9 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
252 o 4ae3a4151de9 (1) A1 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
253 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
254 $ hg obslog -R $TESTTMP/server --no-graph -f --patch 4ae3a4151de9 --no-origin |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
255 4ae3a4151de9 (1) A1 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
256 |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
257 $ hg obslog -R $TESTTMP/server --no-graph -f --patch 4ae3a4151de9 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
258 4ae3a4151de9 (1) A1 |
4948
069cfc5301fb
obslog: add newline after all markers in non-graphlog to match graphlog
Martin von Zweigbergk <martinvonz@google.com>
parents:
4946
diff
changeset
|
259 |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
260 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
261 Amend two more times |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
262 ==================== |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
263 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
264 Amend again |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
265 ----------- |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
266 $ hg log --hidden -G |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
267 o changeset: 2:4ae3a4151de9 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
268 | tag: tip |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
269 | parent: 0:ea207398892e |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
270 | user: test |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
271 | date: Thu Jan 01 00:00:00 1970 +0000 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
272 | summary: A1 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
273 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
274 | @ changeset: 1:471f378eab4c |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
275 |/ user: test |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
276 | date: Thu Jan 01 00:00:00 1970 +0000 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
277 | obsolete: rewritten using amend as 2:4ae3a4151de9 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
278 | summary: A0 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
279 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
280 o changeset: 0:ea207398892e |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
281 user: test |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
282 date: Thu Jan 01 00:00:00 1970 +0000 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
283 summary: ROOT |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
284 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
285 $ hg up tip |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
286 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
287 $ hg amend -m "A2 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
288 > |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
289 > Better better commit message" |
5167
471b7a4acf9b
obslog: have at least one test that shows multiple dates with -f flag
Anton Shestakov <av6@dwimlabs.net>
parents:
5125
diff
changeset
|
290 $ hg amend --config devel.default-date='1 0' -m "A3 |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
291 > |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
292 > Better better better commit message" |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
293 $ sync |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
294 $ hg log --hidden -G |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
295 @ changeset: 4:92210308515b |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
296 | tag: tip |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
297 | parent: 0:ea207398892e |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
298 | user: test |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
299 | date: Thu Jan 01 00:00:00 1970 +0000 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
300 | summary: A3 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
301 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
302 | x changeset: 3:4f1685185907 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
303 |/ parent: 0:ea207398892e |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
304 | user: test |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
305 | date: Thu Jan 01 00:00:00 1970 +0000 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
306 | obsolete: reworded using amend as 4:92210308515b |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
307 | summary: A2 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
308 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
309 | x changeset: 2:4ae3a4151de9 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
310 |/ parent: 0:ea207398892e |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
311 | user: test |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
312 | date: Thu Jan 01 00:00:00 1970 +0000 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
313 | obsolete: reworded using amend as 3:4f1685185907 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
314 | summary: A1 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
315 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
316 | x changeset: 1:471f378eab4c |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
317 |/ user: test |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
318 | date: Thu Jan 01 00:00:00 1970 +0000 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
319 | obsolete: rewritten using amend as 2:4ae3a4151de9 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
320 | summary: A0 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
321 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
322 o changeset: 0:ea207398892e |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
323 user: test |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
324 date: Thu Jan 01 00:00:00 1970 +0000 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
325 summary: ROOT |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
326 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
327 Check the output on the client |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
328 ------------------------------ |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
329 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
330 $ hg obslog --patch 92210308515b |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
331 @ 92210308515b (4) A3 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
332 | reworded(description) from 4f1685185907 using amend by test (Thu Jan 01 00:00:01 1970 +0000) |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
333 | diff -r 4f1685185907 -r 92210308515b changeset-description |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
334 | --- a/changeset-description |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
335 | +++ b/changeset-description |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
336 | @@ -1,3 +1,3 @@ |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
337 | -A2 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
338 | +A3 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
339 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
340 | -Better better commit message |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
341 | +Better better better commit message |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
342 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
343 | |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
344 x 4f1685185907 (3) A2 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
345 | reworded(description) from 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
346 | diff -r 4ae3a4151de9 -r 4f1685185907 changeset-description |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
347 | --- a/changeset-description |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
348 | +++ b/changeset-description |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
349 | @@ -1,3 +1,3 @@ |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
350 | -A1 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
351 | +A2 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
352 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
353 | -Better commit message |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
354 | +Better better commit message |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
355 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
356 | |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
357 x 4ae3a4151de9 (2) A1 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
358 | rewritten(description, content) from 471f378eab4c using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
359 | diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
360 | --- a/changeset-description |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
361 | +++ b/changeset-description |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
362 | @@ -1,1 +1,3 @@ |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
363 | -A0 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
364 | +A1 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
365 | + |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
366 | +Better commit message |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
367 | |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
368 | diff -r 471f378eab4c -r 4ae3a4151de9 A0 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
369 | --- a/A0 Thu Jan 01 00:00:00 1970 +0000 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
370 | +++ b/A0 Thu Jan 01 00:00:00 1970 +0000 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
371 | @@ -1,1 +1,2 @@ |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
372 | A0 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
373 | +42 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
374 | |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
375 | |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
376 x 471f378eab4c (1) A0 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
377 |
4944
f84a6ddb7f37
tests: demonstrate broken {patch} and {desc-diff} template keywords
Martin von Zweigbergk <martinvonz@google.com>
parents:
4939
diff
changeset
|
378 Test that description diff works with templating |
f84a6ddb7f37
tests: demonstrate broken {patch} and {desc-diff} template keywords
Martin von Zweigbergk <martinvonz@google.com>
parents:
4939
diff
changeset
|
379 $ hg obslog --color=debug --patch 92210308515b \ |
4983
6d40e0166522
obslog: make {node} the full node and leave shortening to template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4964
diff
changeset
|
380 > -T '{node|short} {desc|firstline}\n{markers % "description diff:\n```{descdiff}```\n"}' |
4944
f84a6ddb7f37
tests: demonstrate broken {patch} and {desc-diff} template keywords
Martin von Zweigbergk <martinvonz@google.com>
parents:
4939
diff
changeset
|
381 @ 92210308515b A3 |
4945
bd50608f54d8
obslog: rename {desc-diff} to {descdiff} since the former is invalid
Martin von Zweigbergk <martinvonz@google.com>
parents:
4944
diff
changeset
|
382 | description diff: |
4946
bd992b1d4426
obslog: make content and description patches available to templater
Martin von Zweigbergk <martinvonz@google.com>
parents:
4945
diff
changeset
|
383 | ``` |
4953
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
384 | [diff.diffline|diff -r 4f1685185907 -r 92210308515b changeset-description] |
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
385 | [diff.file_a|--- a/changeset-description] |
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
386 | [diff.file_b|+++ b/changeset-description] |
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
387 | [diff.hunk|@@ -1,3 +1,3 @@] |
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
388 | [diff.deleted|-A2] |
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
389 | [diff.inserted|+A3] |
4946
bd992b1d4426
obslog: make content and description patches available to templater
Martin von Zweigbergk <martinvonz@google.com>
parents:
4945
diff
changeset
|
390 | |
4953
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
391 | [diff.deleted|-Better better commit message] |
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
392 | [diff.inserted|+Better better better commit message] |
4946
bd992b1d4426
obslog: make content and description patches available to templater
Martin von Zweigbergk <martinvonz@google.com>
parents:
4945
diff
changeset
|
393 | ``` |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
394 x 4f1685185907 A2 |
4945
bd50608f54d8
obslog: rename {desc-diff} to {descdiff} since the former is invalid
Martin von Zweigbergk <martinvonz@google.com>
parents:
4944
diff
changeset
|
395 | description diff: |
4946
bd992b1d4426
obslog: make content and description patches available to templater
Martin von Zweigbergk <martinvonz@google.com>
parents:
4945
diff
changeset
|
396 | ``` |
4953
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
397 | [diff.diffline|diff -r 4ae3a4151de9 -r 4f1685185907 changeset-description] |
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
398 | [diff.file_a|--- a/changeset-description] |
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
399 | [diff.file_b|+++ b/changeset-description] |
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
400 | [diff.hunk|@@ -1,3 +1,3 @@] |
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
401 | [diff.deleted|-A1] |
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
402 | [diff.inserted|+A2] |
4946
bd992b1d4426
obslog: make content and description patches available to templater
Martin von Zweigbergk <martinvonz@google.com>
parents:
4945
diff
changeset
|
403 | |
4953
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
404 | [diff.deleted|-Better commit message] |
5c41bb482867
obslog: make {descdiff} not be indented and leave that to the template
Martin von Zweigbergk <martinvonz@google.com>
parents:
4952
diff
changeset
|
405 | [diff.inserted|+Better better commit message] |
4946
bd992b1d4426
obslog: make content and description patches available to templater
Martin von Zweigbergk <martinvonz@google.com>
parents:
4945
diff
changeset
|
406 | ``` |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
407 x 4ae3a4151de9 A1 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
408 | description diff: |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
409 | ``` |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
410 | [diff.diffline|diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
411 | [diff.file_a|--- a/changeset-description] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
412 | [diff.file_b|+++ b/changeset-description] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
413 | [diff.hunk|@@ -1,1 +1,3 @@] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
414 | [diff.deleted|-A0] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
415 | [diff.inserted|+A1] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
416 | [diff.inserted|+] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
417 | [diff.inserted|+Better commit message] |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
418 | ``` |
4946
bd992b1d4426
obslog: make content and description patches available to templater
Martin von Zweigbergk <martinvonz@google.com>
parents:
4945
diff
changeset
|
419 x 471f378eab4c A0 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
420 |
4944
f84a6ddb7f37
tests: demonstrate broken {patch} and {desc-diff} template keywords
Martin von Zweigbergk <martinvonz@google.com>
parents:
4939
diff
changeset
|
421 |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
422 Check the output on the server |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
423 ------------------------------ |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
424 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
425 $ hg obslog -R $TESTTMP/server --patch 92210308515b |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
426 o 92210308515b (2) A3 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
427 | reworded(description) from 4f1685185907 using amend by test (Thu Jan 01 00:00:01 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
428 | (No patch available, predecessor is unknown locally) |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
429 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
430 x 4f1685185907 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
431 | reworded(description) from 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
432 | (No patch available, context is not local) |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
433 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
434 x 4ae3a4151de9 (1) A1 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
435 | rewritten(description, content) from 471f378eab4c using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
436 | (No patch available, predecessor is unknown locally) |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
437 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
438 x 471f378eab4c |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
439 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
440 $ hg obslog -R $TESTTMP/server -f --patch 92210308515b |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
441 o 92210308515b (2) A3 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
442 | reworded(description) from 4ae3a4151de9 using amend by test (between Thu Jan 01 00:00:00 1970 +0000 and Thu Jan 01 00:00:01 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
443 | diff -r 4ae3a4151de9 -r 92210308515b changeset-description |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
444 | --- a/changeset-description |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
445 | +++ b/changeset-description |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
446 | @@ -1,3 +1,3 @@ |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
447 | -A1 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
448 | +A3 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
449 | |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
450 | -Better commit message |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
451 | +Better better better commit message |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
452 | |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
453 | |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
454 x 4ae3a4151de9 (1) A1 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
455 |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
456 $ hg obslog -R $TESTTMP/server --no-graph --patch 92210308515b |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
457 92210308515b (2) A3 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
458 reworded(description) from 4f1685185907 using amend by test (Thu Jan 01 00:00:01 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
459 (No patch available, predecessor is unknown locally) |
4948
069cfc5301fb
obslog: add newline after all markers in non-graphlog to match graphlog
Martin von Zweigbergk <martinvonz@google.com>
parents:
4946
diff
changeset
|
460 |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
461 4f1685185907 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
462 reworded(description) from 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
463 (No patch available, context is not local) |
4948
069cfc5301fb
obslog: add newline after all markers in non-graphlog to match graphlog
Martin von Zweigbergk <martinvonz@google.com>
parents:
4946
diff
changeset
|
464 |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
465 4ae3a4151de9 (1) A1 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
466 rewritten(description, content) from 471f378eab4c using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
467 (No patch available, predecessor is unknown locally) |
4948
069cfc5301fb
obslog: add newline after all markers in non-graphlog to match graphlog
Martin von Zweigbergk <martinvonz@google.com>
parents:
4946
diff
changeset
|
468 |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
469 471f378eab4c |
4948
069cfc5301fb
obslog: add newline after all markers in non-graphlog to match graphlog
Martin von Zweigbergk <martinvonz@google.com>
parents:
4946
diff
changeset
|
470 |
3894
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
471 $ hg obslog -R $TESTTMP/server --no-graph -f --patch 92210308515b |
7c624b45fe60
obslog: check filtered output with amended changesets
Boris Feld <boris.feld@octobus.net>
parents:
3886
diff
changeset
|
472 92210308515b (2) A3 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
473 reworded(description) from 4ae3a4151de9 using amend by test (between Thu Jan 01 00:00:00 1970 +0000 and Thu Jan 01 00:00:01 1970 +0000) |
5262
0329246c70f3
obslog: support --filternonlocal with --no-graph
Anton Shestakov <av6@dwimlabs.net>
parents:
5171
diff
changeset
|
474 diff -r 4ae3a4151de9 -r 92210308515b changeset-description |
0329246c70f3
obslog: support --filternonlocal with --no-graph
Anton Shestakov <av6@dwimlabs.net>
parents:
5171
diff
changeset
|
475 --- a/changeset-description |
0329246c70f3
obslog: support --filternonlocal with --no-graph
Anton Shestakov <av6@dwimlabs.net>
parents:
5171
diff
changeset
|
476 +++ b/changeset-description |
0329246c70f3
obslog: support --filternonlocal with --no-graph
Anton Shestakov <av6@dwimlabs.net>
parents:
5171
diff
changeset
|
477 @@ -1,3 +1,3 @@ |
0329246c70f3
obslog: support --filternonlocal with --no-graph
Anton Shestakov <av6@dwimlabs.net>
parents:
5171
diff
changeset
|
478 -A1 |
0329246c70f3
obslog: support --filternonlocal with --no-graph
Anton Shestakov <av6@dwimlabs.net>
parents:
5171
diff
changeset
|
479 +A3 |
0329246c70f3
obslog: support --filternonlocal with --no-graph
Anton Shestakov <av6@dwimlabs.net>
parents:
5171
diff
changeset
|
480 |
0329246c70f3
obslog: support --filternonlocal with --no-graph
Anton Shestakov <av6@dwimlabs.net>
parents:
5171
diff
changeset
|
481 -Better commit message |
0329246c70f3
obslog: support --filternonlocal with --no-graph
Anton Shestakov <av6@dwimlabs.net>
parents:
5171
diff
changeset
|
482 +Better better better commit message |
4948
069cfc5301fb
obslog: add newline after all markers in non-graphlog to match graphlog
Martin von Zweigbergk <martinvonz@google.com>
parents:
4946
diff
changeset
|
483 |
069cfc5301fb
obslog: add newline after all markers in non-graphlog to match graphlog
Martin von Zweigbergk <martinvonz@google.com>
parents:
4946
diff
changeset
|
484 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
485 4ae3a4151de9 (1) A1 |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5291
diff
changeset
|
486 |