Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LarvaTagger.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nyx
LarvaTagger.jl
Commits
d701a755
Commit
d701a755
authored
2 years ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
#55
: _large-suffixed tags detected together with their suffix-free variants
parent
411abf2a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#89709
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/files.jl
+8
-2
8 additions, 2 deletions
src/files.jl
with
8 additions
and
2 deletions
src/files.jl
+
8
−
2
View file @
d701a755
...
@@ -158,13 +158,19 @@ function tryopenfile(controller, path; reload::Bool=false)
...
@@ -158,13 +158,19 @@ function tryopenfile(controller, path; reload::Bool=false)
)
)
fallback_color
=
theme
[
:
LarvaPlot
][
:
fallback_color
]
fallback_color
=
theme
[
:
LarvaPlot
][
:
fallback_color
]
existingtags
=
records
.
tags
existingtags
=
records
.
tags
# following issue #55, we need to identify situations where _large-suffixed
# tags are found together with their suffix-free variants
apply_default_convention
=
false
apply_default_convention
=
false
for
tag
in
existingtags
for
tag
in
existingtags
if
tag
in
keys
(
default_convention
)
if
tag
in
keys
(
default_convention
)
apply_default_convention
=
true
variant
,
suffix
=
rsplit
(
string
(
tag
),
'_'
;
limit
=
2
)
break
if
suffix
==
"large"
&&
Symbol
(
variant
)
in
existingtags
apply_default_convention
=
true
break
end
end
end
end
end
#
for
tag
in
existingtags
for
tag
in
existingtags
active′
=
tag
in
keys
(
default_convention
)
active′
=
tag
in
keys
(
default_convention
)
tag′
=
active′
?
tag
:
get
(
related_tags
,
tag
,
tag
)
tag′
=
active′
?
tag
:
get
(
related_tags
,
tag
,
tag
)
...
...
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