protocol: unify changegroup commands
- add sendchangegroup protocol helpers
- handle commands with None results
- move changegroup commands into wireproto.py
#!/bin/sh
cat >> $HGRCPATH <<EOF
[extensions]
hgcia=
[hooks]
changegroup.cia = python:hgext.hgcia.hook
[cia]
user = testuser
project = testproject
test = True
EOF
hg init src
hg init cia
cd src
echo foo > foo
hg ci -Amfoo
hg push ../cia