mercurial

Is there a mercurial built-in or extension to delete all "non-mercurial" files from repos root directory?

I'd like all files under the repo's root folder except .hg/, .hgignore, .hgtags, etc. Is there a mercurial built-in or existing extension to do this? I have implemented a non-hg script with hard-code "mercurial files", but I'd like a programmatic method of excluding the mercurial related files. I'm trying to mirror a non-mercurial c...

How to automate the update of dozens of mercurial repositories with ant?

I have a legacy product, spread across dozens of repositories. I'm currently trying to refactor (and understand...) the given build process. First step was moving from the old version control system to mercurial, which was encouraging and easy. The build process mainly uses ant build scripts (good news) but has to run 'on' the repositor...

Hosted bug tracking system with mercurial repositories (Summary of options & request for opinions)

The Question What hosted mercurial repository/bug tracking system or systems have you used? Would you recommend it to others? Are there serious flaws, either in the repository hosting or the bug tracking features that would make it difficult to recommend it? Do you have any other experiences with it or opinions of it that you would lik...

Use WinMerge as TortoiseHG Merge tool

Hi, i am trying to set up WinMerge as the Merge tool into TortoiseHG; Here is my Mercurial.ini: ; User specific Mercurial config file. ; See the hgrc man page for details. [ui] username = Bargio <> merge = winmergeu [extdiff] cmd.winmerge = C:\Program Files (x86)\WinMerge\WinMergeU.exe opts.winmerge = /e /x /ub /wl [merge-tools] win...

Keeping all Visual Studio projects in sync with a library

Scenario I have a Library that contains Projects A, B, and C. I have two solutions. Solution 1 includes a copy of Project A, and Solution 2 includes a copy of Projects A and B. When I build Solution 1, here's what should happen: When I build Solution 2, here's what should happen: How can I do this? Is this something I cou...

Mercurial Subrepos - How do you create them and how do they work?

Situation I have two .NET solutions (Foo and Bar) and a common library that contains ProjectA, ProjectB, and ProjectC. Foo and Bar reference one or more library projects, but the library projects are not located within the Foo and Bar Solution folders. Directory structure: -- My Documents* -- Development -- Libraries ...

VCS independent diff

Instead of running "svn diff", "hg diff" and so on .. can we write a single command that calls svn/hg/git accordingly? Can the diff output be made pretty? edit: command-line tools (not GUI) preferred. ...

Fastest way to "reset" Mercurial repository to Version X (without cloning)

Let's say I clone a remote Mercurial repository (over the local network or even over the Internet) to try something out. I work in my clone, make a few commits...and then I realize that my changes don't make sense and I have to start over again. So I want to have a "fresh" clone again, from the same source repository. Basically, I want ...

Hudson builds failing - hudson.plugins.mercurial.MercurialSCM cannot be cast to hudson.scm.SubversionSCM

Hi, I am currently getting the following error when I run a build from Hudson: ERROR: Publisher hudson.tasks.Mailer aborted due to exception java.lang.ClassCastException: hudson.plugins.mercurial.MercurialSCM cannot be cast to hudson.scm.SubversionSCM Our builds were working fine last Thursday and since Friday of last week they have b...

Branching with Mercurial SCM

So right now I'm learning Ruby on Rails, and I'm working through the book "Agile Web Development with Rails". I've also decided that I want to give Mercurial a go, because I've read up on distributed SCM's, and it seems like an ideal situation. I still, however, prefer to push my code remotely to my Linux VPS just incase my hard drive ...

How to migrate from Subversion to Mercurial when the trunk/branch/tag structure is a mess?

I'd like to convert a repository from Subversion to Mercurial, but when I initially set up the repository, I did it in the laziest way possible. Over time, the structure continued to morph and deteriorate (it's 5 years old at this point). Nevertheless, I'd like to preserve as much history as possible, even if I have to get dirty and ma...

Migrating from Mercurial to Subversion

Hi. Does anyone know of a relatively painless way to migrate a Mercurial repo to a fresh Subversion repo? Thank you. ...

How to get a special version of a file in Mercurial?

I am new to Mercurial. Just cannot find the right command. Tried update/checkout with no luck. I am using local repository. Thanks ...

Does Mercurial create a server process when you create a local repository?

Mercurial's website says about creating a project this way: Create a project and commit $ hg init (project-directory) $ cd (project-directory) $ (add some files) $ hg add $ hg commit -m 'Initial commit' I need a single user, local repository. I assume this does the trick, right? The thing I don't understand is:will it open a server p...

Ponderings of a Subversion User: What is a "branch" in Mercurial terms?

I'm a Subversion user, and I think I've got my head mostly around it all now. So of course now we're thinking of switching to Mercurial, and I need to start again. In our single repository, we have the typical branches, tags, trunk layout. When I want to create a feature branch I: Use the repo browser to copy trunk to branches/Featu...

Forbidding pushes on Git/Mercurial

Is there any plugin for distributed SCMs that forbids pushing code that doesn't fulfil a certain criteria (e.g. min test coverage)? ...

Is there a way to create external link in Mercurial

I'm trying to include an older version of some lib into a new project. Is there a way to notify the current repository that I only need specific revision of other library, and not the tip? ...

Mercurial - Ignoring Large files

Hey, I know there is a way to get mercurial to ignore specific files using hgignore. Is there a way to get it to ignore all files above a certain size? Thanks ...

Check out only a directory from mercurial?

can i check out only a sub directory from mercurial repository, it seems i can only check out the whole repository. ...

Converting output of `hg history` into a dot file

How can I take the output of hg history and convert it into a dot file? ...