Manual:Pywikibot/Gerrit

Pywikibot is currently moving to Gerrit! This is a simple FAQ/how-to page on what you need to do.

Terminology

 * Git - a version control system. Replaces SVN.
 * Gerrit - a code review platform (http://gerrit.wikimedia.org). Replaces Special:CodeReview
 * compat - formerly known as "trunk". If you're not sure, you probably use this.
 * core - formerly known as "rewrite".

Git clients
For example in order to download core via commandline:
 * Windows users: We recommend you use TortoiseGit
 * OSX/Linux: commandline git - http://git-scm.com/

To update:

If you're lazy and want to be able to do that all at once, you can do: (copied from ) [add  to make this alias stick for all projects]

Be noticed these codes might be of some size (for example compat is 170 MBs) because you're downloading the whole history of codes so if size of codes are important for you (e.g. because of hard disk limits in servers or low internet speed) you can simply clone shallow version of code, for example this command downloads only the last three revisions: you can even cut this down to just the very last revision with. It is recommended to use  in order to include all externals/submodules also.

Using SVN
But wait... I don't want to use Git. Can I still use SVN? Yes! For this example, I'm going to use pwb-core, however you can easily switch compat in.

Updating is as simple as

Windows users may also use the GUI extension TortoiseSVN. You'll find the documentation here.

URLs
Your client will probably ask you for the repository url. The urls follow the format of:.

So for compat:.

So for core:.

Nightly distributions
You can download the whole packages or browse the source code via nightly distributor in Wikimedia Labs