Mercurial update hook not activating Python virtual environment
问题 I have a bash script that I'm trying to execute anytime an hg update occurs. The goal of this bash script is to switch to the correct virtualenv. For the sake of simplicity, this script is called .test - shown as follows: #!/bin/bash echo 'testing hg update hook' source ~/.virtualenvs/myvirtualenv/bin/activate Whenever I call this script from my shell using source .test everythying works properly; I can see the results of echo and my shell changes to reflect the activated virtualenv However