I guess we should incorporate the Debian changes, but I wanted to check with Thomas if what I did was ok? (see revs 14-19).
They use an interesting method to do a hg clone. I'm not sure how to actually use this though... (see get-orig-source-hg in rules). In rev 19 I changed that to get the latest rev from hg. But I guess they want to specify a specific version.