Skip to content

Instantly share code, notes, and snippets.

@snim2
Forked from haard/gist:8639666
Created January 26, 2014 21:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snim2/8639969 to your computer and use it in GitHub Desktop.
Save snim2/8639969 to your computer and use it in GitHub Desktop.
branch_mapping = [('default', 'master')]
target = "git+ssh://git@github.com/haard/test"
repo = hgapi.Repo(path)
for hgb, gb in branch_mapping:
repo.hg_command('bookmark', '-r', hgb, gb)
repo.hg_command("--config", "paths.default=" + target, "--config", "extensions.hggit=", "push")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment