mercurial

Transferring legacy code base from cvs to distributed repository (e.g. git or mercurial). Suggestions needed for initial repository design.

Introduction and Background We are in the process of changing source control system and we are currently evaluating git and mercurial. The total code base is around 6 million lines of code, so not massive and not really small either. Let me first start off with a very brief introduction to how the current repository design looks. Pictu...

Mercurial: Remove changeset from remote branch

Hi, Is there a way to remove a from a remote changeset, or to remove an entire changeset? I accidentely pushed a .war file to a remote repo and I want to remove it. Thanks ...

mercurial windows batch file for pulling changes to multiple repositories

Hi all, I am a mercurial user on windows and I am trying to write a batch file to check for incoming changes to a number of repositories stored in a common folder (i.e. there could be 10 or so small mercurial repos under a main folder). I have the following batch file that successfully iterates through the multiple repositories and runs ...

Getting Mercurial to run in Windows

Hi, I'm a fan of Mercurial and have been using it on Linux for a few years. Does anyone have any experience getting this installed and running on Windows Vista? The only installation instructions that I've found look overly complicated. Does anyone have a decent checklist built from their own personal experience? Thanks Chris Follow-...

`bzr uncommit` equivalent in Mercurial?

Bazaar has a wonderful uncommit command, which simply undoes the last commit. Is there any equivalent in Mercurial? Edit: Bazaar's uncommit command does not modify files – it removes the last commit and associated data (useful, for example, when you notice too late that there is a typo in a commit message or a file wasn't added that sh...

How would you use a DVCS (mercurial in my case) to develop for different versions of the .NET framework?

I'm writing some sort of new adminstration dashboard for our cms (which runs on asp.net webforms). Some of our older servers can only handle .NET 2.0 for various reasons so I'd have to rewrite my code which uses lambda expressions etc. for that. I wonder how you would use a dvcs like mercurial to develop those two versions concurrently....

How do I clone a sub-folder of a repository in Mercurial?

I have a Mercurial repository containing a handful of related projects. I want to branch just one of these projects to work on it elsewhere. Is cloning just part of a repository possible, and is that the right way to achieve this? ...

Mercurial with multiple projects

I have a couple of projects with different release cycles sitting in my svn repository. Releases are created by using the classic tags structure in svn. When there are bugs to fix in releases a branch is created from a tag, the bug is fixed and then merged from there into trunk. Now, for multiple reasons, I want to switch from svn to me...

File history: in the source or let scm handle it?

I'm learning mercurial as my solo scm software. With other management software, you can put change comments into the file header through tags. With hg you comment the change set, and that doesn't get into the source. I'm more used to central control like VSS. Why should I put the file history into the header of the source file? Shou...

what are the pros & cons of Git and Hg Version Control System?

I am now in a condition to choose which Version Control System, so I would like to get some comment from experience developers who have used these. Which one i should use and in what condition? ...

Mercurial push, abort: authorization failed.

I'm having problems with pushing to mercurial repository: $ hg push pushing to https://user:***@hg.domain.com/X_repo searching for changes abort: authorization failed The same URL (with the same credentials) is accessible through the web browser. Also, I tried it without embedding usr+pass into the URL. HTTPS is correctly configured,...

git equivalent to hg mq ?

Hi; I just started using git alongside mercurial to familiarize myself with git. I use the mq extension in mercurial extensively to manage local patches, and I'm looking for a git equivalent. Should I just use git branch? Or are there better ways to manage local patches that enable easily applying and removing the patches? Thanks, ...

Migrating complex SVN branch hierarchy to Mercurial

Our team has been using SVN for managing an application of decent size and over time a rather complex hierarchy of branches and tags has built up, which is following the basic standard layout for SVN repositories, but is more nested: |-trunk |-branches | |-releases | | |-releaseA | | `-releaseB | `-features | ...

How can I always know about all tags in Mercurial?

I don't use Mercurial, but i'd like to start, so i'm reading about it. The only SCM system i've used extensively is CVS. Most of what i've read about Mercurial makes sense, and sounds good. But i'm alternately shocked and perplexed by that way it does tags. A tag is just a nickname for a changeset (and by 'changeset' we really mean the ...

Moving from Visual Sourcesafe to Mercurial

What's the best way to move a Visual Sourcesafe repository to Mercurial (I'm interested in retaining all history)? ...

Mercurial integration into Visual Studio 2005?

Is there a way of integrating Mercurial into Visual Studio 2005? We'd like to be able to do checkin's, see history, etc. directly from the IDE. ...

Where to manage the most sensitive content you have under version control?

Do any version control systems allow you to specify line level security restrictions rather than file level? I know it would be horrible to maintain. If I wanted to never allow certain strings into the database should I be looking into the notion of hooks and manage all the very sensitive information in that hook layer? How do hooks g...

Mercurial ignore file

I'm trying to get Mercurial to ignore a configuration file, but I'm failing to get it working. I have created a repository on my server with hg init and cloned that repository to my computer. I then want to be able to edit the configurationj file but not commit those changes back to the server. I have tried creating a .hgignore in the...

'Dead' directories in Mercurial

In my Hg repository (at Google Code) I have a directory that shouldn't be there. Basically I decided to move everything into a sub-directory (I had everything in the root), which worked fine but now there's a couple of 'dead' directories. Its my understanding HG works off files rather than tracking directories so I think that's what's ha...

How to swap Mercurial Queues in and out of a repository

I have a platform neutral mercurial code repo called "Simulator" and want to apply patches that target specific platform's optimizations before a build. According to the guide we can accomplish this by the use of patches with guards. Windows Experimental.patch +windows Unix Experimental.patch +unix Mac Experimental.patch +mac How...