##// END OF EJS Templates
merge with stable
Martin von Zweigbergk -
r39233:d859b487 merge default
parent child Browse files
Show More
@@ -1742,13 +1742,19 b' class workingfilectx(committablefilectx)'
1742 wvfs = self._repo.wvfs
1742 wvfs = self._repo.wvfs
1743 f = self._path
1743 f = self._path
1744 wvfs.audit(f)
1744 wvfs.audit(f)
1745 if wvfs.isdir(f) and not wvfs.islink(f):
1746 wvfs.rmtree(f, forcibly=True)
1747 if self._repo.ui.configbool('experimental', 'merge.checkpathconflicts'):
1745 if self._repo.ui.configbool('experimental', 'merge.checkpathconflicts'):
1746 # remove files under the directory as they should already be
1747 # warned and backed up
1748 if wvfs.isdir(f) and not wvfs.islink(f):
1749 wvfs.rmtree(f, forcibly=True)
1748 for p in reversed(list(util.finddirs(f))):
1750 for p in reversed(list(util.finddirs(f))):
1749 if wvfs.isfileorlink(p):
1751 if wvfs.isfileorlink(p):
1750 wvfs.unlink(p)
1752 wvfs.unlink(p)
1751 break
1753 break
1754 else:
1755 # don't remove files if path conflicts are not processed
1756 if wvfs.isdir(f) and not wvfs.islink(f):
1757 wvfs.removedirs(f)
1752
1758
1753 def setflags(self, l, x):
1759 def setflags(self, l, x):
1754 self._repo.wvfs.setflags(self._path, l, x)
1760 self._repo.wvfs.setflags(self._path, l, x)
@@ -30,23 +30,24 b" of the files in a commit we're updating "
30
30
31 $ mkdir b && touch b/nonempty
31 $ mkdir b && touch b/nonempty
32 $ hg up
32 $ hg up
33 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
33 abort: Directory not empty: '$TESTTMP/t/b'
34 [255]
34 $ hg ci
35 $ hg ci
35 nothing changed
36 abort: last update was interrupted
36 [1]
37 (use 'hg update' to get a consistent checkout)
38 [255]
37 $ hg sum
39 $ hg sum
38 parent: 1:b8bb4a988f25 tip
40 parent: 0:538afb845929
39 commit #1
41 commit #0
40 branch: default
42 branch: default
41 commit: (clean)
43 commit: 1 unknown (interrupted update)
42 update: (current)
44 update: 1 new changesets (update)
43 phases: 2 draft
45 phases: 2 draft
44
46
45 The following line is commented out because the file doesn't exist at the moment, and some OSes error out even with `rm -f`.
47 $ rm b/nonempty
46 $ rm b/nonempty
47
48
48 $ hg up
49 $ hg up
49 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
50 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
50 $ hg sum
51 $ hg sum
51 parent: 1:b8bb4a988f25 tip
52 parent: 1:b8bb4a988f25 tip
52 commit #1
53 commit #1
@@ -50,7 +50,10 b' make sure that this does not erase untra'
50 $ hg st
50 $ hg st
51 ? name/file
51 ? name/file
52 $ hg up 1
52 $ hg up 1
53 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
53 abort: Directory not empty: '$TESTTMP/r1/r2/name'
54 [255]
55 $ cat name/file
56 text
54 $ cd ..
57 $ cd ..
55
58
56 #if symlink
59 #if symlink
General Comments 0
You need to be logged in to leave comments. Login now