Mercurial > hg
annotate tests/test-largefiles-cache.t @ 49224:cdb85d0512b8
branching: fix wrong merge conflict resolution from 13dfad0f9f7a
13dfad0f9f7a merged stable into default, but accidentally added the
_blockingreader class from stable (but deindented) instead of merging the
changes from stable (2fe4efaa59af) into the existing _blockingreader class.
This resulted in the _blockingreader being there two times.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Wed, 25 May 2022 17:23:16 +0200 |
parents | 42d2b31cee0b |
children | 92734603e33e |
rev | line source |
---|---|
15472
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
1 Create user cache directory |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
2 |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
3 $ USERCACHE=`pwd`/cache; export USERCACHE |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
4 $ cat <<EOF >> ${HGRCPATH} |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
5 > [extensions] |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
6 > hgext.largefiles= |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
7 > [largefiles] |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
8 > usercache=${USERCACHE} |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
9 > EOF |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
10 $ mkdir -p ${USERCACHE} |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
11 |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
12 Create source repo, and commit adding largefile. |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
13 |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
14 $ hg init src |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
15 $ cd src |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
16 $ echo large > large |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
17 $ hg add --large large |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
18 $ hg commit -m 'add largefile' |
18723
e56f7cd8c67b
tests: don't rely on broken behaviour in test-largefiles-cache.t
Mads Kiilerich <madski@unity3d.com>
parents:
18461
diff
changeset
|
19 $ hg rm large |
27942
eb1135d5e688
largefiles: fix an explicit largefile commit after a remove (issue4969)
Matt Harbison <matt_harbison@yahoo.com>
parents:
26951
diff
changeset
|
20 $ hg commit -m 'branchhead without largefile' large |
18723
e56f7cd8c67b
tests: don't rely on broken behaviour in test-largefiles-cache.t
Mads Kiilerich <madski@unity3d.com>
parents:
18461
diff
changeset
|
21 $ hg up -qr 0 |
27947
571ba161f6be
largefiles: prevent committing a missing largefile
Matt Harbison <matt_harbison@yahoo.com>
parents:
27942
diff
changeset
|
22 $ rm large |
571ba161f6be
largefiles: prevent committing a missing largefile
Matt Harbison <matt_harbison@yahoo.com>
parents:
27942
diff
changeset
|
23 $ echo "0000000000000000000000000000000000000000" > .hglf/large |
571ba161f6be
largefiles: prevent committing a missing largefile
Matt Harbison <matt_harbison@yahoo.com>
parents:
27942
diff
changeset
|
24 $ hg commit -m 'commit missing file with corrupt standin' large |
571ba161f6be
largefiles: prevent committing a missing largefile
Matt Harbison <matt_harbison@yahoo.com>
parents:
27942
diff
changeset
|
25 abort: large: file not found! |
571ba161f6be
largefiles: prevent committing a missing largefile
Matt Harbison <matt_harbison@yahoo.com>
parents:
27942
diff
changeset
|
26 [255] |
571ba161f6be
largefiles: prevent committing a missing largefile
Matt Harbison <matt_harbison@yahoo.com>
parents:
27942
diff
changeset
|
27 $ hg up -Cqr 0 |
15472
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
28 $ cd .. |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
29 |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
30 Discard all cached largefiles in USERCACHE |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
31 |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
32 $ rm -rf ${USERCACHE} |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
33 |
15478
f8a0c7925496
tests: fix trailing whitespace
Matt Mackall <mpm@selenic.com>
parents:
15472
diff
changeset
|
34 Create mirror repo, and pull from source without largefile: |
15472
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
35 "pull" is used instead of "clone" for suppression of (1) updating to |
21024
7731a2281cf0
spelling: fixes from spell checker
Mads Kiilerich <madski@unity3d.com>
parents:
20471
diff
changeset
|
36 tip (= caching largefile from source repo), and (2) recording source |
15472
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
37 repo as "default" path in .hg/hgrc. |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
38 |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
39 $ hg init mirror |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
40 $ cd mirror |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
41 $ hg pull ../src |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
42 pulling from ../src |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
43 requesting all changes |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
44 adding changesets |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
45 adding manifests |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
46 adding file changes |
18723
e56f7cd8c67b
tests: don't rely on broken behaviour in test-largefiles-cache.t
Mads Kiilerich <madski@unity3d.com>
parents:
18461
diff
changeset
|
47 added 2 changesets with 1 changes to 1 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
33990
diff
changeset
|
48 new changesets eb85d9124f3f:26c18ce05e4e |
15472
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
49 (run 'hg update' to get a working copy) |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
50 |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
51 Update working directory to "tip", which requires largefile("large"), |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
52 but there is no cache file for it. So, hg must treat it as |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
53 "missing"(!) file. |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
54 |
18723
e56f7cd8c67b
tests: don't rely on broken behaviour in test-largefiles-cache.t
Mads Kiilerich <madski@unity3d.com>
parents:
18461
diff
changeset
|
55 $ hg update -r0 |
15472
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
56 getting changed largefiles |
20471
ea005e754c9c
tests: lines with largefile .* file://$TESTTMP also match on windows
Simon Heimberg <simohe@besonet.ch>
parents:
19950
diff
changeset
|
57 large: largefile 7f7097b041ccf68cc5561e9600da4655d21c6d18 not available from file:/*/$TESTTMP/mirror (glob) |
15472
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
58 0 largefiles updated, 0 removed |
18459
c9db897d5a43
largefiles: fix largefiles+subrepo update (issue3752)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
18159
diff
changeset
|
59 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
15472
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
60 $ hg status |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
61 ! large |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
62 |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
63 Update working directory to null: this cleanup .hg/largefiles/dirstate |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
64 |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
65 $ hg update null |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
66 getting changed largefiles |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
67 0 largefiles updated, 0 removed |
18459
c9db897d5a43
largefiles: fix largefiles+subrepo update (issue3752)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
18159
diff
changeset
|
68 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
15472
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
69 |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
70 Update working directory to tip, again. |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
71 |
18723
e56f7cd8c67b
tests: don't rely on broken behaviour in test-largefiles-cache.t
Mads Kiilerich <madski@unity3d.com>
parents:
18461
diff
changeset
|
72 $ hg update -r0 |
15472
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
73 getting changed largefiles |
20471
ea005e754c9c
tests: lines with largefile .* file://$TESTTMP also match on windows
Simon Heimberg <simohe@besonet.ch>
parents:
19950
diff
changeset
|
74 large: largefile 7f7097b041ccf68cc5561e9600da4655d21c6d18 not available from file:/*/$TESTTMP/mirror (glob) |
15472
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
75 0 largefiles updated, 0 removed |
18459
c9db897d5a43
largefiles: fix largefiles+subrepo update (issue3752)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
18159
diff
changeset
|
76 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
15472
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
77 $ hg status |
6a7e874390b0
largefiles: treat status of cache missed largefiles as "missing" correctly
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
diff
changeset
|
78 ! large |
16986
79902f7e27df
tests: convert some hghave unix-permissions to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
16928
diff
changeset
|
79 $ cd .. |
79902f7e27df
tests: convert some hghave unix-permissions to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
16928
diff
changeset
|
80 |
18724
894a5897a9dd
largefiles: getstandinmatcher should not depend on existence of directories
Mads Kiilerich <madski@unity3d.com>
parents:
18723
diff
changeset
|
81 Verify that largefiles from pulled branchheads are fetched, also to an empty repo |
894a5897a9dd
largefiles: getstandinmatcher should not depend on existence of directories
Mads Kiilerich <madski@unity3d.com>
parents:
18723
diff
changeset
|
82 |
894a5897a9dd
largefiles: getstandinmatcher should not depend on existence of directories
Mads Kiilerich <madski@unity3d.com>
parents:
18723
diff
changeset
|
83 $ hg init mirror2 |
894a5897a9dd
largefiles: getstandinmatcher should not depend on existence of directories
Mads Kiilerich <madski@unity3d.com>
parents:
18723
diff
changeset
|
84 $ hg -R mirror2 pull src -r0 |
894a5897a9dd
largefiles: getstandinmatcher should not depend on existence of directories
Mads Kiilerich <madski@unity3d.com>
parents:
18723
diff
changeset
|
85 pulling from src |
894a5897a9dd
largefiles: getstandinmatcher should not depend on existence of directories
Mads Kiilerich <madski@unity3d.com>
parents:
18723
diff
changeset
|
86 adding changesets |
894a5897a9dd
largefiles: getstandinmatcher should not depend on existence of directories
Mads Kiilerich <madski@unity3d.com>
parents:
18723
diff
changeset
|
87 adding manifests |
894a5897a9dd
largefiles: getstandinmatcher should not depend on existence of directories
Mads Kiilerich <madski@unity3d.com>
parents:
18723
diff
changeset
|
88 adding file changes |
894a5897a9dd
largefiles: getstandinmatcher should not depend on existence of directories
Mads Kiilerich <madski@unity3d.com>
parents:
18723
diff
changeset
|
89 added 1 changesets with 1 changes to 1 files |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
33990
diff
changeset
|
90 new changesets eb85d9124f3f |
18724
894a5897a9dd
largefiles: getstandinmatcher should not depend on existence of directories
Mads Kiilerich <madski@unity3d.com>
parents:
18723
diff
changeset
|
91 (run 'hg update' to get a working copy) |
894a5897a9dd
largefiles: getstandinmatcher should not depend on existence of directories
Mads Kiilerich <madski@unity3d.com>
parents:
18723
diff
changeset
|
92 |
16986
79902f7e27df
tests: convert some hghave unix-permissions to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
16928
diff
changeset
|
93 #if unix-permissions |
16153
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
94 |
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
95 Portable way to print file permissions: |
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
96 |
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
97 $ cat > ls-l.py <<EOF |
32938
b6776b34e44e
tests: use $PYTHON in #! so we always use the right Python
Augie Fackler <augie@google.com>
parents:
32698
diff
changeset
|
98 > #!$PYTHON |
33990
b4707311d982
tests: update test-largefiles-cache to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33721
diff
changeset
|
99 > import os |
b4707311d982
tests: update test-largefiles-cache to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33721
diff
changeset
|
100 > import sys |
16153
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
101 > path = sys.argv[1] |
33990
b4707311d982
tests: update test-largefiles-cache to pass our import checker
Augie Fackler <raf@durin42.com>
parents:
33721
diff
changeset
|
102 > print('%03o' % (os.lstat(path).st_mode & 0o777)) |
16153
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
103 > EOF |
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
104 $ chmod +x ls-l.py |
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
105 |
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
106 Test that files in .hg/largefiles inherit mode from .hg/store, not |
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
107 from file in working copy: |
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
108 |
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
109 $ cd src |
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
110 $ chmod 750 .hg/store |
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
111 $ chmod 660 large |
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
112 $ echo change >> large |
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
113 $ hg commit -m change |
18723
e56f7cd8c67b
tests: don't rely on broken behaviour in test-largefiles-cache.t
Mads Kiilerich <madski@unity3d.com>
parents:
18461
diff
changeset
|
114 created new head |
16153
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
115 $ ../ls-l.py .hg/largefiles/e151b474069de4ca6898f67ce2f2a7263adf8fea |
05197f9fd1f3
largefiles: use repo.store.createmode for new files in .hg/largefiles
Martin Geisler <mg@aragost.com>
parents:
15916
diff
changeset
|
116 640 |
16154
9b072a5f8f92
largefiles: respect store.createmode in basestore.get
Martin Geisler <mg@aragost.com>
parents:
16153
diff
changeset
|
117 |
9b072a5f8f92
largefiles: respect store.createmode in basestore.get
Martin Geisler <mg@aragost.com>
parents:
16153
diff
changeset
|
118 Test permission of with files in .hg/largefiles created by update: |
9b072a5f8f92
largefiles: respect store.createmode in basestore.get
Martin Geisler <mg@aragost.com>
parents:
16153
diff
changeset
|
119 |
9b072a5f8f92
largefiles: respect store.createmode in basestore.get
Martin Geisler <mg@aragost.com>
parents:
16153
diff
changeset
|
120 $ cd ../mirror |
9b072a5f8f92
largefiles: respect store.createmode in basestore.get
Martin Geisler <mg@aragost.com>
parents:
16153
diff
changeset
|
121 $ rm -r "$USERCACHE" .hg/largefiles # avoid links |
9b072a5f8f92
largefiles: respect store.createmode in basestore.get
Martin Geisler <mg@aragost.com>
parents:
16153
diff
changeset
|
122 $ chmod 750 .hg/store |
9b072a5f8f92
largefiles: respect store.createmode in basestore.get
Martin Geisler <mg@aragost.com>
parents:
16153
diff
changeset
|
123 $ hg pull ../src --update -q |
9b072a5f8f92
largefiles: respect store.createmode in basestore.get
Martin Geisler <mg@aragost.com>
parents:
16153
diff
changeset
|
124 $ ../ls-l.py .hg/largefiles/e151b474069de4ca6898f67ce2f2a7263adf8fea |
9b072a5f8f92
largefiles: respect store.createmode in basestore.get
Martin Geisler <mg@aragost.com>
parents:
16153
diff
changeset
|
125 640 |
16155
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
126 |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
127 Test permission of files created by push: |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
128 |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
129 $ hg serve -R ../src -d -p $HGPORT --pid-file hg.pid \ |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
130 > --config "web.allow_push=*" --config web.push_ssl=no |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
131 $ cat hg.pid >> $DAEMON_PIDS |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
132 |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
133 $ echo change >> large |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
134 $ hg commit -m change |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
135 |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
136 $ rm -r "$USERCACHE" |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
137 |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
138 $ hg push -q http://localhost:$HGPORT/ |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
139 |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
140 $ ../ls-l.py ../src/.hg/largefiles/b734e14a0971e370408ab9bce8d56d8485e368a9 |
1b2b42e866be
largefiles: respect store.createmode and avoid extra file copy
Martin Geisler <mg@aragost.com>
parents:
16154
diff
changeset
|
141 640 |
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
16155
diff
changeset
|
142 |
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
16155
diff
changeset
|
143 $ cd .. |
16986
79902f7e27df
tests: convert some hghave unix-permissions to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
16928
diff
changeset
|
144 |
79902f7e27df
tests: convert some hghave unix-permissions to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
16928
diff
changeset
|
145 #endif |
23618
9dd5dfeaab4c
largefiles: fix a spurious missing file warning with 'remove -A' (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
21024
diff
changeset
|
146 |
9dd5dfeaab4c
largefiles: fix a spurious missing file warning with 'remove -A' (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
21024
diff
changeset
|
147 Test issue 4053 (remove --after on a deleted, uncommitted file shouldn't say |
24180
d8e0c591781c
spelling: fixes from proofreading of spell checker issues
Mads Kiilerich <madski@unity3d.com>
parents:
23619
diff
changeset
|
148 it is missing, but a remove on a nonexistent unknown file still should. Same |
23619
70afc58c32d3
largefiles: fix a spurious missing file warning with forget (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
23618
diff
changeset
|
149 for a forget.) |
23618
9dd5dfeaab4c
largefiles: fix a spurious missing file warning with 'remove -A' (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
21024
diff
changeset
|
150 |
9dd5dfeaab4c
largefiles: fix a spurious missing file warning with 'remove -A' (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
21024
diff
changeset
|
151 $ cd src |
9dd5dfeaab4c
largefiles: fix a spurious missing file warning with 'remove -A' (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
21024
diff
changeset
|
152 $ touch x |
9dd5dfeaab4c
largefiles: fix a spurious missing file warning with 'remove -A' (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
21024
diff
changeset
|
153 $ hg add x |
9dd5dfeaab4c
largefiles: fix a spurious missing file warning with 'remove -A' (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
21024
diff
changeset
|
154 $ mv x y |
9dd5dfeaab4c
largefiles: fix a spurious missing file warning with 'remove -A' (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
21024
diff
changeset
|
155 $ hg remove -A x y ENOENT |
9dd5dfeaab4c
largefiles: fix a spurious missing file warning with 'remove -A' (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
21024
diff
changeset
|
156 ENOENT: * (glob) |
9dd5dfeaab4c
largefiles: fix a spurious missing file warning with 'remove -A' (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
21024
diff
changeset
|
157 not removing y: file is untracked |
9dd5dfeaab4c
largefiles: fix a spurious missing file warning with 'remove -A' (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
21024
diff
changeset
|
158 [1] |
23619
70afc58c32d3
largefiles: fix a spurious missing file warning with forget (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
23618
diff
changeset
|
159 $ hg add y |
70afc58c32d3
largefiles: fix a spurious missing file warning with forget (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
23618
diff
changeset
|
160 $ mv y z |
70afc58c32d3
largefiles: fix a spurious missing file warning with forget (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
23618
diff
changeset
|
161 $ hg forget y z ENOENT |
70afc58c32d3
largefiles: fix a spurious missing file warning with forget (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
23618
diff
changeset
|
162 ENOENT: * (glob) |
70afc58c32d3
largefiles: fix a spurious missing file warning with forget (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
23618
diff
changeset
|
163 not removing z: file is already untracked |
70afc58c32d3
largefiles: fix a spurious missing file warning with forget (issue4053)
Matt Harbison <matt_harbison@yahoo.com>
parents:
23618
diff
changeset
|
164 [1] |
24631
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
165 |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
166 Largefiles are accessible from the share's store |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
167 $ cd .. |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
168 $ hg share -q src share_dst --config extensions.share= |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
169 $ hg -R share_dst update -r0 |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
170 getting changed largefiles |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
171 1 largefiles updated, 0 removed |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
172 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
173 |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
174 $ echo modified > share_dst/large |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
175 $ hg -R share_dst ci -m modified |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
176 created new head |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
177 |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
178 Only dirstate is in the local store for the share, and the largefile is in the |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
179 share source's local store. Avoid the extra largefiles added in the unix |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
180 conditional above. |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
181 $ hash=`hg -R share_dst cat share_dst/.hglf/large` |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
182 $ echo $hash |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
183 e2fb5f2139d086ded2cb600d5a91a196e76bf020 |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
184 |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
185 $ find share_dst/.hg/largefiles/* | sort |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
186 share_dst/.hg/largefiles/dirstate |
48169
1e98f9b5bc71
largefiles: add tr backup for largefilesdirstate
Pulkit Goyal <7895pulkit@gmail.com>
parents:
37439
diff
changeset
|
187 share_dst/.hg/largefiles/undo.backup.dirstate |
24631
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
188 |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
189 $ find src/.hg/largefiles/* | egrep "(dirstate|$hash)" | sort |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
190 src/.hg/largefiles/dirstate |
2a3f24786d09
largefiles: use the share source as the primary local store (issue4471)
Matt Harbison <matt_harbison@yahoo.com>
parents:
24180
diff
changeset
|
191 src/.hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020 |
48169
1e98f9b5bc71
largefiles: add tr backup for largefilesdirstate
Pulkit Goyal <7895pulkit@gmail.com>
parents:
37439
diff
changeset
|
192 src/.hg/largefiles/undo.backup.dirstate |
26822
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
193 |
29329
f359cdc91e21
largefiles: fix support for local largefiles while using share extension
Henrik Stuart <henriks@unity3d.com>
parents:
28887
diff
changeset
|
194 Verify that backwards compatibility is maintained for old storage layout |
f359cdc91e21
largefiles: fix support for local largefiles while using share extension
Henrik Stuart <henriks@unity3d.com>
parents:
28887
diff
changeset
|
195 $ mv src/.hg/largefiles/$hash share_dst/.hg/largefiles |
f359cdc91e21
largefiles: fix support for local largefiles while using share extension
Henrik Stuart <henriks@unity3d.com>
parents:
28887
diff
changeset
|
196 $ hg verify --quiet --lfa -R share_dst --config largefiles.usercache= |
f359cdc91e21
largefiles: fix support for local largefiles while using share extension
Henrik Stuart <henriks@unity3d.com>
parents:
28887
diff
changeset
|
197 |
26822
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
198 Inject corruption into the largefiles store and see how update handles that: |
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
199 |
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
200 $ cd src |
28065
6b1fc09c699a
update: change default destination to tipmost descendant (issue4673) (BC)
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
28029
diff
changeset
|
201 $ hg up -qC tip |
26822
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
202 $ cat large |
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
203 modified |
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
204 $ rm large |
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
205 $ cat .hglf/large |
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
206 e2fb5f2139d086ded2cb600d5a91a196e76bf020 |
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
207 $ mv .hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020 .. |
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
208 $ echo corruption > .hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020 |
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
209 $ hg up -C |
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
210 getting changed largefiles |
35393
4441705b7111
tests: remove (glob) annotations that were only for '\' matches
Matt Harbison <matt_harbison@yahoo.com>
parents:
34661
diff
changeset
|
211 large: data corruption in $TESTTMP/src/.hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020 with hash 6a7bb2556144babe3899b25e5428123735bb1e27 |
26823
45e8bd2f36f0
largefiles: check hash of files in the store before copying to working dir
Mads Kiilerich <madski@unity3d.com>
parents:
26822
diff
changeset
|
212 0 largefiles updated, 0 removed |
26822
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
213 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
32698
1b5c61d38a52
update: show the commit to which we updated in case of multiple heads (BC)
Pulkit Goyal <7895pulkit@gmail.com>
parents:
31766
diff
changeset
|
214 updated to "cd24c147f45c: modified" |
28887
71f9956074a3
test-largefiles: stabilize output for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
28878
diff
changeset
|
215 [12] other heads for branch "default" (re) |
26822
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
216 $ hg st |
26823
45e8bd2f36f0
largefiles: check hash of files in the store before copying to working dir
Mads Kiilerich <madski@unity3d.com>
parents:
26822
diff
changeset
|
217 ! large |
26822
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
218 ? z |
d881c072050a
largefiles: test coverage of handling of store corruption
Mads Kiilerich <madski@unity3d.com>
parents:
24631
diff
changeset
|
219 $ rm .hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020 |
26824
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
220 |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
221 #if serve |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
222 |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
223 Test coverage of error handling from putlfile: |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
224 |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
225 $ mkdir $TESTTMP/mirrorcache |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
226 $ hg serve -R ../mirror -d -p $HGPORT1 --pid-file hg.pid --config largefiles.usercache=$TESTTMP/mirrorcache |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
227 $ cat hg.pid >> $DAEMON_PIDS |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
228 |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
229 $ hg push http://localhost:$HGPORT1 -f --config files.usercache=nocache |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
230 pushing to http://localhost:$HGPORT1/ |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
231 searching for changes |
35393
4441705b7111
tests: remove (glob) annotations that were only for '\' matches
Matt Harbison <matt_harbison@yahoo.com>
parents:
34661
diff
changeset
|
232 abort: remotestore: could not open file $TESTTMP/src/.hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020: HTTP Error 403: ssl required |
26824
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
233 [255] |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
234 |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
235 $ rm .hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020 |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
236 |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
237 Test coverage of 'missing from store': |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
238 |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
239 $ hg serve -R ../mirror -d -p $HGPORT2 --pid-file hg.pid --config largefiles.usercache=$TESTTMP/mirrorcache --config "web.allow_push=*" --config web.push_ssl=no |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
240 $ cat hg.pid >> $DAEMON_PIDS |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
241 |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
242 $ hg push http://localhost:$HGPORT2 -f --config largefiles.usercache=nocache |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
243 pushing to http://localhost:$HGPORT2/ |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
244 searching for changes |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
245 abort: largefile e2fb5f2139d086ded2cb600d5a91a196e76bf020 missing from store (needs to be uploaded) |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
246 [255] |
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
247 |
28878
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
248 Verify that --lfrev controls which revisions are checked for largefiles to push |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
249 |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
250 $ hg push http://localhost:$HGPORT2 -f --config largefiles.usercache=nocache --lfrev tip |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
251 pushing to http://localhost:$HGPORT2/ |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
252 searching for changes |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
253 abort: largefile e2fb5f2139d086ded2cb600d5a91a196e76bf020 missing from store (needs to be uploaded) |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
254 [255] |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
255 |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
256 $ hg push http://localhost:$HGPORT2 -f --config largefiles.usercache=nocache --lfrev null |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
257 pushing to http://localhost:$HGPORT2/ |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
258 searching for changes |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
259 remote: adding changesets |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
260 remote: adding manifests |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
261 remote: adding file changes |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
262 remote: added 1 changesets with 1 changes to 1 files (+1 heads) |
a75c9665ef06
largefiles: introduce push --lfrev to control which revisions are pushed
Mads Kiilerich <madski@unity3d.com>
parents:
28065
diff
changeset
|
263 |
26824
30db531e4146
largefiles: test coverage of error handling from putlfile
Mads Kiilerich <madski@unity3d.com>
parents:
26823
diff
changeset
|
264 #endif |