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
6e2cf6b6
"src/objective-c/tests/RxLibraryUnitTests.m" did not exist on "d1a8cc082acac3a01defa365b1ae98bc40c5ea3a"
Commit
6e2cf6b6
authored
8 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Update tool
parent
353729a8
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/distrib/check_copyright.py
+2
-18
2 additions, 18 deletions
tools/distrib/check_copyright.py
with
2 additions
and
18 deletions
tools/distrib/check_copyright.py
+
2
−
18
View file @
6e2cf6b6
#!/usr/bin/env python2.7
# Copyright 2015
-2016
, Google Inc.
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -155,23 +155,7 @@ for filename in filename_list:
continue
m
=
re
.
search
(
re_license
,
text
)
if
m
:
gdict
=
m
.
groupdict
()
last_modified
=
int
(
subprocess
.
check_output
(
'
git log -1 --format=
"
%ad
"
--date=short --
'
+
filename
,
shell
=
True
)[
0
:
4
])
latest_claimed
=
int
(
gdict
[
'
last_year
'
])
if
last_modified
>
latest_claimed
:
print
'
%s modified %d but copyright only extends to %d
'
%
(
filename
,
last_modified
,
latest_claimed
)
ok
=
False
if
args
.
fix
:
span_start
,
span_end
=
m
.
span
(
2
)
if
not
gdict
[
'
first_year
'
]:
# prepend the old year to the current one.
text
=
'
{}-{}{}
'
.
format
(
text
[:
span_end
],
last_modified
,
text
[
span_end
:])
else
:
# already a year range
# simply update the last year
text
=
'
{}{}{}
'
.
format
(
text
[:
span_start
],
last_modified
,
text
[
span_end
:])
save
(
filename
,
text
)
print
'
Fixed!
'
ok
=
True
pass
elif
'
DO NOT EDIT
'
not
in
text
and
'
AssemblyInfo.cs
'
not
in
filename
and
filename
!=
'
src/boringssl/err_data.c
'
:
log
(
1
,
'
copyright missing
'
,
filename
)
ok
=
False
...
...
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