Comments
Patch
@@ -118,7 +118,9 @@
entry.remove();
}
Entry::Vacant(_) => {
- return Err(DirstateMapError::PathNotFound(path.to_owned()))
+ return Err(DirstateMapError::PathNotFound(
+ path.to_owned(),
+ ))
}
};
@@ -53,6 +53,8 @@
stringutil,
)
+rustdirs = policy.importrust('dirstate', 'Dirs')
+
base85 = policy.importmod(r'base85')
osutil = policy.importmod(r'osutil')
parsers = policy.importmod(r'parsers')
@@ -3204,6 +3206,9 @@
if safehasattr(parsers, 'dirs'):
dirs = parsers.dirs
+if rustdirs is not None:
+ dirs = rustdirs
+
def finddirs(path):
pos = path.rfind('/')
while pos != -1: