mercurial

in mercurial what is the best way to ignore changes to a file without removing the working copy from anyone's repository

こ雲淡風輕ζ 提交于 2019-12-13 02:44:43
问题 I don't want this file to be removed from other developer's machines, but I don't want it tracked anymore either. It is basically a setting file, that shouldn't have been checked in in the first place. I think I have to tell the other developers to back up this file. Then I can do a remove, and add it to the .hgignore. Then they have to put the file back into their working directory. It seems like hg forget would only work for my machine, and then next time another developer does a pull it

Does mercurial (hg) have functionality similar to git’s worktree? [duplicate]

不羁岁月 提交于 2019-12-13 02:23:18
问题 This question already has answers here : How do I have more than one workspace with Mercurial (hg)? (3 answers) Closed 3 years ago . The new worktree command in git allows you to have multiple working trees attached to the same repository. Hence allowing you to check out more than one branch at a time. This saves you from needing multiple local repositories that you have to push or pull between. Does mercurial (hg) support something similar yet? 回答1: Share Extension, distributed with

Trying to install MercurialEclipse, but only get offered CodeBeamer

我们两清 提交于 2019-12-13 01:02:39
问题 I tried to follow the instructions here: How can I install the MercurialEclipse Plugin? But instead of being suggested the Mercurial plugin, I'm only offered something called 'CodeBeamer' in the avaialble software dialog. What gives? (I'm using Eclipse Luna.) 回答1: Since a few years back, Eclipse has a feature called Eclipse Marketplace , which means that you don't have to bother with update sites. I usually use this feature when downloading plugins. Select Help -> Eclipse Marketplace in the

Eclipse Java Search of Mercurial Project

馋奶兔 提交于 2019-12-12 22:35:12
问题 I'm using MercurialEclipse to develop a Java project stored in Mercurial (at Google Code). I also have Java projects stored in cvs open in the same Eclipse. Eclipse search with File Search for text works for all projects. But search with Java Search for references to a Java type fails with the Mercurial project, but works for all other projects. I suspect this problem arises because the src/ directory in the Mercurial project is one layer deeper than Eclipse expects. That is, it looks like

How do you get ediff + hg working in emacs 23.2 for mac?

≯℡__Kan透↙ 提交于 2019-12-12 21:23:56
问题 Im using the emacs binary from http://emacsformacosx.com/ When I'm editing a file in a mercurial source directory and run "ediff-revision" I get: "File /the/file/im/editing.py is not under version control" This command works on the vanilla windows distribution and also with aquamacs, is there something I need to do for vanilla GNU Emacs for mac to work correctly? I've tried it with only this in my .emacs (require 'ediff) 回答1: So Mercurial for OSX installs itself in /usr/local/bin It seems

Version numbering for auto builds with Mercurial

霸气de小男生 提交于 2019-12-12 19:13:37
问题 We recently switched from SVN to Mercurial. We also have a CruiseControl.NET set up to run auto builds which gets the latest from the source control and builds the app. In the CruiseControl.NET dashboard for auto builds, we want to show the version number. Apparently, mercurial has this hexa decimal version numbers. What is the common standard for dealing with version numbers in CruiseControl.NET when working with Mercurial source control systems. Are the hexa decimal values used as is? What

Tips on upgrading CVS to git/hg?

♀尐吖头ヾ 提交于 2019-12-12 17:00:26
问题 We still use CVS, I use git and hg for my personal use though I'm still a novice at both, but I realize they're much more modern and better, faster, distributed, etc. It's just everyone is so accustomed to CVS that I feel a whole slew of issues could arise if I were to be the one that recommended and actually did the upgrading/porting/transitioning of our current CVS server to git or hg. Has anyone actually done this, recently? Could you offer any insight or tips in terms of influencing

Using Mercurial (hg), how to push just one file or one directory out?

☆樱花仙子☆ 提交于 2019-12-12 16:03:42
问题 Using Mercurial, we can commit one file by using hg commit file.rb or 1 folder hg commit foldername But how can we push just 1 file or 1 folder out? The whole project can be pushed using hg push ssh://peter@192.168.1.102//project/code/preliminary but there seems to be no way to push out just 1 file or 1 folder? I tried the following and they don't work: hg push ssh://peter@192.168.1.102//project/code/preliminary app/views/index.html.erb or hg push ssh://peter@192.168.1.102//project/code

“abort: No module named selectors!” when Pushing Mercurial repository to Git repository

六月ゝ 毕业季﹏ 提交于 2019-12-12 13:15:18
问题 I am trying to convert Hg repository to Git repository. Both are private repository. I have followed these steps (reference): Step 1: Set up your repositories Step 2: Install the Mercurial hggit plugin Step 3: Push your code into your Git repository Step 4: Switch your local repository to use Git I have installed the prerequisites also viz. hg-git plugin and updated the .hgrc file of the repository that needs to convert. Error coming while pushing the repository( hg push [Git repo path] ) is

Reverting “discard all changes” merge effect

跟風遠走 提交于 2019-12-12 12:26:11
问题 Let's suppose it was performed merge with "Discard all changes from merge ..." option, bu accident. And this wrong commit has been committed into the "central" repository. How to deal with this case if I need to merge in correct way the branch changes? Commands to reproduce the case: hg init mr cd mr echo "123" > file.txt hg add hg ci -m "initial" hg branch br echo "234" >> file.txt hg ci -m "in branch" hg up default echo "567" >> file.txt hg ci -m "in default" After these commands open