Message174810
| Author |
ncoghlan |
| Recipients |
ezio.melotti, ncoghlan |
| Date |
2012年11月04日.15:04:10 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1352041451.32.0.465920697634.issue16405@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Setting up the same commit checks locally that the main repo enforces for incoming patch sets can save a great deal of frustration with the server rejecting "hg push" for changes (this can be especially frustrating if you have already merged changes across branches).
The committer section of the devguide [1] should explain how to:
1. Check out the hooks repo from hg.python.org
2. Configure the whitespace checking hook by adding this to hgrc for the relevant repo(s) (adjusting the path appropriately for the checked out location of the hooks repo):
[hooks]
commit = python:~/devel/hg_hooks/checkwhitespace.py:check_whitespace_single
[1] http://docs.python.org/devguide/committing.html#committing-and-pushing-changes |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年11月04日 15:04:11 | ncoghlan | set | recipients:
+ ncoghlan, ezio.melotti |
| 2012年11月04日 15:04:11 | ncoghlan | set | messageid: <1352041451.32.0.465920697634.issue16405@psf.upfronthosting.co.za> |
| 2012年11月04日 15:04:11 | ncoghlan | link | issue16405 messages |
| 2012年11月04日 15:04:10 | ncoghlan | create |
|