1425 self._repo.dirstate.normallookup(dest) |
1425 self._repo.dirstate.normallookup(dest) |
1426 self._repo.dirstate.copy(source, dest) |
1426 self._repo.dirstate.copy(source, dest) |
1427 finally: |
1427 finally: |
1428 wlock.release() |
1428 wlock.release() |
1429 |
1429 |
|
1430 def match(self, pats=[], include=None, exclude=None, default='glob'): |
|
1431 r = self._repo |
|
1432 |
|
1433 # Only a case insensitive filesystem needs magic to translate user input |
|
1434 # to actual case in the filesystem. |
|
1435 if not util.checkcase(r.root): |
|
1436 return matchmod.icasefsmatcher(r.root, r.getcwd(), pats, include, |
|
1437 exclude, default, r.auditor, self) |
|
1438 return matchmod.match(r.root, r.getcwd(), pats, |
|
1439 include, exclude, default, |
|
1440 auditor=r.auditor, ctx=self) |
|
1441 |
1430 def _filtersuspectsymlink(self, files): |
1442 def _filtersuspectsymlink(self, files): |
1431 if not files or self._repo.dirstate._checklink: |
1443 if not files or self._repo.dirstate._checklink: |
1432 return files |
1444 return files |
1433 |
1445 |
1434 # Symlink placeholders may get non-symlink-like contents |
1446 # Symlink placeholders may get non-symlink-like contents |