mercurial

View all revision numbers that made changes to a particular file in Mercurial

I would like to see all revision numbers that made any changes to a particular file. The output should look like follows: 20 27 59 If it is not possible, is it possible with Git? Thank you. ...

How to emulate language complement operator in .hgignore?

I have a Python regular expression that matches a set of filenames. How to change it so that I can use it in Mercurial's .hgignore file to ignore files that do not match the expression? Full story: I have a big source tree with *.ml files scattered everywhere. I want to put them into a new repository. There are other, less important fil...

Git or Mercurial usage in Java projects

Just wondering if any of you are using Git or Mercurial for your Java projects, or is Subversion still the most popular choice? I've been looking at github.com and bitbucket.org lately, but because the repositories might be private, I can't get a good indication of actual usage. ...

Are there any good graphical git and hg/Mercurial clients on Mac OS X?

I'm searching for compelling git and Mercurial clients on Mac OS X. The most clients I've found so far were less compelling as I expected. Some of the clients are programmed even in ruby or tcl/tk, which IMO aren't good OSX citizens in regard of integration in the OS. I've clients in mind similar to Versions.app or Cornetstone which are...

In mercurial, how do I apply a reverse-patch to a particular file?

Related to http://stackoverflow.com/questions/1078881/mercurial-merging-one-file-between-branches-in-one-repo , I'm trying to perform a backout operation on a single file, even though that file was one of many participants in the revision being backed out. HG being the changeset-oriented tool that it is, it doesn't want to operate on fi...

How can I get 'hg pull' to honor trusted-users section in my .hgrc?

I'm sharing a Mercurial repo with a user dias, whom I would trust with my life as well as my data. I therefore added [trusted] users = dias, nr to my ~/.hgrc file. However, when I pull from a remote repo with hg pull -v, I always get this message: remote: Not trusting file /r/c--/papers/gentileset-popl2010/.hg/hgrc from untrusted u...

How should one use the svnmerge workflow with Mercurial?

svnmerge helps to block some changesets from a specific branch. How can this be achieved with Mercurial? ...

How to get repository for core-plot

I am not able to get the repository for core-plot. What I am doing is that I am typing this in the terminal: hg clone https://core-plot.googlecode.com/hg/ core-plot and this is what I get: Traceback (most recent call last): File "/usr/local/bin/hg", line 25, in mercurial.util.set_binary(fp) File "/Library/Python/2.5/site-packages...

What is the difference between hg forget and hg remove?

I want mercurial to remove several files from the current state of the repository. However, I want the files to exist in prior history. How do forget and remove differ, and can they do what I want? ...

How to integrate Mercurial with PHPed IDE ?

Hello Can anyone post the steps for integrating mercurial to phped. I followed the following steps, listed by one member on their forum: What to do: Creating a Commit Shortcut * Install Mercurial if you have not already. I've installed mine to c:\development\Mercurial\ * Go to PHPEd Settings > Tools > Integration * Creat...

Setting up Mercurial for members of a unix group

I have a Mercurial repository set up on a Linux server, and some (but not all) users have permission to push to it. They connect to the repository over ssh. These users are members of a unix group together. Below is the script I'm using to alter a repository to allow it to receive pushes from them. Can this be improved? Are there unnec...

How to upload project with mercurial on googlecode?

I have create a local directory, and made some sub-directories and file in it. registered by project on code.google.com/hosting install Mercurial and did > hg init copied the auto-generated password from google, still dont know for what. Now how do i upload files my local to the repository on google. Tired googling a lot, almost all ...

How does Mercurial handle components or modular development?

Hi. Using CVS at the moment... When creating a new project that references modular components we use aliases to put together a project directory. So, if project1 uses component1 and component2 then we'd use aliases to pull these components into the project1 directory so that cvs co project1 Would give the developer all they need - w...

Why does sourceforge's mercurial view think I am anonymous?

I'm using Mercurial for a sourceforge project, and every time I commit it lists me as being anonymous on the project feed. I am using mercurial through the Eclipse Mercurial plugin from http://bitbucket.org/mercurialeclipse/. What settings do I need to mess with for SourceForge to know who I am when I push my commits? Mercurial knows my...

preserving history when using mercurial ontop of clearcase

I work in a ClearCase shop and CC does a good job of integrating the team's work though our code review process prevents me from using it to track my daily changes. Creating an hg repository on top of my CC view works really well. I can track my changes and easily make backups on the file server, produce diffs for people etc. This is a...

How do I convert my Git repository to Mercurial and bring along its tags

I am wanting to toy around with Mercurial a bit, so I am trying to convert one of my existing repositories over. I run the following command on my Mac: hg convert myrepos myrepos-hg The command successfully imports all of my commits, but it doesn't bring along the 8 or so tags that were marked in the Git repository (nor are any of th...

Difference between Mercurial update and backout

What`s the difference between this 2 commands (i want to rollback to revision 1): hg update -r 1 hg backout -r 1 --merge (in the example tip revision is 3) ...

Mercurial scripting with python

Hello, I am trying to get the mercurial revision number/id (it's a hash not a number) programmatically in python. The reason is that I want to add it to the css/js files on our website like so: <link rel="stylesheet" href="example.css?{% mercurial_revision "example.css" %}" /> So that whenever a change is made to the stylesheet, it ...

How do I "switch" with Mercurial

How do I do what svn switch does, in Mercurial? That is change my working directory to switch to another branch in the repository? ...

Handling image (bmp, png, jpg, etc) file merge conflicts in mercurial

At a minimum, what I'd like is to have "hg merge" open up the conflicting versions in side by side instances of, say, MS Paint (ugh), so I can do the merging manually. Bonus points for tool suggestions other than MS Paint. At the moment I'm looking at Araxis Merge. ...