mercurial

Mercurial Remove History

Is there a way in mercurial to remove old changesets from a database? I have a repository that is 60GB and that makes it pretty painful to do a clone. I would like to trim off everything before a certain date and put the huge database away to collect dust. ...

Mercurial hg, am I doing it right?

We are in the process of converting from CVS to Mercurial hg. Our infrastructure is Windows 2003/IIS6 Each developer develop on their machine 1xDevelopement server 1xStaging server Production environment Here's what I have done so far: Installed Mercurial on my machine, on the development server and on the staging server. Created...

Converting from CVS to SVN to Hg, does 'hg convert' require pointing to an SVN checkout or just a repo?

As part of migrating full CVS history to Hg, I've used cvs2svn to create an SVN repo in a local directory. It's first level directory structure is: 2010-04-21 09:39 AM <DIR> . 2010-04-21 09:39 AM <DIR> .. 2010-04-21 09:39 AM <DIR> locks 2010-04-21 09:39 AM <DIR> hooks 2010-04-21 09:39...

Unable to build mercurial on OSX - Python.h not found

For what I've read I need Python-Dev, how do I install it on OSX? I think the problem I have, is, my Xcode was not properly installed, and I don't have the paths where I should. This previous question: http://stackoverflow.com/questions/2685887/where-is-gcc-on-osx-i-have-installed-xcode-already Was about I couldn't find gcc, now I ...

Pros and cons using Mercurial over Subversion

I'm starting a new project. I familiar with TortoiseSVN, and all its downsides. Shall I start using Mercurial instead? What are the pros and cons using Mercurial over Subversion? ...

Mercurial on IIS7 error when trying to clone repository

I have set Mercurial 1.51 up on a Hyper-V server running Windows 2008R2 and am trying to use IIS7 to serve the repositories. I followed these instructions which I had previously used when evaluating mercurial with success. All was going well I could see the repositories from with a browser but when I tried to clone the repository from ...

Mercurial vs Subversion

I have a medium sized team of developers who moved to Subversion last December from VSS and I wanted to hear from people who have used both Mercurial and Subversion and get their feedback. What do they really like about Mercurial? What sucks? Is there a better open source tool? I didn't really want to put my devs through the whole sou...

Globally specifying username for all Mercurial repositories?

Is there any way of having mercurial automatically create hgrc, so that I don't have to create it every time I create a repository? I'd like hgrc to at least contain the following: [ui] username = geo Can this be done? ...

Mercurial permament delete?

I commit some 3rd party tools that i decided not to use afterwards and removed them from hg again. Thing that i dislike - they are still kept in history. Normally this is a good thing of course, but for this particular case - that's just a waste of space. What are options to intentionally mess around with hg repository history and weed...

Mercurial: What is the benefit of fixing errors in earlier versions

According to the guide, under the heading: Fixing errors in earlier revisions, it states this: When you find a bug in some earlier revision you have two options: either you can fix it in the current code, or you can go back in history and fix the code exactly where you did it, which creates a cleaner history. How does going back i...

Mercurial & Windows Server 2003

Hi all, I just set up Mercurial on our main webserver, hosting repositories via hgwebdir.cgi. The problem I'm having now is when I run hg push from my local machine to the server's repository, it takes an absolutely ridiculous amount of time to push a very small directory, with only a single changeset. Is it possible that I've set someth...

In Mercurial, can I apply changes from one file to another file in the same branch?

In the good old days of Subversion, I would sometimes derive a new file from an existing one using svn copy. Then if something changed in sections they had in common, I could still use svn merge to update the derived version. To use the example from hginit.com, say the "guac" recipe already exists, and I want to create a "superguac" th...

How do I permanently remove (obliterate) files from history?

I commited (not pushed) a lot of files locally (including binary files removing & adding...) and now when I try to push it takes a lot of time. Actually I messed up my local repo history. How could I avoid this mistake in the future ? Can I transform a set of local revision 1->2->3->4 to 1->2 with 2 being the final revision of the local...

Setting Mercurial's execute bit on Windows

I work on a Mercurial repository that is checked out onto an Unix filesystem such as ext3 on some machines, and FAT32 on others. In Subversion, I can set the svn:executable property to control whether a file should be marked executable when checked out on a platform that supports such a bit. I can do this regardless of the platform I'm ...

Describe your workflow of using version control (VCS or DVCS)

I'd like to learn other people workflow when using either vcs or dvcs. Please describe your strategy to handle the following tasks: Implement a feature Fixing bugs (during development and deployed app) Code Review Refactoring code (post code-review) Incorporate patches Releasing the newer version of your app (desktop, web, mobile, w...

How can I add complete binaries to a Mercurial patch?

I want to use Mercurial to capture changes made to the vanilla installation of a piece of software we use. Everytime we upgrade the software, we need to manually edit the various configuration files and add 3rd party libraries that we use in the current version of the software. Creating patches for the configuration files changes are fin...

TeamCity - Build triggering on specific file, Mercurial

Hi I'm trying to get my build to trigger only when i create a Tag in Mercurial. The way im trying to do this is by creating an additional Build Config (Tag Conf) for my project where I set the VCS build trigger to: +:/.hgtags (Trigger only when tags are updated) -:. (Do not trigger on any other files) Whe...

How to develop on a branch in HG

Hi, I would like to do some experimental work in a hg project. So I would like to create branch, commit to it. And if the experiment works, I can merge it back to main branch. In git, I can do $git branch experimental $git checkout experimental (edit file) $ git commit -a $ git checkout master I read http://stevelosh.com/blog/2009/...

How to tag and goes to a tag in hg

Hi, From here, it said hg tag 1.0 is to get my Mercurial repository to a tag name. How can I switch my repository to that tag name? $ hg tag myTag1.0 $ <edit more files> $ hg commit -m "a message" $ hg how to go back to that tag? and if I make a new hg commit here, what will happen? Will it goes to the branch of myTag1.0? Or it will...

What is the correct way to merge/transform a dev branch into a stable branch in Mercurial?

I work for a web development company that uses Mercurial as its DVCS of choice. We're currently in the process of creating a new version of a site that is already in production. Both a stable and a development branch of the site exist in the same repository. The production site runs off the stable branch, and developers obviously code a...