comparison tests/test-largefiles-misc.t @ 26944:ef5bab63af85

largefiles: specify where .orig files are kept This patch let's the user specify where .orig files are kept using the cmdutil.origpath function
author Christian Delahousse <cdelahousse@fb.com>
date Tue, 10 Nov 2015 15:08:56 -0800
parents 4b0fc75f9403
children b54b520a24c2
comparison
equal deleted inserted replaced
26943:263edb591b72 26944:ef5bab63af85
507 $ hg cat anotherlarge 507 $ hg cat anotherlarge
508 anotherlarge 508 anotherlarge
509 $ hg revert anotherlarge 509 $ hg revert anotherlarge
510 $ hg st 510 $ hg st
511 ? sub/anotherlarge.orig 511 ? sub/anotherlarge.orig
512
513 Test orig files go where we want them
514 $ echo moremore >> anotherlarge
515 $ hg revert anotherlarge -v --config 'ui.origbackuppath=.hg/origbackups'
516 creating directory: $TESTTMP/addrm2/.hg/origbackups/.hglf/sub
517 saving current version of ../.hglf/sub/anotherlarge as $TESTTMP/addrm2/.hg/origbackups/.hglf/sub/anotherlarge.orig
518 reverting ../.hglf/sub/anotherlarge (glob)
519 creating directory: $TESTTMP/addrm2/.hg/origbackups/sub
520 found 90c622cf65cebe75c5842f9136c459333faf392e in store
521 found 90c622cf65cebe75c5842f9136c459333faf392e in store
522 $ ls ../.hg/origbackups/sub
523 anotherlarge.orig
512 $ cd .. 524 $ cd ..
513 525
514 Test glob logging from the root dir 526 Test glob logging from the root dir
515 $ hg log glob:**another* 527 $ hg log glob:**another*
516 changeset: 1:9627a577c5e9 528 changeset: 1:9627a577c5e9