##// END OF EJS Templates
merge: don't check for unknown files in IMM...
Phil Cohen -
r35289:5db3c748 default
parent child Browse files
Show More
@@ -646,6 +646,14 b' def _getcheckunknownconfig(repo, section'
646 646 return config
647 647
648 648 def _checkunknownfile(repo, wctx, mctx, f, f2=None):
649 if wctx.isinmemory():
650 # Nothing to do in IMM because nothing in the "working copy" can be an
651 # unknown file.
652 #
653 # Note that we should bail out here, not in ``_checkunknownfiles()``,
654 # because that function does other useful work.
655 return False
656
649 657 if f2 is None:
650 658 f2 = f
651 659 return (repo.wvfs.audit.check(f)
@@ -674,7 +682,11 b' class _unknowndirschecker(object):'
674 682 # updated with any new dirs that are checked and found to be absent.
675 683 self._missingdircache = set()
676 684
677 def __call__(self, repo, f):
685 def __call__(self, repo, wctx, f):
686 if wctx.isinmemory():
687 # Nothing to do in IMM for the same reason as ``_checkunknownfile``.
688 return False
689
678 690 # Check for path prefixes that exist as unknown files.
679 691 for p in reversed(list(util.finddirs(f))):
680 692 if p in self._missingdircache:
@@ -726,7 +738,7 b' def _checkunknownfiles(repo, wctx, mctx,'
726 738 if _checkunknownfile(repo, wctx, mctx, f):
727 739 fileconflicts.add(f)
728 740 elif pathconfig and f not in wctx:
729 path = checkunknowndirs(repo, f)
741 path = checkunknowndirs(repo, wctx, f)
730 742 if path is not None:
731 743 pathconflicts.add(path)
732 744 elif m == 'dg':
General Comments 0
You need to be logged in to leave comments. Login now