equal
deleted
inserted
replaced
1516 def checkvfs(path, mode=None): |
1516 def checkvfs(path, mode=None): |
1517 ret = origfunc(path, mode=mode) |
1517 ret = origfunc(path, mode=mode) |
1518 repo = rref() |
1518 repo = rref() |
1519 if ( |
1519 if ( |
1520 repo is None |
1520 repo is None |
1521 or not util.safehasattr(repo, b'_wlockref') |
1521 or not util.safehasattr(repo, '_wlockref') |
1522 or not util.safehasattr(repo, b'_lockref') |
1522 or not util.safehasattr(repo, '_lockref') |
1523 ): |
1523 ): |
1524 return |
1524 return |
1525 if mode in (None, b'r', b'rb'): |
1525 if mode in (None, b'r', b'rb'): |
1526 return |
1526 return |
1527 if path.startswith(repo.path): |
1527 if path.startswith(repo.path): |