mercurial

Java: how to get mercurial current changeset number for use in program

I've recently started using mercurial for version control in a Java project. When I run my program, the input parameters it has used to produce certain a output, are written to a specific file. It would be nice if I could add the current mercurial changeset number (indicating the version of my program) to that output file as well. What ...

Step-by-step guide of Mercurial for iPhone projects?

I am looking for a step-by-step Mercurial guide for iPhone projects. Please assume: hg already installed the audience is comfortable with command line operations everything is on OS X As a newbie, I am particular interested in: what files should be excluded how to exclude above files guideline/suggestion of naming builds any rel...

Mercurial workflow to deal with sudden high priority tasks

The scenario is that I arrive at work one morning and pull, update, merge my mercurial tree. From the now latest revision I begin working on todays task. I reach a logical milestone and does a commit. The tree now looks like this: * <- my first commit for the day | * <- merge commit from shared repos by team Now the boss comes along...

How do I push a new project to a shared Mercurial multi-repository?

I have a local machine ("laptop") and a shared Mercurial repository on another machine ("server"). The shared repository is set up as a multi-repository as described in the Mercurial documentation using Apache, the hgwebdir.cgi script and Mercurial 1.4. The setup works in the sense that I can browse the projects (repositories) in the ...

Using Beyond Compare for Visual Diff in TortoiseHg

I am trying to use Beyond Compare for Visual Diff in TortoiseHg. eg Right click on a modified file in explorer and select Visual Diff from TortoiseHg context menu... BeyondCompare opens but only shows the 'welcome' screen and not the file I want to diff. Am I missing something? I have setup the mercurial.ini file as follows: [extens...

How to archive/export all files changed since a specific revision with Mercurial?

Hi, Mercurial supports a handy archive command which allows you to export all files as they were in a specific revision (thanks to Ry4an for pointing this out in a comment) to another folder/zip file etc. This is done as follows: hg archive -r REV destination Is there a way to export only the files changed since a certain revision an...

Different version of file in Mercurial repo

I have 2 servers with same cloned Mercurial repo but with different config lines in some files in this repo. How can I control this files via Mercurial but haven't problem when pull/puss between servers? ...

What is the tortoisehg gui equivalent of doing "hg push -r"

I don't see the options to accomplish this. I want to only push changesets related to my default branch, not any other local branches I have. I thought I could do this by using the Repository Explorer like so: On the toolbar below the repository address, the first combo box allows me to select a branch. I set this to default. However o...

Mercurial Branching Oddity

I'm trying to understand why the below is occuring: It appears that I have started another branch, but it has no name, and I do not remember creating a new branch. Why did this new head(branch) get created? How do I keep it from happening? ...

Equivalent of removing readonly from a file with TFS/MS SS in Mercurial

Is there a way to make Mercurial treat a file as if it matches the source control copy even if it has been altered? This was an easy trick to do with Team Foundation Server / Source Safe where just making the file writable through explorer would make those systems ignore that file on check ins. (Note this is a file that is checked in an...

Is there a 'Mercurial Notifier' program that will tell me when an external repository has changed?

There are a few different tools for Subversion that run in the background, pinging the central repository every few minutes, and will alert you if any changes are detected (I'm using Windows 7, but this is true for OS X and Linux as well). Is there anything like that for Mercurial, that will watch a specific repository and alert me to a...

Mercurial and particular files branching

The context: i have a project, that contains configs/ directory, which contains (surprise-surprise!) a set of config files: database.php, facebook.php, twitter.php, cache.php, etc What I did in svn: I have created branches per specific file and made changes there (changed database connections, facebook API keys, etc). So they were store...

How to restrict "-f" option while making hg push

Is there any option to restrict a user to use hg push -f? Because it will remove intermediate commits by other users. ...

What to ignore in a Mercurial .hgignore for a Ruby on Rails app

I created a hello world app with rails HelloWorld command. I ended up with many directories: app config db doc lib log public script test tmp vendor Should all this be under sources control? What would be a good default .hgignore file for a Ruby on Rails app folder? ...

Can I config tortoisehg to show red icon when file status not empty

For example, I add new file forget about hg add, the folder is green but file status show one file with question mark. ...

Mercurial: how to revert part of the working copy after deletion

I deleted a project in my solution, committed many times and now found out that I still need that deleted project. Is there a way to restore it with keeping it's history? ...

Mercurial Integration with NetBeans

Is there a way to automatically run the update command after issuing the Team -> Share -> Pull from default command from the menu? TortoiseHg has a configure repository option for the Synchronize command, but I believe this will only apply when using the Hg Explorer Integration. ...

Is there any mercurial hosting actually *on* Amazon EC2?

I need to be able to update my ec2 instance from a label in mercurial when it resets so my application is always set at the right revision. It'd be great to be able to push my changes to a mercurial host and have my instances automatically update across the ec2 network when they are reset! I really don't want to host mercurial on the s...

How to migrate out of designsync to git/hg/bzr/svn?

design sync uses RCE as a backend store. RCE is supposed to be the next version of RCS. Does anyone has any experience with migration of design sync or RCE to any of the newer version control system? ...

Can Mercurial print command success messages instead of no response?

Can Mercurial print command success messages instead of no response in the output prompt? ...