Skip to content

Instantly share code, notes, and snippets.

@stavxyz
Last active December 22, 2015 16:29
Show Gist options
  • Save stavxyz/6499821 to your computer and use it in GitHub Desktop.
Save stavxyz/6499821 to your computer and use it in GitHub Desktop.
a postactivate hook for git-hg interop supported by virtualenvwrapper
#!/bin/bash
# This hook is run after this virtualenv is activated.
#####################################
## To setup a venv which
## has git-hg interopability
##
## Fetches latest script
##
## Using virtualenv, virtualenvwrapper,
## and git-remote-hg.py
##
## Once activated, you can
##
## git clone hg::http://selenic.com/hg
##
#####################################
cdsitepackages
curl https://raw.github.com/felipec/git/fc/master/git-remote-hg.py -o git-remote-hg
chmod 755 git-remote-hg
export PATH=$PATH:${PWD}
cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment