mercurial

How do I get the current mercurial revision without calling hg?

In Git the current revision hash is stored in .git/refs/heads/master Is there an equivalent in Mercurial that doesn't require me making a call to hg log -l1? I know I can get the current branch in .hg/branch. This is to "display" the current hg hash on screen when browsing a web page. ...

Which VCS should I use with Google Code?

I am about to start a project and was thinking of using Google Code to host it. It gives the option of using Mercurial or SVN for version control. I have never before used a VCS, and would like to know which one is easier to work with. The project involves two main programmers, but a few others may contribute small amounts. It is mostly...

Mercurial clone issue

I'm using Mercurial and I've cloned a repo locally and upon hg push, I'm getting this: abort: cannot lock static-http repository What does this mean? Why can't it lock the static-http repository? Permission issue on the folder? ...

Unable to launch java application in eclipse after mercurial clone

I guess this is a Eclipse question. I have a mercurial repository with a source folder (src/main/java/) and some source code. The repository also contains a build.xml. After cloning the project into Eclipse using the Mercurial plugin I'm unable to configure a launch configuration for my project. Eclipse is unable to identify the newly c...

Version control integration with eclipse

I'm looking for a version control system just for me on my windows computer to integrate into eclipse. I was thinking to use Mercurial instead of Subversion, but I'm having doubts about the mercurial eclipse plugin. Any input on this that you can help me with? Is it worth it to have a version control system when you're working alone, ho...

Does VisualHG work with Visual Studio 2010 beta 2?

Since I installed it on my Visual Studio 2010 beta 2 I couldn't make it work. I don't know if it is because it is incompatible or it is because I don't know how to use it. ...

Mercurial Bookmarks and 'Git like branching'

I am not having any luck using Bookmarks in Mercurial for Git like branching. From the article: http://mercurial.selenic.com/wiki/BookmarksExtension, I've set "track.current" to true in my .hgrc file. Excerpt below: By default, when several bookmarks point to the same changeset, they will all move forward together. It is pos...

Mercurial branching and bookmarks

I read some information about named branches and working with bookmarks. Unfortunately I still don't see a difference between them. Is there any? Is there any difference between: hg branch blah hg up blah and hg bookmark blah hg up blah ? Why would I use a bookmark and how is it different from a named branch? ...

Does hg pull only operate on the current working directory?

I have multiple mercurial repositories and used hg clone to create backups of them on our file server. Now I want to write a batch file that updates them once a day by running hg pull -u on each subdirectory. I want to keep this backup script as generic as possible, so it should update all backup repositories stored in my H:\BACKUPS\REP...

Would like to create some defaults for my .hgignore files in TortoiseHG/Mercurial

I'd like to make it so that every time I create a new repository, certain filters automatically get added to my .hgignore files by default. For example, for C# projects, I would like these to be added: glob:bin/* glob:obj/* Is this possible? How? If it can't be automated, is it at least safe to copy the .hgignore file from one repos...

Diffing between two entire directories/projects?

I inherited a project originally stored in CVS with all the revisions. I made quite a few edits, and I'm trying to compare all the changes I made in the original directory, in regards to new files added versus the old ones. Is there some sort of utility for hg/git where I can do a tree diff, or something of that nature? So that say, the...

Backing up a mercurial repository while preserving timestamps

Is there a way to back up a mercurial repository while preserving the files' timestamps? Right now, I'm using hg clone to copy the repository to a staging directory, and the backup program picks up the files from there. I'm not pointing the backup program directly at the repository because I don't want it to be changing (from commits) w...

Moving the .hg folder

Hey, I'm using Mercurial. I just found out that there is a .hg folder in my home directory. I presume it is keeping track of all mercurial repositories I have lying around in my home directory. Is this true? Also , I need to move the .hg folder to another directory. Can anyone guide me as to how to do this? Thanks ...

Mercurial in Windows doesn't see .hgignore - why?

Windows fails to pick up my .hgignore file. I'm running Mercurial from the command line, and "hg status" shows lots of files in the ignored directories. The .hgignore file looks like this (there's no whitespace at the start of the file, or at the start of each line). I've put it in the root directory of the repository. \.pyc$ \.pyo$ \....

Software Project Management systems

Ok, so I've only recently started getting serious about learning how to program, and I've started using Mercurial to manage my projects. I chose Mercurial over SVN because of it's ability to commit changes to a repo while not connected to the internet (these days I find myself in areas without internet access). I'm looking for a piece of...

Which merge strategies does mercurial use?

I work in an environment with large scale multi-parallel branching. Looking at GIT I see it has several merge strategies: already up-to-date fast-forward octopus resolve recursive Does Mercurial have the equivalent of each of these? (ie is the implementation of Mercurial's merge algorithm as good as recursive? ...

How many people were involved in a project? Based on Revision Control System

How do you know how many developers were involved in a project using a Revision Control System? A friend of mine found this way to look up the answer in git log: git log | grep Author: | sort -u | cut –delimiter=” ” -f2 | sort -u | wc -l Is there a straightforward way in git? How about other Revision Control System like Subversion...

How do I export changesets from hg repository to svn repository

Hi, I know there is hgsubversion extension for mercurial. But before I knew how it works, I maintain two separate repositories, one is SVN repo and one is Hg repo. I made most of my recent changes in the Hg repository and I need to "push" them to the svn repository. The most straight forward way to do this is to get one revision from s...

Converting Perforce repositories in to mercurial

I have a perforce repository on Windows machine say (p4). I can access this p4 repo using p4v client by providing IP:PortNumber details. Now I want to run "hg convert" command on this p4 repository from Linux machine so that p4 will be converted in to "p4-hg" a mercurial repository. Mercurial is already installed on linux box and "hg ...

How do I Maintain Multiple Lines of Development Between Customers In Mecurial?

I work on maintaining the same e-commerce web-app for multiple customers. Originally there was a standard set of pages from which all the rest of the customers customizations were derived in the past. Recently the place where I work decided to use Mercurial for version control. They've also decided to re-work the standard set of pages...