mercurial

Mercurial update hook not activating Python virtual environment

浪子不回头ぞ 提交于 2019-12-25 06:02:03
问题 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

Mercurial update hook not activating Python virtual environment

时光毁灭记忆、已成空白 提交于 2019-12-25 06:01:34
问题 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

Eclipse Object adornments don't display for Mercurial Repository

天涯浪子 提交于 2019-12-25 05:02:31
问题 In a standard Android project, if there are any warnings there will be a corresponding Warning Icon as well as underlined text to clearly demonstate a potential issue. However, if you choose to clone an existing Mercurial repository, these warning icons are no longer displayed. Is there any way to show warnings and errors in a project that was created by cloning a Mercurial repository? The file on the left is from a local Android project. The file on the right is a Project that was cloned

Mercurial show diff against 2 parents or base during merge

有些话、适合烂在心里 提交于 2019-12-25 03:54:28
问题 Our teem recently faced with merge that removes one leaf of merge and we "lost" changes (as if you perform hg merge --tool internal:local ). This happen because we don't experienced with hg merge command. hg diff shown only one difference, but not other. BASE --- HEAD1 --- MERGE \---- HEAD2 --/ Suppose in HEAD1 I merge HEAD2 but has not yet commit changes. HEAD2 diff against MERGE I see by hg diff . It is -r BASE:HEAD2 patch. How can I see diff between current local merge state with HEAD1 as

whats the best strategy for automatically cloning a repo to a network drive?

大兔子大兔子 提交于 2019-12-25 01:08:59
问题 I have a repository on my local machine that is under SVN. For various reasons the SVN branch that I'm working on is locked and I'm not supposed to make another branch. I'd like to be able to make many local commits via Mercurial, then copy/push those changes up to a network drive so that they're backed up every night. When the SVN branch is open again I'll push the final changes up to it. None of this seems out of the ordinary. I made my local repo, made some changes to it and commited them.

I easy_install'ed Mercurial, and now I get “No script named 'hg'”

烂漫一生 提交于 2019-12-24 23:53:41
问题 I installed Mercurial on (32-bit) Ubuntu 9.10, using: sudo easy_install mercurial It installed Mercurial 1.7.5. I have since learned that using this way of installing is denounced by the Mercurial Team, although the reasons why it shouldn't work are not clear. When I ran the command hg it responded: Traceback (most recent call last): File "/usr/local/bin/hg", line 5, in <module> pkg_resources.run_script('mercurial==1.7.5', 'hg') File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line

problem with extensions on mercurial

让人想犯罪 __ 提交于 2019-12-24 21:02:29
问题 i have this in my .hgrc but the extensions are not working any idea why? im on a mac. perhaps i could point it to their path? but I can't see to find anywhere where that would be. thank you .hgrc [extensions] fetch= hgext.extdiff = 回答1: You haven't configured extdiff, so it won't know what to do. and you need to specify hgext.fetch = instead of just fetch = 来源: https://stackoverflow.com/questions/5482344/problem-with-extensions-on-mercurial

Importing Mercuial(hg) repository to Team Foundation Services

人走茶凉 提交于 2019-12-24 17:39:09
问题 I'm looking for any suggestions or tools that can be used to migrate a Mercurial(hg) repository on a Windows 7 system to a TFS repository on Visualstudio.com. I currently use TortoiseHg to interface with the Mercuial repository. I had found a post that says i can be done with SVNBridge but no details and it didn't makes sense to me since SVN is different than Mercurial. 回答1: If you are using Git version control for your VSTS repository, you can use Hg-Git mercurial plugin to convert a hg

parent/child project relationship in Mercurial

北城余情 提交于 2019-12-24 16:49:06
问题 I'm new to mercurial (and SCM in general) and I'm stuck at handling a parent child relationship between my two projects. One project is the parent project and is a subset of the other project (or rather, the other one is a superset of the first). I want to work on the two projects in a single local repository as if they were one but I want to publish them to two different public repositories. I've looked at sub-repositories but that's not what I want since I need my repositories to work on

parent/child project relationship in Mercurial

左心房为你撑大大i 提交于 2019-12-24 16:48:52
问题 I'm new to mercurial (and SCM in general) and I'm stuck at handling a parent child relationship between my two projects. One project is the parent project and is a subset of the other project (or rather, the other one is a superset of the first). I want to work on the two projects in a single local repository as if they were one but I want to publish them to two different public repositories. I've looked at sub-repositories but that's not what I want since I need my repositories to work on