Mercurial > hg
annotate tests/test-hardlinks.t @ 39644:3b421154d2ca
py3: fix str vs bytes in enough places to run `hg version` on Windows
I don't have Visual Studio 2015 at home, but this now works with a handful of
extensions (blackbox, extdiff, patchbomb, phabricator and rebase, but not
evolve):
$ HGMODULEPOLICY=py py -3 ../hg version
Enabling the evolve extension causes the usual "failed to import ..." line, but
then print this before the usual version output:
('commit', '[b'debugancestor', b'debugapplystreamclonebundle', ...,
b'verify', b'version']')
... where the elided part seems to be every command and alias known.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 13 Sep 2018 22:07:00 -0400 |
parents | f1186c292d03 |
children | 5abc47d4ca6b |
rev | line source |
---|---|
37338
cbc4425e81b5
tests: conditionalize tests based on presence of revlogs for files
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35393
diff
changeset
|
1 #require hardlink reporevlogstore |
16971
8aeb2f1ae94c
tests: introduce hghave hardlinks
Mads Kiilerich <mads@kiilerich.com>
parents:
16918
diff
changeset
|
2 |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
3 $ cat > nlinks.py <<EOF |
33721
24849d53697d
tests: clean up many print statements to be print functions instead
Augie Fackler <augie@google.com>
parents:
33427
diff
changeset
|
4 > from __future__ import print_function |
16918
b112e265b78a
test-hardlinks: enable for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
16913
diff
changeset
|
5 > import sys |
b112e265b78a
test-hardlinks: enable for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
16913
diff
changeset
|
6 > from mercurial import util |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
7 > for f in sorted(sys.stdin.readlines()): |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
8 > f = f[:-1] |
33721
24849d53697d
tests: clean up many print statements to be print functions instead
Augie Fackler <augie@google.com>
parents:
33427
diff
changeset
|
9 > print(util.nlinks(f), f) |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
10 > EOF |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
11 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
12 $ nlinksdir() |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
13 > { |
32940
75be14993fda
cleanup: use $PYTHON to run python in many more tests
Augie Fackler <augie@google.com>
parents:
32780
diff
changeset
|
14 > find "$@" -type f | $PYTHON $TESTTMP/nlinks.py |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
15 > } |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
16 |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
17 Some implementations of cp can't create hardlinks (replaces 'cp -al' on Linux): |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
18 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
19 $ cat > linkcp.py <<EOF |
33958
163b6b7f333c
tests: update test-hardlinks to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33721
diff
changeset
|
20 > from __future__ import absolute_import |
163b6b7f333c
tests: update test-hardlinks to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33721
diff
changeset
|
21 > import sys |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
22 > from mercurial import util |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
23 > util.copyfiles(sys.argv[1], sys.argv[2], hardlink=True) |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
24 > EOF |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
25 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
26 $ linkcp() |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
27 > { |
32940
75be14993fda
cleanup: use $PYTHON to run python in many more tests
Augie Fackler <augie@google.com>
parents:
32780
diff
changeset
|
28 > $PYTHON $TESTTMP/linkcp.py $1 $2 |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
29 > } |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
30 |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
31 Prepare repo r1: |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
32 |
13956
ffb5c09ba822
tests: remove redundant mkdir
Martin Geisler <mg@lazybytes.net>
parents:
13272
diff
changeset
|
33 $ hg init r1 |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
34 $ cd r1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
35 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
36 $ echo c1 > f1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
37 $ hg add f1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
38 $ hg ci -m0 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
39 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
40 $ mkdir d1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
41 $ cd d1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
42 $ echo c2 > f2 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
43 $ hg add f2 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
44 $ hg ci -m1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
45 $ cd ../.. |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
46 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
47 $ nlinksdir r1/.hg/store |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
48 1 r1/.hg/store/00changelog.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
49 1 r1/.hg/store/00manifest.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
50 1 r1/.hg/store/data/d1/f2.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
51 1 r1/.hg/store/data/f1.i |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
52 1 r1/.hg/store/fncache (repofncache !) |
15483
9ae766f2f452
phases: set new commit in 1-phase
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
15455
diff
changeset
|
53 1 r1/.hg/store/phaseroots |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
54 1 r1/.hg/store/undo |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
55 1 r1/.hg/store/undo.backup.fncache (repofncache !) |
23904
d251da5e0e84
transaction: include backup file in the "undo" transaction
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
23786
diff
changeset
|
56 1 r1/.hg/store/undo.backupfiles |
15455
c6f87bdab2a1
phases: add rollback support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
15444
diff
changeset
|
57 1 r1/.hg/store/undo.phaseroots |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
58 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
59 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
60 Create hardlinked clone r2: |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
61 |
25125
bd625cd4e5e7
progress: get the extremely verbose output out of default debug
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24440
diff
changeset
|
62 $ hg clone -U --debug r1 r2 --config progress.debug=true |
24440
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
24164
diff
changeset
|
63 linking: 1 |
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
24164
diff
changeset
|
64 linking: 2 |
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
24164
diff
changeset
|
65 linking: 3 |
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
24164
diff
changeset
|
66 linking: 4 |
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
24164
diff
changeset
|
67 linking: 5 |
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
24164
diff
changeset
|
68 linking: 6 |
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
24164
diff
changeset
|
69 linking: 7 |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
70 linked 7 files |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
71 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
72 Create non-hardlinked clone r3: |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
73 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
74 $ hg clone --pull r1 r3 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
75 requesting all changes |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
76 adding changesets |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
77 adding manifests |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
78 adding file changes |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
79 added 2 changesets with 2 changes to 2 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
33958
diff
changeset
|
80 new changesets 40d85e9847f2:7069c422939c |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
81 updating to branch default |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
82 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
83 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
84 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
85 Repos r1 and r2 should now contain hardlinked files: |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
86 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
87 $ nlinksdir r1/.hg/store |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
88 2 r1/.hg/store/00changelog.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
89 2 r1/.hg/store/00manifest.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
90 2 r1/.hg/store/data/d1/f2.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
91 2 r1/.hg/store/data/f1.i |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
92 2 r1/.hg/store/fncache (repofncache !) |
15483
9ae766f2f452
phases: set new commit in 1-phase
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
15455
diff
changeset
|
93 1 r1/.hg/store/phaseroots |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
94 1 r1/.hg/store/undo |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
95 1 r1/.hg/store/undo.backup.fncache (repofncache !) |
23904
d251da5e0e84
transaction: include backup file in the "undo" transaction
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
23786
diff
changeset
|
96 1 r1/.hg/store/undo.backupfiles |
15455
c6f87bdab2a1
phases: add rollback support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
15444
diff
changeset
|
97 1 r1/.hg/store/undo.phaseroots |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
98 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
99 $ nlinksdir r2/.hg/store |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
100 2 r2/.hg/store/00changelog.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
101 2 r2/.hg/store/00manifest.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
102 2 r2/.hg/store/data/d1/f2.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
103 2 r2/.hg/store/data/f1.i |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
104 2 r2/.hg/store/fncache (repofncache !) |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
105 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
106 Repo r3 should not be hardlinked: |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
107 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
108 $ nlinksdir r3/.hg/store |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
109 1 r3/.hg/store/00changelog.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
110 1 r3/.hg/store/00manifest.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
111 1 r3/.hg/store/data/d1/f2.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
112 1 r3/.hg/store/data/f1.i |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
113 1 r3/.hg/store/fncache (repofncache !) |
15659
7fba5a245acc
phases: change publish behavior to only alter behavior when server.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
15483
diff
changeset
|
114 1 r3/.hg/store/phaseroots |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
115 1 r3/.hg/store/undo |
23904
d251da5e0e84
transaction: include backup file in the "undo" transaction
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
23786
diff
changeset
|
116 1 r3/.hg/store/undo.backupfiles |
15455
c6f87bdab2a1
phases: add rollback support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
15444
diff
changeset
|
117 1 r3/.hg/store/undo.phaseroots |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
118 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
119 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
120 Create a non-inlined filelog in r3: |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
121 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
122 $ cd r3/d1 |
16918
b112e265b78a
test-hardlinks: enable for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
16913
diff
changeset
|
123 >>> f = open('data1', 'wb') |
b112e265b78a
test-hardlinks: enable for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
16913
diff
changeset
|
124 >>> for x in range(10000): |
38086
b95a6fb7ae66
py3: fix .write() calls in few tests
Pulkit Goyal <7895pulkit@gmail.com>
parents:
37415
diff
changeset
|
125 ... f.write(b"%d\n" % x) and None |
16918
b112e265b78a
test-hardlinks: enable for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents:
16913
diff
changeset
|
126 >>> f.close() |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
127 $ for j in 0 1 2 3 4 5 6 7 8 9; do |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
128 > cat data1 >> f2 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
129 > hg commit -m$j |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
130 > done |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
131 $ cd ../.. |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
132 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
133 $ nlinksdir r3/.hg/store |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
134 1 r3/.hg/store/00changelog.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
135 1 r3/.hg/store/00manifest.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
136 1 r3/.hg/store/data/d1/f2.d |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
137 1 r3/.hg/store/data/d1/f2.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
138 1 r3/.hg/store/data/f1.i |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
139 1 r3/.hg/store/fncache (repofncache !) |
15483
9ae766f2f452
phases: set new commit in 1-phase
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
15455
diff
changeset
|
140 1 r3/.hg/store/phaseroots |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
141 1 r3/.hg/store/undo |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
142 1 r3/.hg/store/undo.backup.fncache (repofncache !) |
23904
d251da5e0e84
transaction: include backup file in the "undo" transaction
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
23786
diff
changeset
|
143 1 r3/.hg/store/undo.backup.phaseroots |
d251da5e0e84
transaction: include backup file in the "undo" transaction
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
23786
diff
changeset
|
144 1 r3/.hg/store/undo.backupfiles |
15455
c6f87bdab2a1
phases: add rollback support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
15444
diff
changeset
|
145 1 r3/.hg/store/undo.phaseroots |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
146 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
147 Push to repo r1 should break up most hardlinks in r2: |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
148 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
149 $ hg -R r2 verify |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
150 checking changesets |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
151 checking manifests |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
152 crosschecking files in changesets and manifests |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
153 checking files |
39489
f1186c292d03
verify: make output less confusing (issue5924)
Meirambek Omyrzak <meirambek77@gmail.com>
parents:
39323
diff
changeset
|
154 checked 2 changesets with 2 changes to 2 files |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
155 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
156 $ cd r3 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
157 $ hg push |
35393
4441705b7111
tests: remove (glob) annotations that were only for '\' matches
Matt Harbison <matt_harbison@yahoo.com>
parents:
34661
diff
changeset
|
158 pushing to $TESTTMP/r1 |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
159 searching for changes |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
160 adding changesets |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
161 adding manifests |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
162 adding file changes |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
163 added 10 changesets with 10 changes to 1 files |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
164 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
165 $ cd .. |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
166 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
167 $ nlinksdir r2/.hg/store |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
168 1 r2/.hg/store/00changelog.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
169 1 r2/.hg/store/00manifest.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
170 1 r2/.hg/store/data/d1/f2.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
171 2 r2/.hg/store/data/f1.i |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
172 [12] r2/\.hg/store/fncache (re) (repofncache !) |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
173 |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
174 #if hardlink-whitelisted repofncache |
32294
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
175 $ nlinksdir r2/.hg/store/fncache |
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
176 2 r2/.hg/store/fncache |
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
177 #endif |
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
178 |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
179 $ hg -R r2 verify |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
180 checking changesets |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
181 checking manifests |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
182 crosschecking files in changesets and manifests |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
183 checking files |
39489
f1186c292d03
verify: make output less confusing (issue5924)
Meirambek Omyrzak <meirambek77@gmail.com>
parents:
39323
diff
changeset
|
184 checked 2 changesets with 2 changes to 2 files |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
185 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
186 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
187 $ cd r1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
188 $ hg up |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
189 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
190 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
191 Committing a change to f1 in r1 must break up hardlink f1.i in r2: |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
192 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
193 $ echo c1c1 >> f1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
194 $ hg ci -m00 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
195 $ cd .. |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
196 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
197 $ nlinksdir r2/.hg/store |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
198 1 r2/.hg/store/00changelog.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
199 1 r2/.hg/store/00manifest.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
200 1 r2/.hg/store/data/d1/f2.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
201 1 r2/.hg/store/data/f1.i |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
202 [12] r2/\.hg/store/fncache (re) (repofncache !) |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
203 |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
204 #if hardlink-whitelisted repofncache |
32294
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
205 $ nlinksdir r2/.hg/store/fncache |
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
206 2 r2/.hg/store/fncache |
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
207 #endif |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
208 |
32721
c2cb0de25120
chmod: create a new file when flags are set on a hardlinked file
Koen Van Hoof <koen.van_hoof@nokia.com>
parents:
32304
diff
changeset
|
209 Create a file which exec permissions we will change |
c2cb0de25120
chmod: create a new file when flags are set on a hardlinked file
Koen Van Hoof <koen.van_hoof@nokia.com>
parents:
32304
diff
changeset
|
210 $ cd r3 |
c2cb0de25120
chmod: create a new file when flags are set on a hardlinked file
Koen Van Hoof <koen.van_hoof@nokia.com>
parents:
32304
diff
changeset
|
211 $ echo "echo hello world" > f3 |
c2cb0de25120
chmod: create a new file when flags are set on a hardlinked file
Koen Van Hoof <koen.van_hoof@nokia.com>
parents:
32304
diff
changeset
|
212 $ hg add f3 |
c2cb0de25120
chmod: create a new file when flags are set on a hardlinked file
Koen Van Hoof <koen.van_hoof@nokia.com>
parents:
32304
diff
changeset
|
213 $ hg ci -mf3 |
c2cb0de25120
chmod: create a new file when flags are set on a hardlinked file
Koen Van Hoof <koen.van_hoof@nokia.com>
parents:
32304
diff
changeset
|
214 $ cd .. |
c2cb0de25120
chmod: create a new file when flags are set on a hardlinked file
Koen Van Hoof <koen.van_hoof@nokia.com>
parents:
32304
diff
changeset
|
215 |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
216 $ cd r3 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
217 $ hg tip --template '{rev}:{node|short}\n' |
32721
c2cb0de25120
chmod: create a new file when flags are set on a hardlinked file
Koen Van Hoof <koen.van_hoof@nokia.com>
parents:
32304
diff
changeset
|
218 12:d3b77733a28a |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
219 $ echo bla > f1 |
32721
c2cb0de25120
chmod: create a new file when flags are set on a hardlinked file
Koen Van Hoof <koen.van_hoof@nokia.com>
parents:
32304
diff
changeset
|
220 $ chmod +x f3 |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
221 $ hg ci -m1 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
222 $ cd .. |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
223 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
224 Create hardlinked copy r4 of r3 (on Linux, we would call 'cp -al'): |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
225 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
226 $ linkcp r3 r4 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
227 |
32295
b9135f191d8a
test-hardlink: do not test .hg/cache/checklink
Jun Wu <quark@fb.com>
parents:
32294
diff
changeset
|
228 'checklink' is produced by hardlinking a symlink, which is undefined whether |
b9135f191d8a
test-hardlink: do not test .hg/cache/checklink
Jun Wu <quark@fb.com>
parents:
32294
diff
changeset
|
229 the symlink should be followed or not. It does behave differently on Linux and |
b9135f191d8a
test-hardlink: do not test .hg/cache/checklink
Jun Wu <quark@fb.com>
parents:
32294
diff
changeset
|
230 BSD. Just remove it so the test pass on both platforms. |
b9135f191d8a
test-hardlink: do not test .hg/cache/checklink
Jun Wu <quark@fb.com>
parents:
32294
diff
changeset
|
231 |
b9135f191d8a
test-hardlink: do not test .hg/cache/checklink
Jun Wu <quark@fb.com>
parents:
32294
diff
changeset
|
232 $ rm -f r4/.hg/cache/checklink |
b9135f191d8a
test-hardlink: do not test .hg/cache/checklink
Jun Wu <quark@fb.com>
parents:
32294
diff
changeset
|
233 |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
234 r4 has hardlinks in the working dir (not just inside .hg): |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
235 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
236 $ nlinksdir r4 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
237 2 r4/.hg/00changelog.i |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
238 2 r4/.hg/branch |
32304
37bcb4665529
tests: fix up recent conditionalized output changes
Matt Harbison <matt_harbison@yahoo.com>
parents:
32295
diff
changeset
|
239 2 r4/.hg/cache/branch2-base |
37bcb4665529
tests: fix up recent conditionalized output changes
Matt Harbison <matt_harbison@yahoo.com>
parents:
32295
diff
changeset
|
240 2 r4/.hg/cache/branch2-served |
31830
d34316ae5c58
tests: add per-line output conditionals for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
31577
diff
changeset
|
241 2 r4/.hg/cache/checkisexec (execbit !) |
d34316ae5c58
tests: add per-line output conditionals for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
31577
diff
changeset
|
242 ? r4/.hg/cache/checklink-target (glob) (symlink !) |
d34316ae5c58
tests: add per-line output conditionals for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
31577
diff
changeset
|
243 2 r4/.hg/cache/checknoexec (execbit !) |
39323
c11e8894b9ca
tests: mark manifestfulltextcache as conditional on revlog store
Gregory Szorc <gregory.szorc@gmail.com>
parents:
38781
diff
changeset
|
244 2 r4/.hg/cache/manifestfulltextcache (reporevlogstore !) |
23786
7d63398fbfd1
branchmap: use revbranchcache when updating branch map
Mads Kiilerich <madski@unity3d.com>
parents:
22648
diff
changeset
|
245 2 r4/.hg/cache/rbc-names-v1 |
7d63398fbfd1
branchmap: use revbranchcache when updating branch map
Mads Kiilerich <madski@unity3d.com>
parents:
22648
diff
changeset
|
246 2 r4/.hg/cache/rbc-revs-v1 |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
247 2 r4/.hg/dirstate |
33427
1bdafe1111ce
tests: add extra output for fsmonitor at checking under .hg
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
32940
diff
changeset
|
248 2 r4/.hg/fsmonitor.state (fsmonitor !) |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
249 2 r4/.hg/hgrc |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
250 2 r4/.hg/last-message.txt |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
251 2 r4/.hg/requires |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
252 2 r4/.hg/store/00changelog.i |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
253 2 r4/.hg/store/00manifest.i |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
254 2 r4/.hg/store/data/d1/f2.d |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
255 2 r4/.hg/store/data/d1/f2.i |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
256 2 r4/.hg/store/data/f1.i |
32721
c2cb0de25120
chmod: create a new file when flags are set on a hardlinked file
Koen Van Hoof <koen.van_hoof@nokia.com>
parents:
32304
diff
changeset
|
257 2 r4/.hg/store/data/f3.i |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
258 2 r4/.hg/store/fncache (repofncache !) |
15483
9ae766f2f452
phases: set new commit in 1-phase
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
15455
diff
changeset
|
259 2 r4/.hg/store/phaseroots |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
260 2 r4/.hg/store/undo |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
261 2 r4/.hg/store/undo.backup.fncache (repofncache !) |
23904
d251da5e0e84
transaction: include backup file in the "undo" transaction
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
23786
diff
changeset
|
262 2 r4/.hg/store/undo.backup.phaseroots |
d251da5e0e84
transaction: include backup file in the "undo" transaction
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
23786
diff
changeset
|
263 2 r4/.hg/store/undo.backupfiles |
15455
c6f87bdab2a1
phases: add rollback support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
15444
diff
changeset
|
264 2 r4/.hg/store/undo.phaseroots |
31577 | 265 [24] r4/\.hg/undo\.backup\.dirstate (re) |
14266
89e7d35e0ef0
fix bookmarks rollback behavior
Alexander Solovyov <alexander@solovyov.net>
parents:
13272
diff
changeset
|
266 2 r4/.hg/undo.bookmarks |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
267 2 r4/.hg/undo.branch |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
268 2 r4/.hg/undo.desc |
31577 | 269 [24] r4/\.hg/undo\.dirstate (re) |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
270 2 r4/d1/data1 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
271 2 r4/d1/f2 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
272 2 r4/f1 |
32721
c2cb0de25120
chmod: create a new file when flags are set on a hardlinked file
Koen Van Hoof <koen.van_hoof@nokia.com>
parents:
32304
diff
changeset
|
273 2 r4/f3 |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
274 |
32721
c2cb0de25120
chmod: create a new file when flags are set on a hardlinked file
Koen Van Hoof <koen.van_hoof@nokia.com>
parents:
32304
diff
changeset
|
275 Update back to revision 12 in r4 should break hardlink of file f1 and f3: |
32294
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
276 #if hardlink-whitelisted |
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
277 $ nlinksdir r4/.hg/undo.backup.dirstate r4/.hg/undo.dirstate |
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
278 4 r4/.hg/undo.backup.dirstate |
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
279 4 r4/.hg/undo.dirstate |
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
280 #endif |
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
281 |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
282 |
32721
c2cb0de25120
chmod: create a new file when flags are set on a hardlinked file
Koen Van Hoof <koen.van_hoof@nokia.com>
parents:
32304
diff
changeset
|
283 $ hg -R r4 up 12 |
32780
5e76a07e9f42
test-hardlinks: stabilize for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
32721
diff
changeset
|
284 2 files updated, 0 files merged, 0 files removed, 0 files unresolved (execbit !) |
5e76a07e9f42
test-hardlinks: stabilize for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
32721
diff
changeset
|
285 1 files updated, 0 files merged, 0 files removed, 0 files unresolved (no-execbit !) |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
286 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
287 $ nlinksdir r4 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
288 2 r4/.hg/00changelog.i |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
289 1 r4/.hg/branch |
32304
37bcb4665529
tests: fix up recent conditionalized output changes
Matt Harbison <matt_harbison@yahoo.com>
parents:
32295
diff
changeset
|
290 2 r4/.hg/cache/branch2-base |
37bcb4665529
tests: fix up recent conditionalized output changes
Matt Harbison <matt_harbison@yahoo.com>
parents:
32295
diff
changeset
|
291 2 r4/.hg/cache/branch2-served |
31830
d34316ae5c58
tests: add per-line output conditionals for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
31577
diff
changeset
|
292 2 r4/.hg/cache/checkisexec (execbit !) |
d34316ae5c58
tests: add per-line output conditionals for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
31577
diff
changeset
|
293 2 r4/.hg/cache/checklink-target (symlink !) |
d34316ae5c58
tests: add per-line output conditionals for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
31577
diff
changeset
|
294 2 r4/.hg/cache/checknoexec (execbit !) |
39323
c11e8894b9ca
tests: mark manifestfulltextcache as conditional on revlog store
Gregory Szorc <gregory.szorc@gmail.com>
parents:
38781
diff
changeset
|
295 2 r4/.hg/cache/manifestfulltextcache (reporevlogstore !) |
23786
7d63398fbfd1
branchmap: use revbranchcache when updating branch map
Mads Kiilerich <madski@unity3d.com>
parents:
22648
diff
changeset
|
296 2 r4/.hg/cache/rbc-names-v1 |
7d63398fbfd1
branchmap: use revbranchcache when updating branch map
Mads Kiilerich <madski@unity3d.com>
parents:
22648
diff
changeset
|
297 2 r4/.hg/cache/rbc-revs-v1 |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
298 1 r4/.hg/dirstate |
33427
1bdafe1111ce
tests: add extra output for fsmonitor at checking under .hg
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
32940
diff
changeset
|
299 1 r4/.hg/fsmonitor.state (fsmonitor !) |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
300 2 r4/.hg/hgrc |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
301 2 r4/.hg/last-message.txt |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
302 2 r4/.hg/requires |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
303 2 r4/.hg/store/00changelog.i |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
304 2 r4/.hg/store/00manifest.i |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
305 2 r4/.hg/store/data/d1/f2.d |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
306 2 r4/.hg/store/data/d1/f2.i |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
307 2 r4/.hg/store/data/f1.i |
32721
c2cb0de25120
chmod: create a new file when flags are set on a hardlinked file
Koen Van Hoof <koen.van_hoof@nokia.com>
parents:
32304
diff
changeset
|
308 2 r4/.hg/store/data/f3.i |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
309 2 r4/.hg/store/fncache |
15483
9ae766f2f452
phases: set new commit in 1-phase
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
15455
diff
changeset
|
310 2 r4/.hg/store/phaseroots |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
311 2 r4/.hg/store/undo |
37415
c2c8962a9465
simplestore: use a custom store for the simple store repo
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37338
diff
changeset
|
312 2 r4/.hg/store/undo.backup.fncache (repofncache !) |
23904
d251da5e0e84
transaction: include backup file in the "undo" transaction
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
23786
diff
changeset
|
313 2 r4/.hg/store/undo.backup.phaseroots |
d251da5e0e84
transaction: include backup file in the "undo" transaction
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
23786
diff
changeset
|
314 2 r4/.hg/store/undo.backupfiles |
15455
c6f87bdab2a1
phases: add rollback support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
15444
diff
changeset
|
315 2 r4/.hg/store/undo.phaseroots |
31577 | 316 [24] r4/\.hg/undo\.backup\.dirstate (re) |
14266
89e7d35e0ef0
fix bookmarks rollback behavior
Alexander Solovyov <alexander@solovyov.net>
parents:
13272
diff
changeset
|
317 2 r4/.hg/undo.bookmarks |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
318 2 r4/.hg/undo.branch |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
319 2 r4/.hg/undo.desc |
31577 | 320 [24] r4/\.hg/undo\.dirstate (re) |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
321 2 r4/d1/data1 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
322 2 r4/d1/f2 |
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
323 1 r4/f1 |
32780
5e76a07e9f42
test-hardlinks: stabilize for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
32721
diff
changeset
|
324 1 r4/f3 (execbit !) |
5e76a07e9f42
test-hardlinks: stabilize for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
32721
diff
changeset
|
325 2 r4/f3 (no-execbit !) |
13019
42ac864ed394
test-hardlinks: add testcase for repo copied with 'cp -al'
Adrian Buehlmann <adrian@cadifra.com>
parents:
12967
diff
changeset
|
326 |
32294
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
327 #if hardlink-whitelisted |
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
328 $ nlinksdir r4/.hg/undo.backup.dirstate r4/.hg/undo.dirstate |
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
329 4 r4/.hg/undo.backup.dirstate |
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
330 4 r4/.hg/undo.dirstate |
905a2eff08a6
test-hardlinks: unify two test files into one
Jun Wu <quark@fb.com>
parents:
32268
diff
changeset
|
331 #endif |
13034
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
332 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
333 Test hardlinking outside hg: |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
334 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
335 $ mkdir x |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
336 $ echo foo > x/a |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
337 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
338 $ linkcp x y |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
339 $ echo bar >> y/a |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
340 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
341 No diff if hardlink: |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
342 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
343 $ diff x/a y/a |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
344 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
345 Test mq hardlinking: |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
346 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
347 $ echo "[extensions]" >> $HGRCPATH |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
348 $ echo "mq=" >> $HGRCPATH |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
349 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
350 $ hg init a |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
351 $ cd a |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
352 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
353 $ hg qimport -n foo - << EOF |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
354 > # HG changeset patch |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
355 > # Date 1 0 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
356 > diff -r 2588a8b53d66 a |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
357 > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
358 > +++ b/a Wed Jul 23 15:54:29 2008 +0200 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
359 > @@ -0,0 +1,1 @@ |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
360 > +a |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
361 > EOF |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
362 adding foo to series file |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
363 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
364 $ hg qpush |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
365 applying foo |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
366 now at: foo |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
367 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
368 $ cd .. |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
369 $ linkcp a b |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
370 $ cd b |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
371 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
372 $ hg qimport -n bar - << EOF |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
373 > # HG changeset patch |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
374 > # Date 2 0 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
375 > diff -r 2588a8b53d66 a |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
376 > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
377 > +++ b/b Wed Jul 23 15:54:29 2008 +0200 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
378 > @@ -0,0 +1,1 @@ |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
379 > +b |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
380 > EOF |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
381 adding bar to series file |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
382 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
383 $ hg qpush |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
384 applying bar |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
385 now at: bar |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
386 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
387 $ cat .hg/patches/status |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
388 430ed4828a74fa4047bc816a25500f7472ab4bfe:foo |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
389 4e7abb4840c46a910f6d7b4d3c3fc7e5209e684c:bar |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
390 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
391 $ cat .hg/patches/series |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
392 foo |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
393 bar |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
394 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
395 $ cat ../a/.hg/patches/status |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
396 430ed4828a74fa4047bc816a25500f7472ab4bfe:foo |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
397 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
398 $ cat ../a/.hg/patches/series |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
399 foo |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
400 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
401 Test tags hardlinking: |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
402 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
403 $ hg qdel -r qbase:qtip |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
404 patch foo finalized without changeset message |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
405 patch bar finalized without changeset message |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
406 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
407 $ hg tag -l lfoo |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
408 $ hg tag foo |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
409 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
410 $ cd .. |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
411 $ linkcp b c |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
412 $ cd c |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
413 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
414 $ hg tag -l -r 0 lbar |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
415 $ hg tag -r 0 bar |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
416 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
417 $ cat .hgtags |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
418 4e7abb4840c46a910f6d7b4d3c3fc7e5209e684c foo |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
419 430ed4828a74fa4047bc816a25500f7472ab4bfe bar |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
420 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
421 $ cat .hg/localtags |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
422 4e7abb4840c46a910f6d7b4d3c3fc7e5209e684c lfoo |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
423 430ed4828a74fa4047bc816a25500f7472ab4bfe lbar |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
424 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
425 $ cat ../b/.hgtags |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
426 4e7abb4840c46a910f6d7b4d3c3fc7e5209e684c foo |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
427 |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
428 $ cat ../b/.hg/localtags |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
429 4e7abb4840c46a910f6d7b4d3c3fc7e5209e684c lfoo |
8cb33163b391
tests: integrate test-hardlinks-safety.t into test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
13019
diff
changeset
|
430 |
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
15659
diff
changeset
|
431 $ cd .. |