##// END OF EJS Templates
tests: fix trailing whitespace
Matt Mackall -
r15478:f8a0c792 stable
parent child Browse files
Show More
@@ -1,70 +1,70 b''
1 1 Create user cache directory
2 2
3 3 $ USERCACHE=`pwd`/cache; export USERCACHE
4 4 $ cat <<EOF >> ${HGRCPATH}
5 5 > [extensions]
6 6 > hgext.largefiles=
7 7 > [largefiles]
8 8 > usercache=${USERCACHE}
9 9 > EOF
10 10 $ mkdir -p ${USERCACHE}
11 11
12 12 Create source repo, and commit adding largefile.
13 13
14 14 $ hg init src
15 15 $ cd src
16 16 $ echo large > large
17 17 $ hg add --large large
18 18 $ hg commit -m 'add largefile'
19 19 $ cd ..
20 20
21 21 Discard all cached largefiles in USERCACHE
22 22
23 23 $ rm -rf ${USERCACHE}
24 24
25 Create mirror repo, and pull from source without largefile:
25 Create mirror repo, and pull from source without largefile:
26 26 "pull" is used instead of "clone" for suppression of (1) updating to
27 27 tip (= cahcing largefile from source repo), and (2) recording source
28 28 repo as "default" path in .hg/hgrc.
29 29
30 30 $ hg init mirror
31 31 $ cd mirror
32 32 $ hg pull ../src
33 33 pulling from ../src
34 34 requesting all changes
35 35 adding changesets
36 36 adding manifests
37 37 adding file changes
38 38 added 1 changesets with 1 changes to 1 files
39 39 (run 'hg update' to get a working copy)
40 40
41 41 Update working directory to "tip", which requires largefile("large"),
42 42 but there is no cache file for it. So, hg must treat it as
43 43 "missing"(!) file.
44 44
45 45 $ hg update
46 46 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
47 47 getting changed largefiles
48 48 large: Can't get file locally
49 49 (no default or default-push path set in hgrc)
50 50 0 largefiles updated, 0 removed
51 51 $ hg status
52 52 ! large
53 53
54 54 Update working directory to null: this cleanup .hg/largefiles/dirstate
55 55
56 56 $ hg update null
57 57 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
58 58 getting changed largefiles
59 59 0 largefiles updated, 0 removed
60 60
61 61 Update working directory to tip, again.
62 62
63 63 $ hg update
64 64 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
65 65 getting changed largefiles
66 66 large: Can't get file locally
67 67 (no default or default-push path set in hgrc)
68 68 0 largefiles updated, 0 removed
69 69 $ hg status
70 70 ! large
General Comments 0
You need to be logged in to leave comments. Login now