mercurial

Using Mercurial in a Large Organization

I've been using Mercurial for my own personal projects for a while, and I love it. My employer is considering a switch from CVS to SVN, but I'm wondering whether I should push for Mercurial (or some other DVCS) instead. One wrinkle with Mercurial is that it seems to be designed around the idea of having a single repository per "project...

Force an update in TortoiseHg?

I've pulled in some changes to read-only files from a remote repository and I'm trying to update my working area, but I get [Errno 13] ... Access is denied errors when TortoiseHg tries to update the read-only files. I'm wondering if there's a command, option, or setting that will solve this problem in the TortoiseHg GUI. I can't seem to...

Adding hooks to TortoiseHg

I am using TortoiseHg and would like to apply a hook to my repo. My repo's .hg/hgrc file is as follows: [hooks] pretxncommit = python:hg_checksize.newbinsize The thing is that I don't know where TortoiseHg's PYTHONPATH variable is set. How do I change it? Or where do I put my Python file so that it is visible by TortoiseHg's Python...

How to setup Mercurial central repository on shared hosting

Hey Everyone, I am trying to setup a central repository with shared hosting. I read all the way through this tutorial http://mercurial.selenic.com/wiki/PublishingRepositories to no avail. Here are the steps I took. 1. Copy hgwebdir.cgi file to directory at http://url.com/central_repository/hgwebdir.cgi 2. Added the following informatio...

tortoisehg and subrepos

I can't get Tortoisehg (1.0) to work with subrepos I have a directory structure like this: root .hg .hgsub .hgsubstate Customer1 Project1 .hg foo.txt Project2 .hg Customer2 Project3 .hg the .hgsub file under root looks like Customer1\Project1=Customer1\Project1 Customer1\Project2=Custo...

Print Current Mercurial Revision Hash?

Is there a better way extract the current revision hash in Mercurial than hg log -l1|grep changeset|cut -d: -f3 ? Part of my webapp deployment script "tags" the uploaded app tarball with its unique revision hash. ...

Monotone-increasing Version Number based on Mercurial Commits

When I was using subversion for the code for an application, I could append a period and the result of svnversion to the version number to create a unique and monotone-increasing version number and also be guaranteed that any check-out of the same revision of the code would generate the same version number. In Mercurial, because revisio...

Can MKS Integrity integrate with other source control tools? (SVN, Git...)

My boss is interested in using MKS Integrity for bug tracking, feature requests, Wiki documentation and so on. However, we currently use Subversion, and he doesn't want to force us devs to use a version control system that we don't like. Is is possible to integrate a different version control program into MKS Integrity? I'm particularly...

Mercurial Pull Error

I am new to the dvcs world. My company uses perforce and I'm not a fan so I thought I'd try to use mercurial as a front end. I set it up on a windows machine with TortiseHG, enabled the Perfarce extension, did a small checkout (limiting the target revision) and pulled for the rest. This seemed to be more robust than clone alone. This...

Which Distributed Source Control System has the best integration with Windows & Visual Studio?

It seems that both git and mercurial are rather Linux oriented. Which of them is more mature on windows? ...

Mercurial: Why do I get a 404 error when pushing to a repository whose URL I can hit in a browser?

I have a Mecurial repository that I can see just fine if I navigate to it in a browser, but when I try to do a push, with my default path set to the same URL that I visit in the browser, I get this: abort: HTTP Error 404: Not Found Should the URL that I push to be different in some way? ...

Mercurial Backup

How could I enable automatic (incremental) backups of a Mercurial (central/main) repository? I'm coming from subversion where I was able to make a commit-hook that uploaded changes to S3. Edit: If this sort of strategy doesn't make sense for Mercurial, what backup strategy would make sense? ...

Can I use Mercurial locally, and update from/push to a Subversion repository?

As a freelancer, I often work at companies who use Subversion repositories. It’d be handy if I could use Mercurial to get code from these repositories, track my changes when I’m offline, and then commit all my local changes to the company’s Subversion server when I’m back online. Does this work? Have you read any good tutorials on the ...

.hgignore for VB.Net (Express)?

Hello I didn't see a question on this subject in the archives, so here goes: For those of you experienced Mercurial users, is this a correct .hgignore file to tell VB.Net Express to ignore files/sub-dirs when adding items in a new repository? bin obj temp *.user *.suo *.ncb Thank you. ...

Is there a way to set custom file properties in mercurial?

Is there a feature in mercurial similar to subversion's propset command? What I really want is info about each file indicating whether it has code reviewed and QA'd. When a product is released every file in the tip will have these attributes/properties set. ...

Mercurial to Mercurial to Subversion Workflow Problem

We're migrating from Subversion to Mercurial. To facilitate the migration, we're creating an intermediate Mercurial repository that is a clone of our Subversion repository. All developers will be begin switching over to the Mercurial repository, and we'll periodically push changes from the intermediate Mercurial repository to the exist...

Difference between Revert and Update in Mercurial

I'm just getting started with Mercurial, and I've come across something which I don't understand. I made changes to several files, and now I want to undo all the changes I made to one of them (i.e. go back to my last commit for one specific file). As far as I can see, the command I want is revert. In the page I linked to, there is the...

Settings up a Mercurial server on IIS 6

Hi, I've set up a Mercurial server on a Windows 2003 / IIS 6 machine and when I try to pull the repository I get the following sequence requesting all changes adding changesets adding manifests adding file changes transaction abort! rollback completed abort: premature EOF reading chunk (got 91303 bytes, expected 1542634) I've tried p...

How to forget all removed files with Mercurial

I am new to Mercurial and after a cleanup of the image folder in my project, I have a ton of files showing with ! in the 'hg status'. I can type a 'hg forget ' for each, but there must be an easier way. So how can I tell mercurial to forget about all the removed (status = !) files in a folder? ...

Mercurial Novice - Very Confused

Hi All, Im in the process of trying to get my head round a dvcs such as mercurial. Im getting quite confused with certain points though. Firstly, a bit of context: At the minute i mostly use subversion, and it works fine for my workflow, Mostly the repository is for my own use, im the only web developer,and i only ever submit raw code ...