mercurial

Please suggest a better workflow in Mercurial

I'm new to Mercurial and what I'm starting to realize is that my basic workflow may not be the most efficient way of working because I perform commits so frequently and for feature improvements that are so small that when I need to find some earlier step to revert to, it is extremely difficult. Here's what I do after I have a project s...

Defining which branch my next commit is added to

Let's say I create two banches at the same time: hg branch branch-A hg branch branch-B How do I send my next commit to branch-A instead of branch-B? ...

Correct way to jump back and forth between two branches?

If I create a branch: hg branch branch-A and commit to it: hg commit -m "improvement A-1" and then create a second branch: hg branch branch-B and commit to it: hg commit -m "improvement B-1" If I want to add my next change to branch-A do I simply type: hg branch branch-A and commit to it as before: hg commit -m "improveme...

How can I get a complete version from TortoiseHg

Hi! I am using TortoiseHg as my source control for developing a CMS project written in .NET/C#. I don't know how can I get a whole complete version from my source repository. Is it possible? a version for a specified date. Thank you. ...

Installing Mercurial on Mac OS X 10.6 Snow Leopard

Installing Mercurial on Mac OS X 10.6 Snow Leopard I installed Mercurial 1.3.1 on Mac OS X 10.6 Snow Leopard from source using the following: cd ~/src curl -O http://mercurial.selenic.com/release/mercurial-1.3.1.tar.gz tar xzvf mercurial-1.3.1.tar.gz cd mercurial-1.3.1 make ALL sudo make install This installs the site-packages files ...

Mercurial: Revert "commit action" changes

Suppose i have made a change to a file, hg st show it as modified. Now i want to commit. Before I can do so i do accidentially hg remove my file. Mercurial now would remove my file on the next commit, hg revert would retain it from removal, my changes would be lost however. Is exporting a patch and then importing it on top of a MQ my o...

Mercurial: TortoiseHg's "guess rename" from the commandline?

Is there any hg functionality to mimic the "guess renames" command of TortoiseHG? I really dig this one, however I am currently using MacOS and have Murky or the commandline interface available. ...

How to set a Mercurial VCS build trigger for TeamCity that ignores label operations

I am trying to setup a build trigger for TeamCity using Mercurial as the VCS. Right now the trigger looks like: +:/** This trigger get fired when changesets are committed. However, I have TeamCity setup to tag each build in the VCS. The tagging process is firing the above build trigger so the build gets caught in a loop. Can anyone s...

Does anyone have a script to handle multiple hg repositories at once?

I have a project that is combining multiple hg repositories (different components) to build a single application. I'm looking for a cross-platform tool to support performing an operation on multiple repos at the same time (e.g. tag, pull, push, commit etc...) Essentially, I'm looking for the 'repo' script that Google wrote for Android, b...

Blocking write-access to a specific branch in a single mercurial repository.

Is it possible to write some manner of hook in mercurial that will reject changesets that effect a specific named branch in a repository? We have a managed project and would like to allow any developers to push their changes to our repository so long as they are in their own named branch. This allows us to manage a single buildbot and a...

Forking on Google Code (or any other SVN hosting)

Sites like github, bitbucket provides an excellent/useful feature of "forking" projects. This allows one to simply fork a project and work on their desired features (before submitting it to the projector owner and getting commit access). How is this workflow best achieved for SVN projects (especially the various ones hosted on Google Co...

Git versus Mercurial for .NET developers?

I've been wondering what is the better DVCS for .NET developers? From reading various information it has sounded like Mercurial works better on Windows, but other information claims that Git has caught up and surpassed Mercurial in offering quality Windows and Visual Studio tools. Does anyone have good recent information or experience ...

How to properly setup Mercurial plugin for Eclipse?

Just added Mercurial plugin (1.4.12.86) to Eclipse (Web Dev Version, Build id:20090920-1017), and got this error on startup: Cannot run program "hg": CreateProcess error=2, The system cannot find the file specified Found a thread on the same problem, but have no idea how to fix it. Here's more from the log: !SUBENTRY 1 com.vectrace....

hgignore: help ignoring all files but certain ones

I need an .hgdontignore file :-) to include certain files and exclude everything else in a directory. Basically I want to include only the .jar files in a particular directory and nothing else. How can I do this? I'm not that skilled in regular expression syntax. Or can I do it with glob syntax? (I prefer that for readability) Just as a...

Mercurial Client with SVN Support for Windows

Are there any Mercurial clients for Windows that have integrated SVN support? Our build server uses SVN and there are no plans to move towards Mercurial, but I prefer Mercurial over the other distributed source control clients I have tried (e.g., Git). I've looked into TortiseHG and the Mercurial homepage, neither of which seem to integ...

Provisioning mercurial server

I'm in need of a software (not a service) that has a web API to both create as well as interact with mercurial repositories. In my mind's eye I imagine the API might look like: POST /repos name=foo Creates a repository at /repos/foo, which then works as per hgwebdir.cgi. Does such software exist? If not, any recommendations about...

Is it possible to "read" a mercurial repos from a browser using javascript?

I want to be able to list the files and directories of a mercurial repository in a web browser using javascript. ...

Retrieve revision number in VS with qmake

My current workflow: hg update (or whatever one uses to check out a revision) MyProject.pro → qmake → MyProject.vcproj Open Visual Studio, edit files Build project During the build step, how can I update my config.h header file with information from version control system (e.g. hg id)? MyProject.vcproj is generated by qmake, so I sh...

Handling renames: svn vs. git vs. mercurial

How do each of these vcs handle renames? I have found a lot of contradicting information stating that git tracks loc's instead of files, renames would therfefore have no meaning for it. ...

Mercurial - how do I populate repository descriptions for hgwebdir.cgi?

Currently if I specify a description in hgwebdir.config it shows up the same for each repository. I want to have a unique name for each repository. Where and how do I set this? My hgwebdir.config looks like this at present: [web] style = Gitweb contact = BrianLy description = Same description for all. I want a unique description. allo...