Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
tci-gateway-module
Grpc
Commits
92a85558
Commit
92a85558
authored
7 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Fix argument ordering
parent
7976bdd0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/mkowners/mkowners.py
+3
-4
3 additions, 4 deletions
tools/mkowners/mkowners.py
with
3 additions
and
4 deletions
tools/mkowners/mkowners.py
+
3
−
4
View file @
92a85558
...
@@ -152,11 +152,9 @@ def expand_directives(root, directives):
...
@@ -152,11 +152,9 @@ def expand_directives(root, directives):
sorted_globs
=
sorted
(
globs
.
keys
(),
sorted_globs
=
sorted
(
globs
.
keys
(),
key
=
lambda
g
:
len
(
git_glob
(
os
.
path
.
join
(
root
,
g
))),
key
=
lambda
g
:
len
(
git_glob
(
os
.
path
.
join
(
root
,
g
))),
reverse
=
True
)
reverse
=
True
)
print
(
'
sorted_globs:
'
,
sorted_globs
)
out_globs
=
collections
.
OrderedDict
()
out_globs
=
collections
.
OrderedDict
()
for
glob_add
in
sorted_globs
:
for
glob_add
in
sorted_globs
:
who_add
=
globs
[
glob_add
]
who_add
=
globs
[
glob_add
]
print
(
'
add:
'
,
glob_add
,
who_add
)
pre_items
=
[
i
for
i
in
out_globs
.
items
()]
pre_items
=
[
i
for
i
in
out_globs
.
items
()]
out_globs
[
glob_add
]
=
who_add
.
copy
()
out_globs
[
glob_add
]
=
who_add
.
copy
()
for
glob_have
,
who_have
in
pre_items
:
for
glob_have
,
who_have
in
pre_items
:
...
@@ -166,7 +164,7 @@ def expand_directives(root, directives):
...
@@ -166,7 +164,7 @@ def expand_directives(root, directives):
if
intersect
:
if
intersect
:
for
f
in
files_add
:
for
f
in
files_add
:
if
f
not
in
intersect
:
if
f
not
in
intersect
:
out_globs
[
os
.
path
.
relpath
(
root
,
f
)]
=
who_add
out_globs
[
os
.
path
.
relpath
(
f
,
start
=
root
)]
=
who_add
for
who
in
who_have
:
for
who
in
who_have
:
if
who
not
in
out_globs
[
glob_add
]:
if
who
not
in
out_globs
[
glob_add
]:
out_globs
[
glob_add
].
append
(
who
)
out_globs
[
glob_add
].
append
(
who
)
...
@@ -186,7 +184,8 @@ def add_parent_to_globs(parent, globs, globs_dir):
...
@@ -186,7 +184,8 @@ def add_parent_to_globs(parent, globs, globs_dir):
if
intersect
:
if
intersect
:
for
f
in
files_child
:
for
f
in
files_child
:
if
f
not
in
intersect
:
if
f
not
in
intersect
:
globs
[
f
]
=
gglob_who_orig
.
copy
()
who
=
gglob_who_orig
.
copy
()
globs
[
os
.
path
.
relpath
(
f
,
start
=
globs_dir
)]
=
who
for
who
in
oglob_who
:
for
who
in
oglob_who
:
if
who
not
in
gglob_who
:
if
who
not
in
gglob_who
:
gglob_who
.
append
(
who
)
gglob_who
.
append
(
who
)
...
...
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