fanboy-adblock/docs/hg-howto.txt

79 lines
2.5 KiB
Plaintext
Raw Normal View History

2011-12-28 23:17:37 +13:00
Tools required
--------------
2010-01-16 19:52:42 +13:00
Activeperl (http://www.activestate.com/activeperl/)
Mercurial (http://mercurial.selenic.com)
2011-12-29 15:55:21 +13:00
Text Editor (http://www.pspad.com or http://notepad-plus-plus.org/)
2010-01-16 19:52:42 +13:00
2011-12-28 23:17:37 +13:00
Installation of Tools
---------------------
2010-01-16 19:52:42 +13:00
1) Install Activeperl
2) Install Mercurial, all defaults during install active
2011-12-29 15:55:21 +13:00
3) Install your chosen Text editor
2011-12-28 23:17:37 +13:00
2010-06-20 16:39:21 +12:00
2011-12-28 23:17:37 +13:00
Setting up Googlecode Login
---------------------------
4) Open the command prompt,
4a) cd %USERPROFILE%
4b) hg clone https://fanboy-adblock-list.googlecode.com/hg/ fanboy-adblock-list
4c) cd fanboy-adblock-list
4d) cd .hg
4e) edit the file "hgrc" using your chosen text editor, include the following infomation in the hgrc file.
[paths]
2012-08-17 13:15:56 +01:00
default = https://fanboy-adblock-list.googlecode.com/hg/
username = your name <gmail-username@gmail.com>
default-push = https://username:password@fanboy-adblock-list.googlecode.com/hg/
2011-12-28 23:17:37 +13:00
[ui]
2012-08-17 13:15:56 +01:00
username = gmail-username@gmail.com
2011-12-28 23:17:37 +13:00
verbose = true
[extensions]
rebase =
fetch =
b = C:\Users\Username\fanboy-adblock-list\scripts\b.py
2010-01-16 19:52:42 +13:00
(Note, use the googlecode password not the gmail password)
2010-01-16 21:18:36 +13:00
Login to google/gmail first, then visit http://code.google.com/p/fanboy-adblock-list/source/list
2011-12-28 23:17:37 +13:00
Get your password through the google profile menu, top right, profile then settings. *Password is case sensitive.*
Use this password in the "default-push" in 4e example above.
4f) Save changes, and now we're ready to make changes. Be sure you're in the main dir of "fanboy-adblock-list", when you want to start making changes.
2010-01-16 21:18:36 +13:00
2010-01-16 19:52:42 +13:00
2011-12-28 23:17:37 +13:00
Making Additions
----------------
adding new filters --> add-filter.bat <URL>
1) Make the change to the list(s), Save.
2) Copy Website, Copy Adblock infomation, and username. Save.
3) Done, its committed.
adding new elements -->
1) Make the change to the list(s), Save files.
2) add-element.bat <URL>
3) Done, its committed.
2010-01-16 19:52:42 +13:00
2011-12-28 23:17:37 +13:00
False Positives
---------------
adding new filters --> add-filter.bat fp: <URL>
1) Make the change to the list(s), Save.
2) Copy Website, Copy Adblock infomation, and username. Save.
3) Done, its committed.
Syncing new changes
-------------------
To sync any newer changes, you can just issue the following command,
hgsync.bat
Merging
-------
Occasionally if 2 people (or more) are working the same file at the same time.. you'll get a merge error/request.
2011-12-29 15:55:21 +13:00
Follow the docs\Windows_merge_notes.pdf this will help. You will need grep for Windows (http://gnuwin32.sourceforge.net/packages/grep.htm).
2010-01-16 21:16:10 +13:00
2010-01-16 19:52:42 +13:00
examples of additions comments:
http://code.google.com/p/fanboy-adblock-list/source/list
2011-12-28 23:17:37 +13:00