44 $ rm -rf main/sub1 |
44 $ rm -rf main/sub1 |
45 $ rm -rf sub1/sub2 |
45 $ rm -rf sub1/sub2 |
46 |
46 |
47 Clone main |
47 Clone main |
48 |
48 |
49 $ hg clone main cloned |
49 $ hg --config extensions.largefiles= clone main cloned |
50 updating to branch default |
50 updating to branch default |
51 cloning subrepo sub1 from $TESTTMP/sub1 |
51 cloning subrepo sub1 from $TESTTMP/sub1 |
52 cloning subrepo sub1/sub2 from $TESTTMP/sub2 (glob) |
52 cloning subrepo sub1/sub2 from $TESTTMP/sub2 (glob) |
53 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
53 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
54 |
|
55 Largefiles is NOT enabled in the clone if the source repo doesn't require it |
|
56 $ cat cloned/.hg/hgrc |
|
57 # example repository config (see "hg help config" for more info) |
|
58 [paths] |
|
59 default = $TESTTMP/main (glob) |
|
60 |
|
61 # path aliases to other clones of this repo in URLs or filesystem paths |
|
62 # (see "hg help config.paths" for more info) |
|
63 # |
|
64 # default-push = ssh://jdoe@example.net/hg/jdoes-fork |
|
65 # my-fork = ssh://jdoe@example.net/hg/jdoes-fork |
|
66 # my-clone = /home/jdoe/jdoes-clone |
|
67 |
|
68 [ui] |
|
69 # name and email (local to this repository, optional), e.g. |
|
70 # username = Jane Doe <jdoe@example.com> |
54 |
71 |
55 Checking cloned repo ids |
72 Checking cloned repo ids |
56 |
73 |
57 $ printf "cloned " ; hg id -R cloned |
74 $ printf "cloned " ; hg id -R cloned |
58 cloned 7f491f53a367 tip |
75 cloned 7f491f53a367 tip |
317 ../archive_lf/sub1 |
334 ../archive_lf/sub1 |
318 ../archive_lf/sub1/sub2 |
335 ../archive_lf/sub1/sub2 |
319 ../archive_lf/sub1/sub2/large.bin |
336 ../archive_lf/sub1/sub2/large.bin |
320 $ rm -rf ../archive_lf |
337 $ rm -rf ../archive_lf |
321 |
338 |
|
339 The local repo enables largefiles if a largefiles repo is cloned |
|
340 $ hg showconfig extensions |
|
341 abort: repository requires features unknown to this Mercurial: largefiles! |
|
342 (see http://mercurial.selenic.com/wiki/MissingRequirement for more information) |
|
343 [255] |
|
344 $ hg --config extensions.largefiles= clone -qU . ../lfclone |
|
345 $ cat ../lfclone/.hg/hgrc |
|
346 # example repository config (see "hg help config" for more info) |
|
347 [paths] |
|
348 default = $TESTTMP/cloned (glob) |
|
349 |
|
350 # path aliases to other clones of this repo in URLs or filesystem paths |
|
351 # (see "hg help config.paths" for more info) |
|
352 # |
|
353 # default-push = ssh://jdoe@example.net/hg/jdoes-fork |
|
354 # my-fork = ssh://jdoe@example.net/hg/jdoes-fork |
|
355 # my-clone = /home/jdoe/jdoes-clone |
|
356 |
|
357 [ui] |
|
358 # name and email (local to this repository, optional), e.g. |
|
359 # username = Jane Doe <jdoe@example.com> |
|
360 |
|
361 [extensions] |
|
362 largefiles= |
|
363 |
322 Find an exact match to a standin (should archive nothing) |
364 Find an exact match to a standin (should archive nothing) |
323 $ hg --config extensions.largefiles= archive -S -I 'sub/sub2/.hglf/large.bin' ../archive_lf |
365 $ hg --config extensions.largefiles= archive -S -I 'sub/sub2/.hglf/large.bin' ../archive_lf |
324 $ find ../archive_lf 2> /dev/null | sort |
366 $ find ../archive_lf 2> /dev/null | sort |
325 |
367 |
326 $ cat >> $HGRCPATH <<EOF |
368 $ cat >> $HGRCPATH <<EOF |