add console command to convert HG repository log to json.