mercurial

Using Mercurial with Perforce

Does anybody have any advice about using Mercurial as a front end for Perforce? What I would like to do is to use Mercurial to handle really granular changes and then, once I'm done something, push it back up to the Perforce server. I found this article http://www.dehora.net/journal/2008/01/05/using-mercurial-with-perforce/ but it do...

What is mercurial bisect good for?

I've been reading about hg bisect and its interesting to be able to know which revision introduced a but, but I'd like to know what people use this information for. The only thing I can think of is trying to narrow down which dates might need a data fix if its a bug that results in some form of invalid data. update: I think I completely...

Migrating from CS-RCS to Mercurial

I've been using ComponentSoftware's CS-RCS Basic for many years now to manage my various single-developer projects. It's worked very well for me, but now I want to migrate to a modern revision-control system, and after studying my options I decided on Mercurial. The problem is that I've always used a central repository for CS-RCS, and I...

How to rename a directory in Mercurial and continue to track all file changes

I decided to rename some directories in my home/hobby Python package (doc to docs, test to tests, util to utils) because, now that I've thought more about it, I think the new names are more appropriate. My general thinking now is that if containers are named after their contents their names should be plural nouns. Now that I'm ready for...

What is the equivalent of hg up -C in git

I want to get the current head of my git repo destroying all changes made and erasing additional files in the working copy. ...

Is there an easy way to clear a mercurial repository of artifacts?

Sometimes I have to return to a really old branch when I depended on a ton of external libraries. Updating to the current branch removes the source files for those dependencies, but the artifacts are left there, as well as a few folders and such. I would like to have a way to force a mercurial repo to be as if I had just cloned it from ...

Refer to a mercurial revision relative to a named revision

In git, you can do refer to revisions by something like master^^, meaning two revisions before master. Can you do the same in Mercurial in some way (or with some extension)? For example, if I want to do "the revision before tip", something like tip^. edit: Rafa mentions hg parents which works for 1 level deep. How do I do it for arbitra...

What are good default items to add to .hgignore when using Eclipse?

I'm new to using Eclipse (CDT for C++ use) and would like any hints or pointers to a good default set of items to add to my ignore list (e.g. in MS Visual Studio I typically add *.suo, *.ncb, etc.). ...

Which files/folders in a Visual Studio 2010 C# Solution should go into Mercurial DVCS?

I am using Google Code to host my C# project. It has a solution with one class library and one test project. I am using Visual Studio 2010. The client I am using is TortoiseHG. In Windows Explorer, first I cloned an empty folder and got the .hg files inside of it so that it is associated with my hosted code. Now, I created a new C# pro...

newbie - mercurial merge issue

Made Changes in file X.java – through hg repo explorer, I see my changes. Committed changes in X.java to local repository I pulled changes from central repo which also included non-conflicting changes by other developer in X.java – I see chages made in X.java by other developer. I merged two versions locally, After merge what I am ...

Good Mercurial workflow for a team of 15 developers.

Hi, I'm in a team of 15 developers currently using Allfusion Harvest. We're not happy with it and looking around we've decided to switch to Mercurial due to the available frontends TortoiseHg and MercurialEclipse. We're currently using a twelve year old release of Harvest and I find our current workflow hard to translate to Mercurial. I...

Mercurial: Remove file from all changesets

I understand how to remove an entire changeset from history but it's not clear how to remove a subset instead. For example, how do I remove all DLL files from an existing changeset while leaving the source-code alone? ...

hg status is slow the first time

Does anybody know why hg status is slow (3-10 secs) the first time it's called from the command line on a windows client (I'm assuming it is cached after that). hg status is a local operation and it should not take that long especially with empty repos. This is the case on both an active repository with several changes and a brand new ...

How can I see a list of all files that are different between two Hg repositories?

I've got a repository that has a lot of working code. Another developer on my team went without any updates for a while and then committed about 5 changesets. So, now we have two heads that are nearly two weeks apart. The tip doesn't work, but my changeset does. I want to see what the differences are between the two repositories without...

How can I force mercurial to accept an empty commit

I'm trying to convert an SVN repo with hgsvn and I have some commits where SVN properties where modified, but since Mercurial doesn't use those, it sees this as an empty commit and aborts. Is there any way to force this hg commit to accept a commit that doesn't change anything? I'm not familiar enough with the internals of hgsvn to hack...

How to use Symfony framework with Mercurial?

I'm starting to use the Symfony php framework. Where can I find information about the use of Mercurial in my symfony projects? ...

Assignment of mercurial global changeset id

Apparently Mercurial assigns a global changeset id to each change. How do they ensure that this is unique? ...

Converting a Mercurial repository to Bazaar

Is there an easy way of converting an existing Mercurial repository to Bazaar without losing any history? If I convert Mercurial to Subversion to Bazaar will I lose any history? ...

getting started with hg quickly for a git user

I've got some experience with git. In a new project, they decided to use hg. What documentation out there is most recommended to get started with hg quickly for an experienced git user? Most useful would be a short introduction in the parts where concepts differ as well as a comparison of the relevant command line calls. I am aware tha...

Mercurial log with one-liners

The regular hg log command gives output with at least 4 lines per changeset. For example changeset: 238:03a214f2a1cf user: My Name <[email protected]> date: Thu Aug 26 09:49:32 2010 +0200 summary: Added tag v1.1 for changeset f22fd3974361 I mean to remember that there was a command to print a log in a more compac...