sudo apt-get install mercurialThere are two aspects of this: getting code onto the PI, and from the PI, pushing the code / build artefacts back to the original machine. It seems sensible not to trust a cheap SD card overmuch.
Mercurial includes a builtin webserver that can permit remote access to your code, both read access and write access.
Assuming you have already an hg repository created, you can serve this as follows (from the hg repository directory) on your development PC
hg serveYou can then view the repository in the web browser at http://localhost:8000
This is also now visible to the PI (and any other machines on the same network, not a secure practice!).
The initial clone can be done as follows
hg clone http://192.168.1.71:8000 destdirSubsequently, changes made on the PC can be fetched via hg as well, from within the hg repo dir on the PI
hg pullSince the PI is a full Linux machine, its quite practical to make changes locally on the PI (say, from an ssh session or remote X11 setup). By default, however hg will not let a push occur to a repository served via hg serve
This is possible, however. On the PC (in the .hgrc or Mercurial.ini file, depending on OS) add the following section.
[web]
allow_push = *
push_ssl = false
Changes made on the PI can then be pushed via hg, from within the hg repo dir on the PI
hg push