comparison tests/test-largefiles-misc.t @ 34158:9e4f82bc2b0b

scmutil: don't append .orig to backups in origbackuppath (BC) When ui.origbackuppath is set, .orig files are stored outside of the working copy, however they still have a .orig suffix appended to them. This can cause unexpected conflicts, particularly when tracked files or directories have .orig at the end. This change removes the .orig suffix from files stored in an out-of-tree origbackuppath. Test Plan: Update and run unit tests. Differential Revision: https://phab.mercurial-scm.org/D679
author Mark Thomas <mbthomas@fb.com>
date Mon, 11 Sep 2017 17:49:49 +0000
parents 6d88468d435b
children eb586ed5d8ce
comparison
equal deleted inserted replaced
34157:24bf823377fc 34158:9e4f82bc2b0b
526 526
527 Test orig files go where we want them 527 Test orig files go where we want them
528 $ echo moremore >> anotherlarge 528 $ echo moremore >> anotherlarge
529 $ hg revert anotherlarge -v --config 'ui.origbackuppath=.hg/origbackups' 529 $ hg revert anotherlarge -v --config 'ui.origbackuppath=.hg/origbackups'
530 creating directory: $TESTTMP/addrm2/.hg/origbackups/.hglf/sub (glob) 530 creating directory: $TESTTMP/addrm2/.hg/origbackups/.hglf/sub (glob)
531 saving current version of ../.hglf/sub/anotherlarge as $TESTTMP/addrm2/.hg/origbackups/.hglf/sub/anotherlarge.orig (glob) 531 saving current version of ../.hglf/sub/anotherlarge as $TESTTMP/addrm2/.hg/origbackups/.hglf/sub/anotherlarge (glob)
532 reverting ../.hglf/sub/anotherlarge (glob) 532 reverting ../.hglf/sub/anotherlarge (glob)
533 creating directory: $TESTTMP/addrm2/.hg/origbackups/sub (glob) 533 creating directory: $TESTTMP/addrm2/.hg/origbackups/sub (glob)
534 found 90c622cf65cebe75c5842f9136c459333faf392e in store 534 found 90c622cf65cebe75c5842f9136c459333faf392e in store
535 found 90c622cf65cebe75c5842f9136c459333faf392e in store 535 found 90c622cf65cebe75c5842f9136c459333faf392e in store
536 $ ls ../.hg/origbackups/sub 536 $ ls ../.hg/origbackups/sub
537 anotherlarge.orig 537 anotherlarge
538 $ cd .. 538 $ cd ..
539 539
540 Test glob logging from the root dir 540 Test glob logging from the root dir
541 $ hg log glob:**another* 541 $ hg log glob:**another*
542 changeset: 1:9627a577c5e9 542 changeset: 1:9627a577c5e9