Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: update-copyright/README.md

Issue 29459580: Issue 5250 - Add copyright update script (Closed) Base URL: https://hg.adblockplus.org/codingtools
Patch Set: Minor formatting fixes Created July 4, 2017, 3:13 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # update-copyright
2
3 This script accepts a URL to a mercurial index as input. It then:
4 * makes a local copy of each repo
5 * updates the copyright information on every file to the current year
6 * attempts to push the updates
7
8 If a user doesn't have permission to push to a repo, the script will make a loca l `repo-name.patch` file to submit later.
Sebastian Noack 2017/07/05 18:55:21 We always wrap code before 80 characters. While te
rosie 2017/07/07 15:55:47 Done.
rosie 2017/07/07 16:44:00 There are three places where the raw text is over
Sebastian Noack 2017/07/07 16:58:29 I guess that is fine.
rosie 2017/07/17 10:10:06 Done.
9
10 You are free to use this for other projects but please keep in mind that we make no stability guarantees whatsoever and might change functionality any time.
11
12 ## How to use
13
14 To update the copyright on all the repos indexed at [https://hg.adblockplus.org/ ](https://hg.adblockplus.org/), you can use the accompanying shell script, e.g.:
15
16 ./run_update_copyright.sh
17
18 To run the script elsewhere, you must specify the URL for a Mercurial index site to scrape, e.g.:
19
20 python3 update_copyright.py -u https://hg.example.com/
21
22 You may also specify a base URL of a remote repo to push to, if it is different than the base URL of the index page, e.g.:
23
24 python3 update_copyright.py -u https://hg.example.com/ -p ssh://user@hg.exam ple.com/
25
26 ## Testing
27
28 Testing can be run via [tox](http://tox.readthedocs.org/).
OLDNEW

Powered by Google App Engine
This is Rietveld