Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
hg-git
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
This instance will be upgraded to Heptapod 17.9.2 on 2025-04-24 between 17:00 and 18:00 UTC+2
Show more breadcrumbs
mercurial
hg-git
Commits
3f3d43c6
Commit
3f3d43c6
authored
4 years ago
by
Dan Villiom Podlaski Christiansen
Browse files
Options
Downloads
Patches
Plain Diff
ignore: suppress rust status
parent
589f9b04
No related branches found
No related tags found
1 merge request
!84
Fix ignore with Rust & share
Pipeline
#17365
passed
4 years ago
Stage: current
Stage: compat
Stage: upcoming
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hggit/gitdirstate.py
+9
-0
9 additions, 0 deletions
hggit/gitdirstate.py
with
9 additions
and
0 deletions
hggit/gitdirstate.py
+
9
−
0
View file @
3f3d43c6
...
...
@@ -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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment