Kiln » largefiles » Unity
Clone URL:  

archive: cache largefiles for given revision before attempting to archive

Changeset dbd5edcfc99f

Parent 3d9fcccc0ee8

by Profile picture of User 521Andrew Pritchard <andrewp@fogcreek.com>

Changes to one file · Browse files at dbd5edcfc99f Showing diff from parent 3d9fcccc0ee8 Diff from another changeset...

Change 1 of 1 Show Entire File tests/​test-archive-r.t Stacked
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@@ -0,0 +1,33 @@
+Setup + $ export LARGEFILES='--config extensions.largefiles=$TESTDIR/..' + $ export LHG="hg $LARGEFILES" + +Make a repo with a few largefile revisions + $ $LHG init r1 + $ cd r1 + $ echo c1 > f1 + $ echo c2 > f2 + $ echo c3 > f3 + $ $LHG add --large f1 f3 + $ $LHG add f2 + $ $LHG ci -m 'add files' + $ echo c1:2 > f1 + $ $LHG ci -m 'modify largefiles' + $ echo c3:2 > f3 + $ $LHG ci -m 'modify largefiles again' + $ cd .. + +Clone it and archive when needed largefiles are not cached + $ $LHG clone r1 r2 + updating to branch default + 3 files updated, 0 files merged, 0 files removed, 0 files unresolved + getting changed largefiles + 2 big files updated, 0 removed + $ $LHG -R r2 archive -r 0 ../archive0 + $ cd ../archive0 + $ cat f1 + c1 + $ cat f2 + c2 + $ cat f3 + c3