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: Clean up comments, ReadMe, formatting Created July 4, 2017, 1:38 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 #
Vasily Kuznetsov 2017/07/04 15:02:40 In general we don't add # at ends of headings in t
rosie 2017/07/04 15:14:02 Done.
2
3 This script accepts a URL to a mercurial index as input. It then makes a local c opy of each repo, updates the copyright information on every file to the current year, then attempts to push the updates. If a user doesn't have permission to p ush to a repo, the script will make a local `repo-name.patch` file to submit lat er. You are free to use it for other projects but please keep in mind that we ma ke no stability guarantees whatsoever and might change functionality any time.
Vasily Kuznetsov 2017/07/04 15:02:40 Another mostly consistency-related point: the long
rosie 2017/07/04 15:14:02 Done.
4
5 ## How to use ##
6
7 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.:
8
9 ./run_update_copyright.sh
10
11 To run the script elsewhere, you must specify the URL for a Mercurial index site to scrape, e.g.:
12
13 python3 update_copyright.py -u https://hg.example.com/
14
15 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.:
16
17 python3 update_copyright.py -u https://hg.example.com/ -p ssh://user@hg.exam ple.com/
18
19 ## Testing ##
20
21 Testing can be run via [tox](http://tox.readthedocs.org/).
OLDNEW

Powered by Google App Engine
This is Rietveld