Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 # update-copyright # | 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 | 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. | 3 This script will attempt to update the eyeo copyright information on each |
Vasily Kuznetsov
2017/07/04 15:02:40
Another mostly consistency-related point: the long
rosie
2017/07/04 15:14:02
Done.
| |
4 page of each repo listed on a Mercurial index page. | |
5 By default, running the script will scrape [https://hg.adblockplus.org/](https:/ /hg.adblockplus.org/), | |
6 and then for each repo, it will: | |
7 * make a local copy of the repo | |
8 * update the copyright information on each file to the current year | |
9 * attempt to push the updates to `ssh://hg@hg.adblockplus.org/` | |
4 | 10 |
5 ## How to use ## | 11 If a user doesn't have permission to push to a repo, the script will make a |
12 local `repo-name.patch` file to submit later. | |
6 | 13 |
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.: | 14 You are free to use this for other projects but please keep in mind that we |
15 make no stability guarantees whatsoever and might change functionality any | |
16 time. | |
8 | 17 |
9 ./run_update_copyright.sh | 18 ## How to use |
10 | 19 |
11 To run the script elsewhere, you must specify the URL for a Mercurial index site to scrape, e.g.: | 20 To update the copyright on all the repos indexed at [https://hg.adblockplus.org/ ](https://hg.adblockplus.org/), |
21 simply run the script, e.g.: | |
12 | 22 |
13 python3 update_copyright.py -u https://hg.example.com/ | 23 ./update_copyright.py |
14 | 24 |
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.: | 25 To run the script elsewhere, you must specify the URL for a Mercurial index |
26 site to scrape, and the location of the base URL to push to, e.g.: | |
16 | 27 |
17 python3 update_copyright.py -u https://hg.example.com/ -p ssh://user@hg.exam ple.com/ | 28 ./update_copyright.py -u https://hg.example.com/ -p ssh://user@hg.example.co m/ |
18 | 29 |
19 ## Testing ## | 30 ## Testing |
20 | 31 |
21 Testing can be run via [tox](http://tox.readthedocs.org/). | 32 Testing can be run via [tox](http://tox.readthedocs.org/). |
LEFT | RIGHT |