convert: refactor sink initialisation, to remove hardcoding of hg
We also introduce options to explicitly set the source and destination
repository types.
Improve testing of corner cases a little.
#!/bin/shhg initecho This is file a1 > ahg add ahg commit -m "commit #0" -d "1000000 0"touch bhg add brm bhg commit -A -m"comment #1" -d "1000000 0"