##// 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 return config
646 return config
647
647
648 def _checkunknownfile(repo, wctx, mctx, f, f2=None):
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 if f2 is None:
657 if f2 is None:
650 f2 = f
658 f2 = f
651 return (repo.wvfs.audit.check(f)
659 return (repo.wvfs.audit.check(f)
@@ -674,7 +682,11 b' class _unknowndirschecker(object):'
674 # updated with any new dirs that are checked and found to be absent.
682 # updated with any new dirs that are checked and found to be absent.
675 self._missingdircache = set()
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 # Check for path prefixes that exist as unknown files.
690 # Check for path prefixes that exist as unknown files.
679 for p in reversed(list(util.finddirs(f))):
691 for p in reversed(list(util.finddirs(f))):
680 if p in self._missingdircache:
692 if p in self._missingdircache:
@@ -726,7 +738,7 b' def _checkunknownfiles(repo, wctx, mctx,'
726 if _checkunknownfile(repo, wctx, mctx, f):
738 if _checkunknownfile(repo, wctx, mctx, f):
727 fileconflicts.add(f)
739 fileconflicts.add(f)
728 elif pathconfig and f not in wctx:
740 elif pathconfig and f not in wctx:
729 path = checkunknowndirs(repo, f)
741 path = checkunknowndirs(repo, wctx, f)
730 if path is not None:
742 if path is not None:
731 pathconflicts.add(path)
743 pathconflicts.add(path)
732 elif m == 'dg':
744 elif m == 'dg':
General Comments 0
You need to be logged in to leave comments. Login now