jenkinsci/scm-sync-configuration-plugin — pull request #9 by clarenceb (2012-12-10 03:33:16+00:00)
Title: Added Mercurial (HG) support

Thanks for creating this plugin. Its very useful. Where I am currently working we use Mercurial repositories and I saw your plugin doesn't support it yet. I made some changes to it and it now works with Mercurial. Feel free to accept the changes if you are happy with them.

Things to note:
- I couldn't figure out how to initialise a HG repo like "git init --bare" . It seems I had to commit a file for the repo to be valid for the tests (hg locate would fail otherwise). Let me know if you know a better way!
- Due to the behaviour above, in a couple of tests I have to specifically check if we are testing against a HG repository and then remove the special dummy file so the tests can pass.