author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
Wed, 16 Jan 2013 00:08:08 +0100 | |
branch | stable |
changeset 1197 | 10e27c438792 |
parent 1194 | d55e5d564d22 |
child 1198 | ed05e4372751 |
permissions | -rw-r--r-- |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1 |
$ cat <<EOF >> $HGRCPATH |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
2 |
> [extensions] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
3 |
> keyword = |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
4 |
> mq = |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
5 |
> notify = |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
6 |
> record = |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
7 |
> transplant = |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
8 |
> [ui] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
9 |
> interactive = true |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
10 |
> EOF |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
11 |
|
1104
5c7fdc5d6a36
tests: add missing no-outer-repo requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
1096
diff
changeset
|
12 |
hide outer repo |
5c7fdc5d6a36
tests: add missing no-outer-repo requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
1096
diff
changeset
|
13 |
$ hg init |
5c7fdc5d6a36
tests: add missing no-outer-repo requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
1096
diff
changeset
|
14 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
15 |
Run kwdemo before [keyword] files are set up |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
16 |
as it would succeed without uisetup otherwise |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
17 |
|
784
7e69e2b40d9b
tests: drop big sed from test-keyword.t
Matt Mackall <mpm@selenic.com>
parents:
782
diff
changeset
|
18 |
$ hg --quiet kwdemo |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
19 |
[extensions] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
20 |
keyword = |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
21 |
[keyword] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
22 |
demo.txt = |
874
272a8a316f7a
Inform user about current keywordset in kwdemo
Christian Ebert <blacktrash@gmx.net>
parents:
868
diff
changeset
|
23 |
[keywordset] |
272a8a316f7a
Inform user about current keywordset in kwdemo
Christian Ebert <blacktrash@gmx.net>
parents:
868
diff
changeset
|
24 |
svn = False |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
25 |
[keywordmaps] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
26 |
Author = {author|user} |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
27 |
Date = {date|utcdate} |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
28 |
Header = {root}/{file},v {node|short} {date|utcdate} {author|user} |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
29 |
Id = {file|basename},v {node|short} {date|utcdate} {author|user} |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
30 |
RCSFile = {file|basename},v |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
31 |
RCSfile = {file|basename},v |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
32 |
Revision = {node|short} |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
33 |
Source = {root}/{file},v |
797
f0d8ac85ca21
tests: improve regexes in unified tests
Brodie Rao <brodie@bitheap.org>
parents:
793
diff
changeset
|
34 |
$Author: test $ |
801
413c6fe6d1e3
tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents:
800
diff
changeset
|
35 |
$Date: ????/??/?? ??:??:?? $ (glob) |
413c6fe6d1e3
tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents:
800
diff
changeset
|
36 |
$Header: */demo.txt,v ???????????? ????/??/?? ??:??:?? test $ (glob) |
413c6fe6d1e3
tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents:
800
diff
changeset
|
37 |
$Id: demo.txt,v ???????????? ????/??/?? ??:??:?? test $ (glob) |
797
f0d8ac85ca21
tests: improve regexes in unified tests
Brodie Rao <brodie@bitheap.org>
parents:
793
diff
changeset
|
38 |
$RCSFile: demo.txt,v $ |
f0d8ac85ca21
tests: improve regexes in unified tests
Brodie Rao <brodie@bitheap.org>
parents:
793
diff
changeset
|
39 |
$RCSfile: demo.txt,v $ |
801
413c6fe6d1e3
tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents:
800
diff
changeset
|
40 |
$Revision: ???????????? $ (glob) |
413c6fe6d1e3
tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents:
800
diff
changeset
|
41 |
$Source: */demo.txt,v $ (glob) |
643
0c7f033354c7
test: run kwdemo before setting up [keyword] files
Christian Ebert <blacktrash@gmx.net>
parents:
634
diff
changeset
|
42 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
43 |
$ hg --quiet kwdemo "Branch = {branches}" |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
44 |
[extensions] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
45 |
keyword = |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
46 |
[keyword] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
47 |
demo.txt = |
874
272a8a316f7a
Inform user about current keywordset in kwdemo
Christian Ebert <blacktrash@gmx.net>
parents:
868
diff
changeset
|
48 |
[keywordset] |
272a8a316f7a
Inform user about current keywordset in kwdemo
Christian Ebert <blacktrash@gmx.net>
parents:
868
diff
changeset
|
49 |
svn = False |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
50 |
[keywordmaps] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
51 |
Branch = {branches} |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
52 |
$Branch: demobranch $ |
643
0c7f033354c7
test: run kwdemo before setting up [keyword] files
Christian Ebert <blacktrash@gmx.net>
parents:
634
diff
changeset
|
53 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
54 |
$ cat <<EOF >> $HGRCPATH |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
55 |
> [keyword] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
56 |
> ** = |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
57 |
> b = ignore |
814
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
58 |
> i = ignore |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
59 |
> [hooks] |
817
cd834b4035ec
test: remove remaining sed calls
Christian Ebert <blacktrash@gmx.net>
parents:
814
diff
changeset
|
60 |
> EOF |
cd834b4035ec
test: remove remaining sed calls
Christian Ebert <blacktrash@gmx.net>
parents:
814
diff
changeset
|
61 |
$ cp $HGRCPATH $HGRCPATH.nohooks |
cd834b4035ec
test: remove remaining sed calls
Christian Ebert <blacktrash@gmx.net>
parents:
814
diff
changeset
|
62 |
> cat <<EOF >> $HGRCPATH |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
63 |
> commit= |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
64 |
> commit.test=cp a hooktest |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
65 |
> EOF |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
66 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
67 |
$ hg init Test-bndl |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
68 |
$ cd Test-bndl |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
69 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
70 |
kwshrink should exit silently in empty/invalid repo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
71 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
72 |
$ hg kwshrink |
643
0c7f033354c7
test: run kwdemo before setting up [keyword] files
Christian Ebert <blacktrash@gmx.net>
parents:
634
diff
changeset
|
73 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
74 |
Symlinks cannot be created on Windows. |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
75 |
A bundle to test this was made with: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
76 |
hg init t |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
77 |
cd t |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
78 |
echo a > a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
79 |
ln -s a sym |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
80 |
hg add sym |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
81 |
hg ci -m addsym -u mercurial |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
82 |
hg bundle --base null ../test-keyword.hg |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
83 |
|
925
b73d6eb16638
tests: move test bundles in a bundles/ subdirectory
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
888
diff
changeset
|
84 |
$ hg pull -u "$TESTDIR"/bundles/test-keyword.hg |
801
413c6fe6d1e3
tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents:
800
diff
changeset
|
85 |
pulling from *test-keyword.hg (glob) |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
86 |
requesting all changes |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
87 |
adding changesets |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
88 |
adding manifests |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
89 |
adding file changes |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
90 |
added 1 changesets with 1 changes to 1 files |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
91 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
92 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
93 |
$ echo 'expand $Id$' > a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
94 |
$ echo 'do not process $Id:' >> a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
95 |
$ echo 'xxx $' >> a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
96 |
$ echo 'ignore $Id$' > b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
97 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
98 |
Output files as they were created |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
99 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
100 |
$ cat a b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
101 |
expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
102 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
103 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
104 |
ignore $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
105 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
106 |
no kwfiles |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
107 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
108 |
$ hg kwfiles |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
109 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
110 |
untracked candidates |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
111 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
112 |
$ hg -v kwfiles --unknown |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
113 |
k a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
114 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
115 |
Add files and check status |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
116 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
117 |
$ hg addremove |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
118 |
adding a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
119 |
adding b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
120 |
$ hg status |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
121 |
A a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
122 |
A b |
392
45a318c5ea20
test-keyword: make it run under Windows
Patrick Mezard <pmezard@gmail.com>
parents:
384
diff
changeset
|
123 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
124 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
125 |
Default keyword expansion including commit hook |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
126 |
Interrupted commit should not change state or run commit hook |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
127 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
128 |
$ hg --debug commit |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
129 |
abort: empty commit message |
793
9cc90e2c826f
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
792
diff
changeset
|
130 |
[255] |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
131 |
$ hg status |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
132 |
A a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
133 |
A b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
134 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
135 |
Commit with several checks |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
136 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
137 |
$ hg --debug commit -mabsym -u 'User Name <user@example.com>' |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
138 |
a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
139 |
b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
140 |
overwriting a expanding keywords |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
141 |
running hook commit.test: cp a hooktest |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
142 |
committed changeset 1:ef63ca68695bc9495032c6fda1350c71e6d256e9 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
143 |
$ hg status |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
144 |
? hooktest |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
145 |
$ hg debugrebuildstate |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
146 |
$ hg --quiet identify |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
147 |
ef63ca68695b |
305
d3cdaa49a644
Test that commit hooks are not run on interrupted commit
Christian Ebert <blacktrash@gmx.net>
parents:
302
diff
changeset
|
148 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
149 |
cat files in working directory with keywords expanded |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
150 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
151 |
$ cat a b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
152 |
expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
153 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
154 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
155 |
ignore $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
156 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
157 |
hg cat files and symlink, no expansion |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
158 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
159 |
$ hg cat sym a b && echo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
160 |
expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
161 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
162 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
163 |
ignore $Id$ |
828
725ab7fe00e5
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
827
diff
changeset
|
164 |
a |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
165 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
166 |
$ diff a hooktest |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
167 |
|
817
cd834b4035ec
test: remove remaining sed calls
Christian Ebert <blacktrash@gmx.net>
parents:
814
diff
changeset
|
168 |
$ cp $HGRCPATH.nohooks $HGRCPATH |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
169 |
$ rm hooktest |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
170 |
|
1042
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
171 |
hg status of kw-ignored binary file starting with '\1\n' |
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
172 |
|
1048
b5a5c7ce4d1d
tests: tighten checks for octal escapes in shell printf.
Jim Hague <jim.hague@acm.org>
parents:
1043
diff
changeset
|
173 |
>>> open("i", "wb").write("\1\nfoo") |
1042
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
174 |
$ hg -q commit -Am metasep i |
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
175 |
$ hg status |
1048
b5a5c7ce4d1d
tests: tighten checks for octal escapes in shell printf.
Jim Hague <jim.hague@acm.org>
parents:
1043
diff
changeset
|
176 |
>>> open("i", "wb").write("\1\nbar") |
1042
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
177 |
$ hg status |
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
178 |
M i |
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
179 |
$ hg -q commit -m "modify metasep" i |
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
180 |
$ hg status --rev 2:3 |
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
181 |
M i |
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
182 |
$ touch empty |
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
183 |
$ hg -q commit -A -m "another file" |
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
184 |
$ hg status -A --rev 3:4 i |
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
185 |
C i |
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
186 |
|
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
187 |
$ hg -q strip -n 2 |
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
188 |
|
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
189 |
Test hook execution |
91e083fab1a3
Update filectx.cmp monkeypatch to handle '\1\n' at start of file
Christian Ebert <blacktrash@gmx.net>
parents:
1035
diff
changeset
|
190 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
191 |
bundle |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
192 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
193 |
$ hg bundle --base null ../kw.hg |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
194 |
2 changesets found |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
195 |
$ cd .. |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
196 |
$ hg init Test |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
197 |
$ cd Test |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
198 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
199 |
Notify on pull to check whether keywords stay as is in email |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
200 |
ie. if patch.diff wrapper acts as it should |
294 | 201 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
202 |
$ cat <<EOF >> $HGRCPATH |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
203 |
> [hooks] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
204 |
> incoming.notify = python:hgext.notify.hook |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
205 |
> [notify] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
206 |
> sources = pull |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
207 |
> diffstat = False |
831
1069be3ee9db
test-keyword: ignore subject in notify hook mails
Mads Kiilerich <mads@kiilerich.com>
parents:
830
diff
changeset
|
208 |
> maxsubject = 15 |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
209 |
> [reposubs] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
210 |
> * = Test |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
211 |
> EOF |
294 | 212 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
213 |
Pull from bundle and trigger notify |
384
482c91f8c230
Do not set up kwrepo when pulling from bundlerepo
Christian Ebert <blacktrash@gmx.net>
parents:
381
diff
changeset
|
214 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
215 |
$ hg pull -u ../kw.hg |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
216 |
pulling from ../kw.hg |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
217 |
requesting all changes |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
218 |
adding changesets |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
219 |
adding manifests |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
220 |
adding file changes |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
221 |
added 2 changesets with 3 changes to 3 files |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
222 |
Content-Type: text/plain; charset="us-ascii" |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
223 |
MIME-Version: 1.0 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
224 |
Content-Transfer-Encoding: 7bit |
801
413c6fe6d1e3
tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents:
800
diff
changeset
|
225 |
Date: * (glob) |
831
1069be3ee9db
test-keyword: ignore subject in notify hook mails
Mads Kiilerich <mads@kiilerich.com>
parents:
830
diff
changeset
|
226 |
Subject: changeset in... |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
227 |
From: mercurial |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
228 |
X-Hg-Notification: changeset a2392c293916 |
801
413c6fe6d1e3
tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents:
800
diff
changeset
|
229 |
Message-Id: <hg.a2392c293916*> (glob) |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
230 |
To: Test |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
231 |
|
1015
0a583943b4b4
tests: make (glob) on windows accept \ instead of /
Mads Kiilerich <mads@kiilerich.com>
parents:
1014
diff
changeset
|
232 |
changeset a2392c293916 in $TESTTMP/Test (glob) |
888
8c5c3a0aa6d5
tests: use $TESTTMP more and use (glob) less
Martin Geisler <mg@aragost.com>
parents:
884
diff
changeset
|
233 |
details: $TESTTMP/Test?cmd=changeset;node=a2392c293916 |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
234 |
description: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
235 |
addsym |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
236 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
237 |
diffs (6 lines): |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
238 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
239 |
diff -r 000000000000 -r a2392c293916 sym |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
240 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
241 |
+++ b/sym Sat Feb 09 20:25:47 2008 +0100 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
242 |
@@ -0,0 +1,1 @@ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
243 |
+a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
244 |
\ No newline at end of file |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
245 |
Content-Type: text/plain; charset="us-ascii" |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
246 |
MIME-Version: 1.0 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
247 |
Content-Transfer-Encoding: 7bit |
801
413c6fe6d1e3
tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents:
800
diff
changeset
|
248 |
Date:* (glob) |
831
1069be3ee9db
test-keyword: ignore subject in notify hook mails
Mads Kiilerich <mads@kiilerich.com>
parents:
830
diff
changeset
|
249 |
Subject: changeset in... |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
250 |
From: User Name <user@example.com> |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
251 |
X-Hg-Notification: changeset ef63ca68695b |
801
413c6fe6d1e3
tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents:
800
diff
changeset
|
252 |
Message-Id: <hg.ef63ca68695b*> (glob) |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
253 |
To: Test |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
254 |
|
1015
0a583943b4b4
tests: make (glob) on windows accept \ instead of /
Mads Kiilerich <mads@kiilerich.com>
parents:
1014
diff
changeset
|
255 |
changeset ef63ca68695b in $TESTTMP/Test (glob) |
828
725ab7fe00e5
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
827
diff
changeset
|
256 |
details: $TESTTMP/Test?cmd=changeset;node=ef63ca68695b |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
257 |
description: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
258 |
absym |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
259 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
260 |
diffs (12 lines): |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
261 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
262 |
diff -r a2392c293916 -r ef63ca68695b a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
263 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
264 |
+++ b/a Thu Jan 01 00:00:00 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
265 |
@@ -0,0 +1,3 @@ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
266 |
+expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
267 |
+do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
268 |
+xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
269 |
diff -r a2392c293916 -r ef63ca68695b b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
270 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
271 |
+++ b/b Thu Jan 01 00:00:00 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
272 |
@@ -0,0 +1,1 @@ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
273 |
+ignore $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
274 |
3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
409
6e2293f7b9f7
Add test for patch.diff monkey
Christian Ebert <blacktrash@gmx.net>
parents:
392
diff
changeset
|
275 |
|
817
cd834b4035ec
test: remove remaining sed calls
Christian Ebert <blacktrash@gmx.net>
parents:
814
diff
changeset
|
276 |
$ cp $HGRCPATH.nohooks $HGRCPATH |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
277 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
278 |
Touch files and check with status |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
279 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
280 |
$ touch a b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
281 |
$ hg status |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
282 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
283 |
Update and expand |
384
482c91f8c230
Do not set up kwrepo when pulling from bundlerepo
Christian Ebert <blacktrash@gmx.net>
parents:
381
diff
changeset
|
284 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
285 |
$ rm sym a b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
286 |
$ hg update -C |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
287 |
3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
288 |
$ cat a b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
289 |
expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
290 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
291 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
292 |
ignore $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
293 |
|
981
0b32ba113ad2
Preserve file mode when overwriting
Christian Ebert <blacktrash@gmx.net>
parents:
928
diff
changeset
|
294 |
Check whether expansion is filewise and file mode is preserved |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
295 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
296 |
$ echo '$Id$' > c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
297 |
$ echo 'tests for different changenodes' >> c |
1117
8d5052f23e99
test-keyword: adapt for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
1116
diff
changeset
|
298 |
#if unix-permissions |
981
0b32ba113ad2
Preserve file mode when overwriting
Christian Ebert <blacktrash@gmx.net>
parents:
928
diff
changeset
|
299 |
$ chmod 600 c |
0b32ba113ad2
Preserve file mode when overwriting
Christian Ebert <blacktrash@gmx.net>
parents:
928
diff
changeset
|
300 |
$ ls -l c | cut -b 1-10 |
0b32ba113ad2
Preserve file mode when overwriting
Christian Ebert <blacktrash@gmx.net>
parents:
928
diff
changeset
|
301 |
-rw------- |
1117
8d5052f23e99
test-keyword: adapt for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
1116
diff
changeset
|
302 |
#endif |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
303 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
304 |
commit file c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
305 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
306 |
$ hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>' |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
307 |
adding c |
1117
8d5052f23e99
test-keyword: adapt for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
1116
diff
changeset
|
308 |
#if unix-permissions |
981
0b32ba113ad2
Preserve file mode when overwriting
Christian Ebert <blacktrash@gmx.net>
parents:
928
diff
changeset
|
309 |
$ ls -l c | cut -b 1-10 |
0b32ba113ad2
Preserve file mode when overwriting
Christian Ebert <blacktrash@gmx.net>
parents:
928
diff
changeset
|
310 |
-rw------- |
1117
8d5052f23e99
test-keyword: adapt for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
1116
diff
changeset
|
311 |
#endif |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
312 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
313 |
force expansion |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
314 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
315 |
$ hg -v kwexpand |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
316 |
overwriting a expanding keywords |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
317 |
overwriting c expanding keywords |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
318 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
319 |
compare changenodes in a and c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
320 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
321 |
$ cat a c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
322 |
expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
323 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
324 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
325 |
$Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
326 |
tests for different changenodes |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
327 |
|
836
53a9228f13de
Fix weeding of expansion candidates when recording
Christian Ebert <blacktrash@gmx.net>
parents:
831
diff
changeset
|
328 |
record |
53a9228f13de
Fix weeding of expansion candidates when recording
Christian Ebert <blacktrash@gmx.net>
parents:
831
diff
changeset
|
329 |
|
53a9228f13de
Fix weeding of expansion candidates when recording
Christian Ebert <blacktrash@gmx.net>
parents:
831
diff
changeset
|
330 |
$ echo '$Id$' > r |
53a9228f13de
Fix weeding of expansion candidates when recording
Christian Ebert <blacktrash@gmx.net>
parents:
831
diff
changeset
|
331 |
$ hg add r |
53a9228f13de
Fix weeding of expansion candidates when recording
Christian Ebert <blacktrash@gmx.net>
parents:
831
diff
changeset
|
332 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
333 |
record chunk |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
334 |
|
1117
8d5052f23e99
test-keyword: adapt for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
1116
diff
changeset
|
335 |
>>> lines = open('a', 'rb').readlines() |
1029
ab16e060541e
test-keyword: use inline doctest syntax
Christian Ebert <blacktrash@gmx.net>
parents:
1024
diff
changeset
|
336 |
>>> lines.insert(1, 'foo\n') |
ab16e060541e
test-keyword: use inline doctest syntax
Christian Ebert <blacktrash@gmx.net>
parents:
1024
diff
changeset
|
337 |
>>> lines.append('bar\n') |
1117
8d5052f23e99
test-keyword: adapt for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
1116
diff
changeset
|
338 |
>>> open('a', 'wb').writelines(lines) |
1116
e05e9d1589b9
tests: don't use dates before epoch in test-keyword.t
Mads Kiilerich <mads@kiilerich.com>
parents:
1112
diff
changeset
|
339 |
$ hg record -d '10 1' -m rectest a<<EOF |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
340 |
> y |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
341 |
> y |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
342 |
> n |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
343 |
> EOF |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
344 |
diff --git a/a b/a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
345 |
2 hunks, 2 lines changed |
1057
66d2754c6f30
record: allow splitting of hunks by manually editing patches
A. S. Budden <abudden@gmail.com>
parents:
1049
diff
changeset
|
346 |
examine changes to 'a'? [Ynesfdaq?] |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
347 |
@@ -1,3 +1,4 @@ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
348 |
expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
349 |
+foo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
350 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
351 |
xxx $ |
1057
66d2754c6f30
record: allow splitting of hunks by manually editing patches
A. S. Budden <abudden@gmail.com>
parents:
1049
diff
changeset
|
352 |
record change 1/2 to 'a'? [Ynesfdaq?] |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
353 |
@@ -2,2 +3,3 @@ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
354 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
355 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
356 |
+bar |
1057
66d2754c6f30
record: allow splitting of hunks by manually editing patches
A. S. Budden <abudden@gmail.com>
parents:
1049
diff
changeset
|
357 |
record change 2/2 to 'a'? [Ynesfdaq?] |
342
abf7ccaf0788
Add a very simple mq test
Christian Ebert <blacktrash@gmx.net>
parents:
338
diff
changeset
|
358 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
359 |
$ hg identify |
1116
e05e9d1589b9
tests: don't use dates before epoch in test-keyword.t
Mads Kiilerich <mads@kiilerich.com>
parents:
1112
diff
changeset
|
360 |
5f5eb23505c3+ tip |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
361 |
$ hg status |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
362 |
M a |
836
53a9228f13de
Fix weeding of expansion candidates when recording
Christian Ebert <blacktrash@gmx.net>
parents:
831
diff
changeset
|
363 |
A r |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
364 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
365 |
Cat modified file a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
366 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
367 |
$ cat a |
1116
e05e9d1589b9
tests: don't use dates before epoch in test-keyword.t
Mads Kiilerich <mads@kiilerich.com>
parents:
1112
diff
changeset
|
368 |
expand $Id: a,v 5f5eb23505c3 1970/01/01 00:00:10 test $ |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
369 |
foo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
370 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
371 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
372 |
bar |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
373 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
374 |
Diff remaining chunk |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
375 |
|
836
53a9228f13de
Fix weeding of expansion candidates when recording
Christian Ebert <blacktrash@gmx.net>
parents:
831
diff
changeset
|
376 |
$ hg diff a |
1116
e05e9d1589b9
tests: don't use dates before epoch in test-keyword.t
Mads Kiilerich <mads@kiilerich.com>
parents:
1112
diff
changeset
|
377 |
diff -r 5f5eb23505c3 a |
e05e9d1589b9
tests: don't use dates before epoch in test-keyword.t
Mads Kiilerich <mads@kiilerich.com>
parents:
1112
diff
changeset
|
378 |
--- a/a Thu Jan 01 00:00:09 1970 -0000 |
801
413c6fe6d1e3
tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents:
800
diff
changeset
|
379 |
+++ b/a * (glob) |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
380 |
@@ -2,3 +2,4 @@ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
381 |
foo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
382 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
383 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
384 |
+bar |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
385 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
386 |
$ hg rollback |
884
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
387 |
repository tip rolled back to revision 2 (undo commit) |
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
388 |
working directory now based on revision 2 |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
389 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
390 |
Record all chunks in file a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
391 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
392 |
$ echo foo > msg |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
393 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
394 |
- do not use "hg record -m" here! |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
395 |
|
1116
e05e9d1589b9
tests: don't use dates before epoch in test-keyword.t
Mads Kiilerich <mads@kiilerich.com>
parents:
1112
diff
changeset
|
396 |
$ hg record -l msg -d '11 1' a<<EOF |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
397 |
> y |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
398 |
> y |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
399 |
> y |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
400 |
> EOF |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
401 |
diff --git a/a b/a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
402 |
2 hunks, 2 lines changed |
1057
66d2754c6f30
record: allow splitting of hunks by manually editing patches
A. S. Budden <abudden@gmail.com>
parents:
1049
diff
changeset
|
403 |
examine changes to 'a'? [Ynesfdaq?] |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
404 |
@@ -1,3 +1,4 @@ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
405 |
expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
406 |
+foo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
407 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
408 |
xxx $ |
1057
66d2754c6f30
record: allow splitting of hunks by manually editing patches
A. S. Budden <abudden@gmail.com>
parents:
1049
diff
changeset
|
409 |
record change 1/2 to 'a'? [Ynesfdaq?] |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
410 |
@@ -2,2 +3,3 @@ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
411 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
412 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
413 |
+bar |
1057
66d2754c6f30
record: allow splitting of hunks by manually editing patches
A. S. Budden <abudden@gmail.com>
parents:
1049
diff
changeset
|
414 |
record change 2/2 to 'a'? [Ynesfdaq?] |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
415 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
416 |
File a should be clean |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
417 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
418 |
$ hg status -A a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
419 |
C a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
420 |
|
809
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
421 |
rollback and revert expansion |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
422 |
|
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
423 |
$ cat a |
1116
e05e9d1589b9
tests: don't use dates before epoch in test-keyword.t
Mads Kiilerich <mads@kiilerich.com>
parents:
1112
diff
changeset
|
424 |
expand $Id: a,v 78e0a02d76aa 1970/01/01 00:00:11 test $ |
809
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
425 |
foo |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
426 |
do not process $Id: |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
427 |
xxx $ |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
428 |
bar |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
429 |
$ hg --verbose rollback |
884
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
430 |
repository tip rolled back to revision 2 (undo commit) |
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
431 |
working directory now based on revision 2 |
809
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
432 |
overwriting a expanding keywords |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
433 |
$ hg status a |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
434 |
M a |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
435 |
$ cat a |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
436 |
expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
437 |
foo |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
438 |
do not process $Id: |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
439 |
xxx $ |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
440 |
bar |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
441 |
$ echo '$Id$' > y |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
442 |
$ echo '$Id$' > z |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
443 |
$ hg add y |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
444 |
$ hg commit -Am "rollback only" z |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
445 |
$ cat z |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
446 |
$Id: z,v 45a5d3adce53 1970/01/01 00:00:00 test $ |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
447 |
$ hg --verbose rollback |
884
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
448 |
repository tip rolled back to revision 2 (undo commit) |
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
449 |
working directory now based on revision 2 |
809
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
450 |
overwriting z shrinking keywords |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
451 |
|
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
452 |
Only z should be overwritten |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
453 |
|
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
454 |
$ hg status a y z |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
455 |
M a |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
456 |
A y |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
457 |
A z |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
458 |
$ cat z |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
459 |
$Id$ |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
460 |
$ hg forget y z |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
461 |
$ rm y z |
028b6584decb
Support rollback by restoring expansion to previous values
Christian Ebert <blacktrash@gmx.net>
parents:
806
diff
changeset
|
462 |
|
836
53a9228f13de
Fix weeding of expansion candidates when recording
Christian Ebert <blacktrash@gmx.net>
parents:
831
diff
changeset
|
463 |
record added file alone |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
464 |
|
1116
e05e9d1589b9
tests: don't use dates before epoch in test-keyword.t
Mads Kiilerich <mads@kiilerich.com>
parents:
1112
diff
changeset
|
465 |
$ hg -v record -l msg -d '12 2' r<<EOF |
818
b742a071ad9c
Specific regular expressions depending on read mode
Christian Ebert <blacktrash@gmx.net>
parents:
817
diff
changeset
|
466 |
> y |
b742a071ad9c
Specific regular expressions depending on read mode
Christian Ebert <blacktrash@gmx.net>
parents:
817
diff
changeset
|
467 |
> EOF |
b742a071ad9c
Specific regular expressions depending on read mode
Christian Ebert <blacktrash@gmx.net>
parents:
817
diff
changeset
|
468 |
diff --git a/r b/r |
b742a071ad9c
Specific regular expressions depending on read mode
Christian Ebert <blacktrash@gmx.net>
parents:
817
diff
changeset
|
469 |
new file mode 100644 |
1057
66d2754c6f30
record: allow splitting of hunks by manually editing patches
A. S. Budden <abudden@gmail.com>
parents:
1049
diff
changeset
|
470 |
examine changes to 'r'? [Ynesfdaq?] |
818
b742a071ad9c
Specific regular expressions depending on read mode
Christian Ebert <blacktrash@gmx.net>
parents:
817
diff
changeset
|
471 |
r |
1116
e05e9d1589b9
tests: don't use dates before epoch in test-keyword.t
Mads Kiilerich <mads@kiilerich.com>
parents:
1112
diff
changeset
|
472 |
committed changeset 3:82a2f715724d |
818
b742a071ad9c
Specific regular expressions depending on read mode
Christian Ebert <blacktrash@gmx.net>
parents:
817
diff
changeset
|
473 |
overwriting r expanding keywords |
982
639bb4617c70
Make status test after record and kwexpand/kwshrink reliable
Christian Ebert <blacktrash@gmx.net>
parents:
981
diff
changeset
|
474 |
- status call required for dirstate.normallookup() check |
639bb4617c70
Make status test after record and kwexpand/kwshrink reliable
Christian Ebert <blacktrash@gmx.net>
parents:
981
diff
changeset
|
475 |
$ hg status r |
818
b742a071ad9c
Specific regular expressions depending on read mode
Christian Ebert <blacktrash@gmx.net>
parents:
817
diff
changeset
|
476 |
$ hg --verbose rollback |
884
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
477 |
repository tip rolled back to revision 2 (undo commit) |
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
478 |
working directory now based on revision 2 |
818
b742a071ad9c
Specific regular expressions depending on read mode
Christian Ebert <blacktrash@gmx.net>
parents:
817
diff
changeset
|
479 |
overwriting r shrinking keywords |
b742a071ad9c
Specific regular expressions depending on read mode
Christian Ebert <blacktrash@gmx.net>
parents:
817
diff
changeset
|
480 |
$ hg forget r |
b742a071ad9c
Specific regular expressions depending on read mode
Christian Ebert <blacktrash@gmx.net>
parents:
817
diff
changeset
|
481 |
$ rm msg r |
836
53a9228f13de
Fix weeding of expansion candidates when recording
Christian Ebert <blacktrash@gmx.net>
parents:
831
diff
changeset
|
482 |
$ hg update -C |
53a9228f13de
Fix weeding of expansion candidates when recording
Christian Ebert <blacktrash@gmx.net>
parents:
831
diff
changeset
|
483 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
818
b742a071ad9c
Specific regular expressions depending on read mode
Christian Ebert <blacktrash@gmx.net>
parents:
817
diff
changeset
|
484 |
|
846
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
485 |
record added keyword ignored file |
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
486 |
|
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
487 |
$ echo '$Id$' > i |
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
488 |
$ hg add i |
1116
e05e9d1589b9
tests: don't use dates before epoch in test-keyword.t
Mads Kiilerich <mads@kiilerich.com>
parents:
1112
diff
changeset
|
489 |
$ hg --verbose record -d '13 1' -m recignored<<EOF |
846
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
490 |
> y |
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
491 |
> EOF |
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
492 |
diff --git a/i b/i |
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
493 |
new file mode 100644 |
1057
66d2754c6f30
record: allow splitting of hunks by manually editing patches
A. S. Budden <abudden@gmail.com>
parents:
1049
diff
changeset
|
494 |
examine changes to 'i'? [Ynesfdaq?] |
846
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
495 |
i |
1116
e05e9d1589b9
tests: don't use dates before epoch in test-keyword.t
Mads Kiilerich <mads@kiilerich.com>
parents:
1112
diff
changeset
|
496 |
committed changeset 3:9f40ceb5a072 |
846
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
497 |
$ cat i |
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
498 |
$Id$ |
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
499 |
$ hg -q rollback |
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
500 |
$ hg forget i |
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
501 |
$ rm i |
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
502 |
|
1080
4ee1c08706c4
Support commit --amend (issue3471)
Christian Ebert <blacktrash@gmx.net>
parents:
1067
diff
changeset
|
503 |
amend |
4ee1c08706c4
Support commit --amend (issue3471)
Christian Ebert <blacktrash@gmx.net>
parents:
1067
diff
changeset
|
504 |
|
4ee1c08706c4
Support commit --amend (issue3471)
Christian Ebert <blacktrash@gmx.net>
parents:
1067
diff
changeset
|
505 |
$ echo amend >> a |
4ee1c08706c4
Support commit --amend (issue3471)
Christian Ebert <blacktrash@gmx.net>
parents:
1067
diff
changeset
|
506 |
$ echo amend >> b |
1116
e05e9d1589b9
tests: don't use dates before epoch in test-keyword.t
Mads Kiilerich <mads@kiilerich.com>
parents:
1112
diff
changeset
|
507 |
$ hg -q commit -d '14 1' -m 'prepare amend' |
1080
4ee1c08706c4
Support commit --amend (issue3471)
Christian Ebert <blacktrash@gmx.net>
parents:
1067
diff
changeset
|
508 |
|
1116
e05e9d1589b9
tests: don't use dates before epoch in test-keyword.t
Mads Kiilerich <mads@kiilerich.com>
parents:
1112
diff
changeset
|
509 |
$ hg --debug commit --amend -d '15 1' -m 'amend without changes' | grep keywords |
1080
4ee1c08706c4
Support commit --amend (issue3471)
Christian Ebert <blacktrash@gmx.net>
parents:
1067
diff
changeset
|
510 |
overwriting a expanding keywords |
4ee1c08706c4
Support commit --amend (issue3471)
Christian Ebert <blacktrash@gmx.net>
parents:
1067
diff
changeset
|
511 |
$ hg -q id |
1148
c4e68bf38b1a
amend: add noise in extra to avoid creating obsolescence cycle (issue3664)
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1129
diff
changeset
|
512 |
67d8c481a6be |
1080
4ee1c08706c4
Support commit --amend (issue3471)
Christian Ebert <blacktrash@gmx.net>
parents:
1067
diff
changeset
|
513 |
$ head -1 a |
1148
c4e68bf38b1a
amend: add noise in extra to avoid creating obsolescence cycle (issue3664)
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1129
diff
changeset
|
514 |
expand $Id: a,v 67d8c481a6be 1970/01/01 00:00:15 test $ |
1080
4ee1c08706c4
Support commit --amend (issue3471)
Christian Ebert <blacktrash@gmx.net>
parents:
1067
diff
changeset
|
515 |
|
4ee1c08706c4
Support commit --amend (issue3471)
Christian Ebert <blacktrash@gmx.net>
parents:
1067
diff
changeset
|
516 |
$ hg -q strip -n tip |
4ee1c08706c4
Support commit --amend (issue3471)
Christian Ebert <blacktrash@gmx.net>
parents:
1067
diff
changeset
|
517 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
518 |
Test patch queue repo |
765
c5badbf855db
Force dirstate normal when all changes in a file are recorded
Christian Ebert <blacktrash@gmx.net>
parents:
743
diff
changeset
|
519 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
520 |
$ hg init --mq |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
521 |
$ hg qimport -r tip -n mqtest.diff |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
522 |
$ hg commit --mq -m mqtest |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
523 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
524 |
Keywords should not be expanded in patch |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
525 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
526 |
$ cat .hg/patches/mqtest.diff |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
527 |
# HG changeset patch |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
528 |
# User User Name <user@example.com> |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
529 |
# Date 1 0 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
530 |
# Node ID 40a904bbbe4cd4ab0a1f28411e35db26341a40ad |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
531 |
# Parent ef63ca68695bc9495032c6fda1350c71e6d256e9 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
532 |
cndiff |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
533 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
534 |
diff -r ef63ca68695b -r 40a904bbbe4c c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
535 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
536 |
+++ b/c Thu Jan 01 00:00:01 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
537 |
@@ -0,0 +1,2 @@ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
538 |
+$Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
539 |
+tests for different changenodes |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
540 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
541 |
$ hg qpop |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
542 |
popping mqtest.diff |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
543 |
patch queue now empty |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
544 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
545 |
qgoto, implying qpush, should expand |
737 | 546 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
547 |
$ hg qgoto mqtest.diff |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
548 |
applying mqtest.diff |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
549 |
now at: mqtest.diff |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
550 |
$ cat c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
551 |
$Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
552 |
tests for different changenodes |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
553 |
$ hg cat c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
554 |
$Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
555 |
tests for different changenodes |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
556 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
557 |
Keywords should not be expanded in filelog |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
558 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
559 |
$ hg --config 'extensions.keyword=!' cat c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
560 |
$Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
561 |
tests for different changenodes |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
562 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
563 |
qpop and move on |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
564 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
565 |
$ hg qpop |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
566 |
popping mqtest.diff |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
567 |
patch queue now empty |
336
46f5cf3e1a7f
Test that expansion is done filewise
Christian Ebert <blacktrash@gmx.net>
parents:
333
diff
changeset
|
568 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
569 |
Copy and show added kwfiles |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
570 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
571 |
$ hg cp a c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
572 |
$ hg kwfiles |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
573 |
a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
574 |
c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
575 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
576 |
Commit and show expansion in original and copy |
259
76402fc0fb58
Test kwfiles working context
Christian Ebert <blacktrash@gmx.net>
parents:
257
diff
changeset
|
577 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
578 |
$ hg --debug commit -ma2c -d '1 0' -u 'User Name <user@example.com>' |
1194
d55e5d564d22
filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents:
1192
diff
changeset
|
579 |
invalid branchheads cache (served): tip differs |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
580 |
c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
581 |
c: copy a:0045e12f6c5791aac80ca6cbfd97709a88307292 |
1197
10e27c438792
branchmap: update cache of 'unserved' filter on new changesets
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1194
diff
changeset
|
582 |
invalid branchheads cache (served): tip differs |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
583 |
overwriting c expanding keywords |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
584 |
committed changeset 2:25736cf2f5cbe41f6be4e6784ef6ecf9f3bbcc7d |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
585 |
$ cat a c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
586 |
expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
587 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
588 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
589 |
expand $Id: c,v 25736cf2f5cb 1970/01/01 00:00:01 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
590 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
591 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
592 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
593 |
Touch copied c and check its status |
259
76402fc0fb58
Test kwfiles working context
Christian Ebert <blacktrash@gmx.net>
parents:
257
diff
changeset
|
594 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
595 |
$ touch c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
596 |
$ hg status |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
597 |
|
814
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
598 |
Copy kwfile to keyword ignored file unexpanding keywords |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
599 |
|
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
600 |
$ hg --verbose copy a i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
601 |
copying a to i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
602 |
overwriting i shrinking keywords |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
603 |
$ head -n 1 i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
604 |
expand $Id$ |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
605 |
$ hg forget i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
606 |
$ rm i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
607 |
|
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
608 |
Copy ignored file to ignored file: no overwriting |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
609 |
|
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
610 |
$ hg --verbose copy b i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
611 |
copying b to i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
612 |
$ hg forget i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
613 |
$ rm i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
614 |
|
868
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
615 |
cp symlink file; hg cp -A symlink file (part1) |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
616 |
- copied symlink points to kwfile: overwrite |
814
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
617 |
|
1117
8d5052f23e99
test-keyword: adapt for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
1116
diff
changeset
|
618 |
#if symlink |
814
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
619 |
$ cp sym i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
620 |
$ ls -l i |
830
7c5571af20c9
test-keyword: fix test glob to ACL/SELinux flag
Mads Kiilerich <mads@kiilerich.com>
parents:
828
diff
changeset
|
621 |
-rw-r--r--* (glob) |
814
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
622 |
$ head -1 i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
623 |
expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
624 |
$ hg copy --after --verbose sym i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
625 |
copying sym to i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
626 |
overwriting i shrinking keywords |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
627 |
$ head -1 i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
628 |
expand $Id$ |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
629 |
$ hg forget i |
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
630 |
$ rm i |
1117
8d5052f23e99
test-keyword: adapt for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
1116
diff
changeset
|
631 |
#endif |
814
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
632 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
633 |
Test different options of hg kwfiles |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
634 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
635 |
$ hg kwfiles |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
636 |
a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
637 |
c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
638 |
$ hg -v kwfiles --ignore |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
639 |
I b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
640 |
I sym |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
641 |
$ hg kwfiles --all |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
642 |
K a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
643 |
K c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
644 |
I b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
645 |
I sym |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
646 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
647 |
Diff specific revision |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
648 |
|
786
5a41673d33fb
test-keyword: use regular expressions instead of grepping
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
784
diff
changeset
|
649 |
$ hg diff --rev 1 |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
650 |
diff -r ef63ca68695b c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
651 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
801
413c6fe6d1e3
tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents:
800
diff
changeset
|
652 |
+++ b/c * (glob) |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
653 |
@@ -0,0 +1,3 @@ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
654 |
+expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
655 |
+do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
656 |
+xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
657 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
658 |
Status after rollback: |
247 | 659 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
660 |
$ hg rollback |
884
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
661 |
repository tip rolled back to revision 1 (undo commit) |
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
662 |
working directory now based on revision 1 |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
663 |
$ hg status |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
664 |
A c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
665 |
$ hg update --clean |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
666 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
667 |
|
1095
716365545fb1
tests: convert some 'hghave symlink' to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
1080
diff
changeset
|
668 |
#if symlink |
716365545fb1
tests: convert some 'hghave symlink' to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
1080
diff
changeset
|
669 |
|
868
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
670 |
cp symlink file; hg cp -A symlink file (part2) |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
671 |
- copied symlink points to kw ignored file: do not overwrite |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
672 |
|
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
673 |
$ cat a > i |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
674 |
$ ln -s i symignored |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
675 |
$ hg commit -Am 'fake expansion in ignored and symlink' i symignored |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
676 |
$ cp symignored x |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
677 |
$ hg copy --after --verbose symignored x |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
678 |
copying symignored to x |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
679 |
$ head -n 1 x |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
680 |
expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
681 |
$ hg forget x |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
682 |
$ rm x |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
683 |
|
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
684 |
$ hg rollback |
884
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
685 |
repository tip rolled back to revision 1 (undo commit) |
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
686 |
working directory now based on revision 1 |
868
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
687 |
$ hg update --clean |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
688 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
689 |
$ rm i symignored |
16cfcb56859a
Copy: when copied source is a symlink, follow it
Christian Ebert <blacktrash@gmx.net>
parents:
850
diff
changeset
|
690 |
|
1095
716365545fb1
tests: convert some 'hghave symlink' to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
1080
diff
changeset
|
691 |
#endif |
716365545fb1
tests: convert some 'hghave symlink' to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
1080
diff
changeset
|
692 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
693 |
Custom keywordmaps as argument to kwdemo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
694 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
695 |
$ hg --quiet kwdemo "Xinfo = {author}: {desc}" |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
696 |
[extensions] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
697 |
keyword = |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
698 |
[keyword] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
699 |
** = |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
700 |
b = ignore |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
701 |
demo.txt = |
814
0588121c815b
Support copy and rename
Christian Ebert <blacktrash@gmx.net>
parents:
809
diff
changeset
|
702 |
i = ignore |
874
272a8a316f7a
Inform user about current keywordset in kwdemo
Christian Ebert <blacktrash@gmx.net>
parents:
868
diff
changeset
|
703 |
[keywordset] |
272a8a316f7a
Inform user about current keywordset in kwdemo
Christian Ebert <blacktrash@gmx.net>
parents:
868
diff
changeset
|
704 |
svn = False |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
705 |
[keywordmaps] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
706 |
Xinfo = {author}: {desc} |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
707 |
$Xinfo: test: hg keyword configuration and expansion example $ |
224
fd98a9bffcbe
Test "hg diff --rev", update _getcmd comment (backwards compatibility)
Christian Ebert <blacktrash@gmx.net>
parents:
223
diff
changeset
|
708 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
709 |
Configure custom keywordmaps |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
710 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
711 |
$ cat <<EOF >>$HGRCPATH |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
712 |
> [keywordmaps] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
713 |
> Id = {file} {node|short} {date|rfc822date} {author|user} |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
714 |
> Xinfo = {author}: {desc} |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
715 |
> EOF |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
716 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
717 |
Cat and hg cat files before custom expansion |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
718 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
719 |
$ cat a b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
720 |
expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
721 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
722 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
723 |
ignore $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
724 |
$ hg cat sym a b && echo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
725 |
expand $Id: a ef63ca68695b Thu, 01 Jan 1970 00:00:00 +0000 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
726 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
727 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
728 |
ignore $Id$ |
828
725ab7fe00e5
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
827
diff
changeset
|
729 |
a |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
730 |
|
1121
f4dcce73f362
fix trivial spelling errors
Mads Kiilerich <mads@kiilerich.com>
parents:
1119
diff
changeset
|
731 |
Write custom keyword and prepare multi-line commit message |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
732 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
733 |
$ echo '$Xinfo$' >> a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
734 |
$ cat <<EOF >> log |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
735 |
> firstline |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
736 |
> secondline |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
737 |
> EOF |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
738 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
739 |
Interrupted commit should not change state |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
740 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
741 |
$ hg commit |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
742 |
abort: empty commit message |
793
9cc90e2c826f
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
792
diff
changeset
|
743 |
[255] |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
744 |
$ hg status |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
745 |
M a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
746 |
? c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
747 |
? log |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
748 |
|
1121
f4dcce73f362
fix trivial spelling errors
Mads Kiilerich <mads@kiilerich.com>
parents:
1119
diff
changeset
|
749 |
Commit with multi-line message and custom expansion |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
750 |
|
1188
769eb1b179b5
branchcache: add note about cache invalidation to test-keyword.t
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1187
diff
changeset
|
751 |
|Note: |
769eb1b179b5
branchcache: add note about cache invalidation to test-keyword.t
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1187
diff
changeset
|
752 |
| |
769eb1b179b5
branchcache: add note about cache invalidation to test-keyword.t
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1187
diff
changeset
|
753 |
| After the last rollback, the "unserved" branchheads cache became invalid, but |
1192
5eb5ba3b9e99
test: improve grammar and spelling in branchcache note
Christian Ebert <blacktrash@gmx.net>
parents:
1189
diff
changeset
|
754 |
| all changesets in the repo were public. For filtering this means: |
1188
769eb1b179b5
branchcache: add note about cache invalidation to test-keyword.t
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1187
diff
changeset
|
755 |
| "mutable" == "unserved" == ??. |
769eb1b179b5
branchcache: add note about cache invalidation to test-keyword.t
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1187
diff
changeset
|
756 |
| |
1192
5eb5ba3b9e99
test: improve grammar and spelling in branchcache note
Christian Ebert <blacktrash@gmx.net>
parents:
1189
diff
changeset
|
757 |
| As the "unserved" cache is invalid, we fall back to the "mutable" cache. But |
5eb5ba3b9e99
test: improve grammar and spelling in branchcache note
Christian Ebert <blacktrash@gmx.net>
parents:
1189
diff
changeset
|
758 |
| no update is needed between "mutable" and "unserved" and the "unserved" cache |
5eb5ba3b9e99
test: improve grammar and spelling in branchcache note
Christian Ebert <blacktrash@gmx.net>
parents:
1189
diff
changeset
|
759 |
| is not updated on disk. The on-disk version therefore stays invalid for some |
5eb5ba3b9e99
test: improve grammar and spelling in branchcache note
Christian Ebert <blacktrash@gmx.net>
parents:
1189
diff
changeset
|
760 |
| time. This explains why the "unserved" branchheads cache is detected as |
1188
769eb1b179b5
branchcache: add note about cache invalidation to test-keyword.t
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1187
diff
changeset
|
761 |
| invalid here. |
769eb1b179b5
branchcache: add note about cache invalidation to test-keyword.t
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
1187
diff
changeset
|
762 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
763 |
$ hg --debug commit -l log -d '2 0' -u 'User Name <user@example.com>' |
1194
d55e5d564d22
filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents:
1192
diff
changeset
|
764 |
invalid branchheads cache (served): tip differs |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
765 |
a |
1194
d55e5d564d22
filtering: rename filters to their antonyms
Kevin Bullock <kbullock@ringworld.org>
parents:
1192
diff
changeset
|
766 |
invalid branchheads cache (served): tip differs |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
767 |
overwriting a expanding keywords |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
768 |
committed changeset 2:bb948857c743469b22bbf51f7ec8112279ca5d83 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
769 |
$ rm log |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
770 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
771 |
Stat, verify and show custom expansion (firstline) |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
772 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
773 |
$ hg status |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
774 |
? c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
775 |
$ hg verify |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
776 |
checking changesets |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
777 |
checking manifests |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
778 |
crosschecking files in changesets and manifests |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
779 |
checking files |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
780 |
3 files, 3 changesets, 4 total revisions |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
781 |
$ cat a b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
782 |
expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
783 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
784 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
785 |
$Xinfo: User Name <user@example.com>: firstline $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
786 |
ignore $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
787 |
$ hg cat sym a b && echo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
788 |
expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
789 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
790 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
791 |
$Xinfo: User Name <user@example.com>: firstline $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
792 |
ignore $Id$ |
828
725ab7fe00e5
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
827
diff
changeset
|
793 |
a |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
794 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
795 |
annotate |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
796 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
797 |
$ hg annotate a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
798 |
1: expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
799 |
1: do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
800 |
1: xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
801 |
2: $Xinfo$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
802 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
803 |
remove with status checks |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
804 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
805 |
$ hg debugrebuildstate |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
806 |
$ hg remove a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
807 |
$ hg --debug commit -m rma |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
808 |
committed changeset 3:d14c712653769de926994cf7fbb06c8fbd68f012 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
809 |
$ hg status |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
810 |
? c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
811 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
812 |
Rollback, revert, and check expansion |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
813 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
814 |
$ hg rollback |
884
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
815 |
repository tip rolled back to revision 2 (undo commit) |
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
816 |
working directory now based on revision 2 |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
817 |
$ hg status |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
818 |
R a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
819 |
? c |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
820 |
$ hg revert --no-backup --rev tip a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
821 |
$ cat a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
822 |
expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
823 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
824 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
825 |
$Xinfo: User Name <user@example.com>: firstline $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
826 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
827 |
Clone to test global and local configurations |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
828 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
829 |
$ cd .. |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
830 |
|
1129 | 831 |
Expansion in destination with global configuration |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
832 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
833 |
$ hg --quiet clone Test globalconf |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
834 |
$ cat globalconf/a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
835 |
expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
836 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
837 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
838 |
$Xinfo: User Name <user@example.com>: firstline $ |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
839 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
840 |
No expansion in destination with local configuration in origin only |
215 | 841 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
842 |
$ hg --quiet --config 'keyword.**=ignore' clone Test localconf |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
843 |
$ cat localconf/a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
844 |
expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
845 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
846 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
847 |
$Xinfo$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
848 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
849 |
Clone to test incoming |
773
9f939fae8ff3
Move collecting of [keyword] patterns to reposetup (issue2303)
Christian Ebert <blacktrash@gmx.net>
parents:
765
diff
changeset
|
850 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
851 |
$ hg clone -r1 Test Test-a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
852 |
adding changesets |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
853 |
adding manifests |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
854 |
adding file changes |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
855 |
added 2 changesets with 3 changes to 3 files |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
856 |
updating to branch default |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
857 |
3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
858 |
$ cd Test-a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
859 |
$ cat <<EOF >> .hg/hgrc |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
860 |
> [paths] |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
861 |
> default = ../Test |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
862 |
> EOF |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
863 |
$ hg incoming |
1015
0a583943b4b4
tests: make (glob) on windows accept \ instead of /
Mads Kiilerich <mads@kiilerich.com>
parents:
1014
diff
changeset
|
864 |
comparing with $TESTTMP/Test (glob) |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
865 |
searching for changes |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
866 |
changeset: 2:bb948857c743 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
867 |
tag: tip |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
868 |
user: User Name <user@example.com> |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
869 |
date: Thu Jan 01 00:00:02 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
870 |
summary: firstline |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
871 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
872 |
Imported patch should not be rejected |
773
9f939fae8ff3
Move collecting of [keyword] patterns to reposetup (issue2303)
Christian Ebert <blacktrash@gmx.net>
parents:
765
diff
changeset
|
873 |
|
1029
ab16e060541e
test-keyword: use inline doctest syntax
Christian Ebert <blacktrash@gmx.net>
parents:
1024
diff
changeset
|
874 |
>>> import re |
ab16e060541e
test-keyword: use inline doctest syntax
Christian Ebert <blacktrash@gmx.net>
parents:
1024
diff
changeset
|
875 |
>>> text = re.sub(r'(Id.*)', r'\1 rejecttest', open('a').read()) |
ab16e060541e
test-keyword: use inline doctest syntax
Christian Ebert <blacktrash@gmx.net>
parents:
1024
diff
changeset
|
876 |
>>> open('a', 'wb').write(text) |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
877 |
$ hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>' |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
878 |
a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
879 |
overwriting a expanding keywords |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
880 |
committed changeset 2:85e279d709ffc28c9fdd1b868570985fc3d87082 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
881 |
$ hg export -o ../rejecttest.diff tip |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
882 |
$ cd ../Test |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
883 |
$ hg import ../rejecttest.diff |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
884 |
applying ../rejecttest.diff |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
885 |
$ cat a b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
886 |
expand $Id: a 4e0994474d25 Thu, 01 Jan 1970 00:00:03 +0000 user $ rejecttest |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
887 |
do not process $Id: rejecttest |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
888 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
889 |
$Xinfo: User Name <user@example.com>: rejects? $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
890 |
ignore $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
891 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
892 |
$ hg rollback |
985
d60568a69465
import: wrap a transaction around the whole command
Greg Ward <greg@gerg.ca>
parents:
982
diff
changeset
|
893 |
repository tip rolled back to revision 2 (undo import) |
884
fe775751eb93
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
874
diff
changeset
|
894 |
working directory now based on revision 2 |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
895 |
$ hg update --clean |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
896 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
897 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
898 |
kwexpand/kwshrink on selected files |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
899 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
900 |
$ mkdir x |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
901 |
$ hg copy a x/a |
846
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
902 |
$ hg --verbose kwshrink a |
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
903 |
overwriting a shrinking keywords |
982
639bb4617c70
Make status test after record and kwexpand/kwshrink reliable
Christian Ebert <blacktrash@gmx.net>
parents:
981
diff
changeset
|
904 |
- sleep required for dirstate.normal() check |
639bb4617c70
Make status test after record and kwexpand/kwshrink reliable
Christian Ebert <blacktrash@gmx.net>
parents:
981
diff
changeset
|
905 |
$ sleep 1 |
846
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
906 |
$ hg status a |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
907 |
$ hg --verbose kwexpand a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
908 |
overwriting a expanding keywords |
846
d565787a8a5d
Fix regressions introduced in 9d01f9cab5e2
Christian Ebert <blacktrash@gmx.net>
parents:
836
diff
changeset
|
909 |
$ hg status a |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
910 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
911 |
kwexpand x/a should abort |
189
247159261ba5
Add backwards compatible test-suite
Christian Ebert <blacktrash@gmx.net>
parents:
diff
changeset
|
912 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
913 |
$ hg --verbose kwexpand x/a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
914 |
abort: outstanding uncommitted changes |
793
9cc90e2c826f
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
792
diff
changeset
|
915 |
[255] |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
916 |
$ cd x |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
917 |
$ hg --debug commit -m xa -d '3 0' -u 'User Name <user@example.com>' |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
918 |
x/a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
919 |
x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
920 |
overwriting x/a expanding keywords |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
921 |
committed changeset 3:b4560182a3f9a358179fd2d835c15e9da379c1e4 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
922 |
$ cat a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
923 |
expand $Id: x/a b4560182a3f9 Thu, 01 Jan 1970 00:00:03 +0000 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
924 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
925 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
926 |
$Xinfo: User Name <user@example.com>: xa $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
927 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
928 |
kwshrink a inside directory x |
316
98656ffb1cec
Test potential import conflict
Christian Ebert <blacktrash@gmx.net>
parents:
313
diff
changeset
|
929 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
930 |
$ hg --verbose kwshrink a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
931 |
overwriting x/a shrinking keywords |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
932 |
$ cat a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
933 |
expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
934 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
935 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
936 |
$Xinfo$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
937 |
$ cd .. |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
938 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
939 |
kwexpand nonexistent |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
940 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
941 |
$ hg kwexpand nonexistent |
801
413c6fe6d1e3
tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents:
800
diff
changeset
|
942 |
nonexistent:* (glob) |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
943 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
944 |
|
1117
8d5052f23e99
test-keyword: adapt for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
1116
diff
changeset
|
945 |
#if serve |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
946 |
hg serve |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
947 |
- expand with hgweb file |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
948 |
- no expansion with hgweb annotate/changeset/filediff |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
949 |
- check errors |
316
98656ffb1cec
Test potential import conflict
Christian Ebert <blacktrash@gmx.net>
parents:
313
diff
changeset
|
950 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
951 |
$ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
952 |
$ cat hg.pid >> $DAEMON_PIDS |
1106
a02b1025536c
tests: prepare get-with-headers.py for MSYS
Mads Kiilerich <mads@kiilerich.com>
parents:
1104
diff
changeset
|
953 |
$ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/a/?style=raw' |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
954 |
200 Script output follows |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
955 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
956 |
expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
957 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
958 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
959 |
$Xinfo: User Name <user@example.com>: firstline $ |
1106
a02b1025536c
tests: prepare get-with-headers.py for MSYS
Mads Kiilerich <mads@kiilerich.com>
parents:
1104
diff
changeset
|
960 |
$ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'annotate/tip/a/?style=raw' |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
961 |
200 Script output follows |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
962 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
963 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
964 |
user@1: expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
965 |
user@1: do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
966 |
user@1: xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
967 |
user@2: $Xinfo$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
968 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
969 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
970 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
971 |
|
1106
a02b1025536c
tests: prepare get-with-headers.py for MSYS
Mads Kiilerich <mads@kiilerich.com>
parents:
1104
diff
changeset
|
972 |
$ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'rev/tip/?style=raw' |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
973 |
200 Script output follows |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
974 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
975 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
976 |
# HG changeset patch |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
977 |
# User User Name <user@example.com> |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
978 |
# Date 3 0 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
979 |
# Node ID b4560182a3f9a358179fd2d835c15e9da379c1e4 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
980 |
# Parent bb948857c743469b22bbf51f7ec8112279ca5d83 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
981 |
xa |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
982 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
983 |
diff -r bb948857c743 -r b4560182a3f9 x/a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
984 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
985 |
+++ b/x/a Thu Jan 01 00:00:03 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
986 |
@@ -0,0 +1,4 @@ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
987 |
+expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
988 |
+do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
989 |
+xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
990 |
+$Xinfo$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
991 |
|
1106
a02b1025536c
tests: prepare get-with-headers.py for MSYS
Mads Kiilerich <mads@kiilerich.com>
parents:
1104
diff
changeset
|
992 |
$ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'diff/bb948857c743/a?style=raw' |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
993 |
200 Script output follows |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
994 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
995 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
996 |
diff -r ef63ca68695b -r bb948857c743 a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
997 |
--- a/a Thu Jan 01 00:00:00 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
998 |
+++ b/a Thu Jan 01 00:00:02 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
999 |
@@ -1,3 +1,4 @@ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1000 |
expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1001 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1002 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1003 |
+$Xinfo$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1004 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1005 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1006 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1007 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1008 |
$ cat errors.log |
1117
8d5052f23e99
test-keyword: adapt for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
1116
diff
changeset
|
1009 |
#endif |
241
e0a846f9f095
Test kwshrink w/ argument while not in top level directory
Christian Ebert <blacktrash@gmx.net>
parents:
224
diff
changeset
|
1010 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1011 |
Prepare merge and resolve tests |
279
1f00dce8de12
Test if warning about non-existing files is triggered
Christian Ebert <blacktrash@gmx.net>
parents:
267
diff
changeset
|
1012 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1013 |
$ echo '$Id$' > m |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1014 |
$ hg add m |
1119
5f7f30917a18
check-code: fix check for trailing whitespace on sh command lines
Mads Kiilerich <mads@kiilerich.com>
parents:
1117
diff
changeset
|
1015 |
$ hg commit -m 4kw |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1016 |
$ echo foo >> m |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1017 |
$ hg commit -m 5foo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1018 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1019 |
simplemerge |
482
18dc6c3588ea
Thorough hgweb testing
Christian Ebert <blacktrash@gmx.net>
parents:
479
diff
changeset
|
1020 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1021 |
$ hg update 4 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1022 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1023 |
$ echo foo >> m |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1024 |
$ hg commit -m 6foo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1025 |
created new head |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1026 |
$ hg merge |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1027 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1028 |
(branch merge, don't forget to commit) |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1029 |
$ hg commit -m simplemerge |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1030 |
$ cat m |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1031 |
$Id: m 27d48ee14f67 Thu, 01 Jan 1970 00:00:00 +0000 test $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1032 |
foo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1033 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1034 |
conflict: keyword should stay outside conflict zone |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1035 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1036 |
$ hg update 4 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1037 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1038 |
$ echo bar >> m |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1039 |
$ hg commit -m 8bar |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1040 |
created new head |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1041 |
$ hg merge |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1042 |
merging m |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1043 |
warning: conflicts during merge. |
1024
0b56a38520af
merge: give a special message for internal:merge failure (issue3105)
Matt Mackall <mpm@selenic.com>
parents:
1015
diff
changeset
|
1044 |
merging m incomplete! (edit conflicts, then use 'hg resolve --mark') |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1045 |
0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
792
b87861f57222
merge: suggest 'hg up -C .' for discarding changes, not 'hg up -C'
Brodie Rao <brodie@bitheap.org>
parents:
786
diff
changeset
|
1046 |
use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
793
9cc90e2c826f
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
792
diff
changeset
|
1047 |
[1] |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1048 |
$ cat m |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1049 |
$Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1050 |
<<<<<<< local |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1051 |
bar |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1052 |
======= |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1053 |
foo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1054 |
>>>>>>> other |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1055 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1056 |
resolve to local |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1057 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1058 |
$ HGMERGE=internal:local hg resolve -a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1059 |
$ hg commit -m localresolve |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1060 |
$ cat m |
928
e1bf64aaef4f
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
925
diff
changeset
|
1061 |
$Id: m 800511b3a22d Thu, 01 Jan 1970 00:00:00 +0000 test $ |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1062 |
bar |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1063 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1064 |
Test restricted mode with transplant -b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1065 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1066 |
$ hg update 6 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1067 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1068 |
$ hg branch foo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1069 |
marked working directory as branch foo |
1035 | 1070 |
(branches are permanent and global, did you want a bookmark?) |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1071 |
$ mv a a.bak |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1072 |
$ echo foobranch > a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1073 |
$ cat a.bak >> a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1074 |
$ rm a.bak |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1075 |
$ hg commit -m 9foobranch |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1076 |
$ hg update default |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1077 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1078 |
$ hg -y transplant -b foo tip |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1079 |
applying 4aa30d025d50 |
928
e1bf64aaef4f
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
925
diff
changeset
|
1080 |
4aa30d025d50 transplanted to e00abbf63521 |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1081 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1082 |
Expansion in changeset but not in file |
485
5c3637b12e88
Avoid additional conflicts during merge/resolve
Christian Ebert <blacktrash@gmx.net>
parents:
482
diff
changeset
|
1083 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1084 |
$ hg tip -p |
928
e1bf64aaef4f
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
925
diff
changeset
|
1085 |
changeset: 11:e00abbf63521 |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1086 |
tag: tip |
928
e1bf64aaef4f
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
925
diff
changeset
|
1087 |
parent: 9:800511b3a22d |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1088 |
user: test |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1089 |
date: Thu Jan 01 00:00:00 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1090 |
summary: 9foobranch |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1091 |
|
928
e1bf64aaef4f
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
925
diff
changeset
|
1092 |
diff -r 800511b3a22d -r e00abbf63521 a |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1093 |
--- a/a Thu Jan 01 00:00:00 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1094 |
+++ b/a Thu Jan 01 00:00:00 1970 +0000 |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1095 |
@@ -1,3 +1,4 @@ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1096 |
+foobranch |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1097 |
expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1098 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1099 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1100 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1101 |
$ head -n 2 a |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1102 |
foobranch |
928
e1bf64aaef4f
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
925
diff
changeset
|
1103 |
expand $Id: a e00abbf63521 Thu, 01 Jan 1970 00:00:00 +0000 test $ |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1104 |
|
806
a0dc79015ddf
test: fix typo, rephrase
Christian Ebert <blacktrash@gmx.net>
parents:
801
diff
changeset
|
1105 |
Turn off expansion |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1106 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1107 |
$ hg -q rollback |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1108 |
$ hg -q update -C |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1109 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1110 |
kwshrink with unknown file u |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1111 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1112 |
$ cp a u |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1113 |
$ hg --verbose kwshrink |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1114 |
overwriting a shrinking keywords |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1115 |
overwriting m shrinking keywords |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1116 |
overwriting x/a shrinking keywords |
668
13a6a2c0440f
Go into restricted mode when transplanting
Christian Ebert <blacktrash@gmx.net>
parents:
653
diff
changeset
|
1117 |
|
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1118 |
Keywords shrunk in working directory, but not yet disabled |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1119 |
- cat shows unexpanded keywords |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1120 |
- hg cat shows expanded keywords |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1121 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1122 |
$ cat a b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1123 |
expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1124 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1125 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1126 |
$Xinfo$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1127 |
ignore $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1128 |
$ hg cat sym a b && echo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1129 |
expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1130 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1131 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1132 |
$Xinfo: User Name <user@example.com>: firstline $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1133 |
ignore $Id$ |
828
725ab7fe00e5
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
827
diff
changeset
|
1134 |
a |
782
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1135 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1136 |
Now disable keyword expansion |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1137 |
|
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1138 |
$ rm "$HGRCPATH" |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1139 |
$ cat a b |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1140 |
expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1141 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1142 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1143 |
$Xinfo$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1144 |
ignore $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1145 |
$ hg cat sym a b && echo |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1146 |
expand $Id$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1147 |
do not process $Id: |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1148 |
xxx $ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1149 |
$Xinfo$ |
09bae16e7a6d
tests: unify test-keyword
Christian Ebert <blacktrash@gmx.net>
parents:
773
diff
changeset
|
1150 |
ignore $Id$ |
828
725ab7fe00e5
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
827
diff
changeset
|
1151 |
a |
1096
cbb200487fb6
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
1095
diff
changeset
|
1152 |
|
cbb200487fb6
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
1095
diff
changeset
|
1153 |
$ cd .. |