Execute in fabric run('hg pull')
Question: I'm developing some Django application on Windows host computer. I've created
fabfile with tasks. In one of my steps I execute something like that:

    
    
    local("hg pull")
    local("hg update")
    

and it works properly.

In other task I try to execute on remote machine something similar:

    
    
    run("hg pull")
    

but after that I get error:

    
    
    [XXX.XXX.XXX.XXX] run: hg pull
    Exception in thread Thread-6:
    Traceback (most recent call last):
      File "C:\Python27\Lib\threading.py", line 808, in __bootstrap_inner
        self.run()
      File "C:\Users\Grzegorz\VirtualEnvs\Dummy\lib\site-packages\paramiko\agent.py", line 116, in run
        self._communicate()
      File "C:\Users\Grzegorz\VirtualEnvs\Dummy\lib\site-packages\paramiko\agent.py", line 122, in _communicate
        import fcntl
    ImportError: No module named fcntl
    

Do you have any advices how can I pull and updated changes from my mercurial
repository?


Answer: OK, now it works. I didn't change anything in my virtual environments but set
proper path to my source code from repository and call something like that:

    
    
    run('hg pull https://usr:pwd@bitbucket.org/account/myproject')
    

