author | Shun-ichi GOTO <shunichi.goto@gmail.com> |
Fri, 19 Nov 2010 18:07:15 +0900 | |
branch | stable |
changeset 13067 | 9696954415db |
parent 12967 | 70b043405400 |
child 13019 | 42ac864ed394 |
permissions | -rw-r--r-- |
12967
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
1 |
$ cat > nlinks.py <<EOF |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
2 |
> import os, sys |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
3 |
> for f in sorted(sys.stdin.readlines()): |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
4 |
> f = f[:-1] |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
5 |
> print os.lstat(f).st_nlink, f |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
6 |
> EOF |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
7 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
8 |
$ nlinksdir() |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
9 |
> { |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
10 |
> find $1 -type f | python $TESTTMP/nlinks.py |
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 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
13 |
Prepare repo r1: |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
14 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
15 |
$ mkdir r1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
16 |
$ cd r1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
17 |
$ hg init |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
18 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
19 |
$ echo c1 > f1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
20 |
$ hg add f1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
21 |
$ hg ci -m0 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
22 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
23 |
$ mkdir d1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
24 |
$ cd d1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
25 |
$ echo c2 > f2 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
26 |
$ hg add f2 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
27 |
$ hg ci -m1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
28 |
$ cd ../.. |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
29 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
30 |
$ nlinksdir r1/.hg/store |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
31 |
1 r1/.hg/store/00changelog.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
32 |
1 r1/.hg/store/00manifest.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
33 |
1 r1/.hg/store/data/d1/f2.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
34 |
1 r1/.hg/store/data/f1.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
35 |
1 r1/.hg/store/fncache |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
36 |
1 r1/.hg/store/undo |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
37 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
38 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
39 |
Create hardlinked clone r2: |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
40 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
41 |
$ hg clone -U --debug r1 r2 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
42 |
linked 7 files |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
43 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
44 |
Create non-hardlinked clone r3: |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
45 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
46 |
$ hg clone --pull r1 r3 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
47 |
requesting all changes |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
48 |
adding changesets |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
49 |
adding manifests |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
50 |
adding file changes |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
51 |
added 2 changesets with 2 changes to 2 files |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
52 |
updating to branch default |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
53 |
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
|
54 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
55 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
56 |
Repos r1 and r2 should now contain hardlinked files: |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
57 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
58 |
$ nlinksdir r1/.hg/store |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
59 |
2 r1/.hg/store/00changelog.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
60 |
2 r1/.hg/store/00manifest.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
61 |
2 r1/.hg/store/data/d1/f2.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
62 |
2 r1/.hg/store/data/f1.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
63 |
2 r1/.hg/store/fncache |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
64 |
1 r1/.hg/store/undo |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
65 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
66 |
$ nlinksdir r2/.hg/store |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
67 |
2 r2/.hg/store/00changelog.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
68 |
2 r2/.hg/store/00manifest.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
69 |
2 r2/.hg/store/data/d1/f2.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
70 |
2 r2/.hg/store/data/f1.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
71 |
2 r2/.hg/store/fncache |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
72 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
73 |
Repo r3 should not be hardlinked: |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
74 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
75 |
$ nlinksdir r3/.hg/store |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
76 |
1 r3/.hg/store/00changelog.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
77 |
1 r3/.hg/store/00manifest.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
78 |
1 r3/.hg/store/data/d1/f2.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
79 |
1 r3/.hg/store/data/f1.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
80 |
1 r3/.hg/store/fncache |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
81 |
1 r3/.hg/store/undo |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
82 |
|
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 |
Create a non-inlined filelog in r3: |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
85 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
86 |
$ cd r3/d1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
87 |
$ python -c 'for x in range(10000): print x' >> data1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
88 |
$ 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
|
89 |
> cat data1 >> f2 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
90 |
> hg commit -m$j |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
91 |
> done |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
92 |
$ cd ../.. |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
93 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
94 |
$ nlinksdir r3/.hg/store |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
95 |
1 r3/.hg/store/00changelog.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
96 |
1 r3/.hg/store/00manifest.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
97 |
1 r3/.hg/store/data/d1/f2.d |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
98 |
1 r3/.hg/store/data/d1/f2.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
99 |
1 r3/.hg/store/data/f1.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
100 |
1 r3/.hg/store/fncache |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
101 |
1 r3/.hg/store/undo |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
102 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
103 |
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
|
104 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
105 |
$ hg -R r2 verify |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
106 |
checking changesets |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
107 |
checking manifests |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
108 |
crosschecking files in changesets and manifests |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
109 |
checking files |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
110 |
2 files, 2 changesets, 2 total revisions |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
111 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
112 |
$ cd r3 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
113 |
$ hg push |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
114 |
pushing to $TESTTMP/r1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
115 |
searching for changes |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
116 |
adding changesets |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
117 |
adding manifests |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
118 |
adding file changes |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
119 |
added 10 changesets with 10 changes to 1 files |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
120 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
121 |
$ cd .. |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
122 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
123 |
$ nlinksdir r2/.hg/store |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
124 |
1 r2/.hg/store/00changelog.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
125 |
1 r2/.hg/store/00manifest.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
126 |
1 r2/.hg/store/data/d1/f2.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
127 |
2 r2/.hg/store/data/f1.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
128 |
1 r2/.hg/store/fncache |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
129 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
130 |
$ hg -R r2 verify |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
131 |
checking changesets |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
132 |
checking manifests |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
133 |
crosschecking files in changesets and manifests |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
134 |
checking files |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
135 |
2 files, 2 changesets, 2 total revisions |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
136 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
137 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
138 |
$ cd r1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
139 |
$ hg up |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
140 |
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
|
141 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
142 |
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
|
143 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
144 |
$ echo c1c1 >> f1 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
145 |
$ hg ci -m00 |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
146 |
$ cd .. |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
147 |
|
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
148 |
$ nlinksdir r2/.hg/store |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
149 |
1 r2/.hg/store/00changelog.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
150 |
1 r2/.hg/store/00manifest.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
151 |
1 r2/.hg/store/data/d1/f2.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
152 |
1 r2/.hg/store/data/f1.i |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
153 |
1 r2/.hg/store/fncache |
70b043405400
tests: add test-hardlinks.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff
changeset
|
154 |