Mercurial > hg > mercurial-source
diff tests/test-pathconflicts-basic.t @ 35335:33c8a6837181
merge: check for path conflicts when updating (issue5628)
When updating to a new revision, check for path conflicts caused by unknown
files in the working directory, and handle these by backing up the file or
directory and replacing it.
Differential Revision: https://phab.mercurial-scm.org/D781
author | Mark Thomas <mbthomas@fb.com> |
---|---|
date | Mon, 02 Oct 2017 14:05:30 -0700 (2017-10-02) |
parents | 34c8080d12ac |
children | 0217d66846f7 |
line wrap: on
line diff
--- a/tests/test-pathconflicts-basic.t +++ b/tests/test-pathconflicts-basic.t @@ -37,7 +37,8 @@ $ mkdir a $ echo 3 > a/b $ hg up file - abort: *: '$TESTTMP/repo/a' (glob) + a: untracked file differs + abort: untracked files in working directory differ from files in requested revision [255] $ hg up --clean file abort: *: '$TESTTMP/repo/a' (glob) @@ -53,13 +54,9 @@ $ hg up -q 0 $ echo untracked > a $ hg up --config merge.checkunknown=warn dir - abort: *: '$TESTTMP/repo/a/b' (glob) - [255] - -Repo is in a very bad state now - recover manually - - $ rm -f a - $ hg up -q --clean 0 + a: replacing untracked file + 1 files updated, 0 files merged, 0 files removed, 0 files unresolved + (activating bookmark dir) Basic clean update - local directory conflicts with changed remote file