Skip to content
Snippets Groups Projects
Commit 3f3d43c6 authored by Dan Villiom Podlaski Christiansen's avatar Dan Villiom Podlaski Christiansen
Browse files

ignore: suppress rust status

parent 589f9b04
No related branches found
No related tags found
1 merge request!84Fix ignore with Rust & share
Pipeline #17365 passed
......@@ -245,3 +245,12 @@
for st in util.statfiles([join(i) for i in visit]):
results[nf()] = st
return results.keys()
def _rust_status(self, *args, **kwargs):
# intercept a rust status call and force the fallback,
# otherwise our patching won't work
if not os.path.lexists(self._join(b'.hgignore')):
self._ui.debug(b'suppressing rust status to intercept gitignores\n')
raise dirstate.rustmod.FallbackError
else:
return super(gitdirstate, self)._rust_status(*args, **kwargs)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment