mercurial

How to change the default revision in Mercurial?

When I clone the following project http://code.google.com/p/signal-detector/source it comes in the revision marked as default, that isn't the latest nor the tip revision. I tried many merges to make the latest revision to become default, but I couldn't. How to do that? ...

Mercurial Hosting software, alternatives?

Are there any software packages available for hosting Mercurial repositories on my own server, apart from the very basic script that comes with it? I've looked over the PublishingRepositories wiki page at Mercurial, and the only viable alternative in that list is the hgwebdir script, which I've set up, but it's rather basic. Does anyon...

Version Control System for small, in-house team

We are a small, in-house development team (5 people) who are developing a few Joomla (PHP) components for release. We need a version control system of some sort (preferably with some soft of integrated bug tracking) and none of us have any experience. We currently all simply work on the same files on a central development server but ne...

How can I tell if a Mercurial command has been passed an option via an external hook?

Ideally I'd like an answer to the title question. However, for my particular case, I have a Perl script that I want to run from the precommit hook and I'd like to know if Mercurial was invoked with the -A option passed to the commit command (e.g. hg commit -A) and if it wasn't, is it possible to "pass" it in at that point? ...

Using hooks vs. wrapping commands in mercurial

What are the relative pros and cons for using hooks vs. using an extension that wraps a command for a particular task? In other words, what are the criteria for deciding whether to use hooks or wrap a command? Please also list the cases where one approach is the only option. One case I can think of is to add new arguments for existing ...

Mercurial .hgrc file

By default on Windows XP Mercurial stores the .hgrc file in (well, in my case) c:\Documents and Settings\srooks\. How can I change that location, and have it look for .hgrc file in, for example, c:\Configuration_Files ? Can it be done at all? ...

Adding uncommitted change into a new patch with Mercurial queues

The process of creating patches in Mercurial is as follows: Create patch with qnew -> Make changes -> Refresh patch What if I have already made (uncommited) changes and I want to add them to the queue? ...

How to fix Mercurial repository after collapse and rollback?

I used the Mercurial collapse command and then attempted a rollback). I now know that this is something that I shouldn't have done. hg status abort: working directory has unknown parent 'e1f07eea60bf'! The working copy contains a reasonably recent version, at least, but I can't commit it. hg commit abort: 00changelog.i@e1f07eea60bf: ...

Doing a 'diff/st' and ignoring the first line if it matches a specific criterion

In a repository for a well known open source project, all files contain a version string with a timestamp as their first line: <?php // $Id: index.php,v 1.201.2.10 2009-04-25 21:18:24 stronk7 Exp $ Even if I don't really understand why they do this - since the files are already under version control -, I have to live with this. The ...

Gateway time out in Mercurial

When using mercurial to commit, I first get this error files over 10MB may cause memory and performance problems and then when finally try to push , I get a a gateway timeout >hg push http authorization required realm: Bitbucket.org HTTP user: kunjaan password: pushing to * searching for changes abort: HTTP Error 504: Gateway Time-ou...

Deploying a Mercurial Repository to Production - Security Concerns and Tips

In my research, I found some concern around deploying an online PHP application while leaving its ".hg" folder or ".svn" folders in place on the production server. Unfortunately, I was not able to find a clear explanation as to why this is a concern. I would like to better understand this security risk. It seems to me that you don't...

Ignore specific line in files

My question is very similar to this one. I have the files under Mercurial version control and each file have a string: <modified-time>some time</modified-time> This line have created the an external tool, and the tool change this line periodically. I don't want to know about changes in this line and want to ignore the changes in this...

Mercurial ignore part of a directory

Been fighting with Mercurial's .hgignore for a while under Windows. I have a folder named Upload which is currently empty. I do want it tracked so I added a .empty file in it which work fine. I want this so that new developers doing an hg clone get the Upload document required for the application. Thing is I never want the folder to ...

Initialize Mercurial Repository with hg4idea in Intellij Idea

I have created a project that I wish to push to a remote repository. When I right-click the project in project view and "commit directory," it says there are no changes. ?? I see nothing under the Version Control->Mercurial. I just want to avoid having to run "hg init." Not that big a deal, but it would be nice to know. Thanks! ...

Is there any way to change how graphs are drawn in TortoiseHg?

Being used to how ClearCase draw graphs I find Mercurial's and TortoiseHg's way confusing at first glance. This is how I'd like it to be represented. With static positions for branches. E.g. Maintenance branch to the left/right always and preferably in a straight line and not the current spaghetti curved branch it is now (see below link...

Can hg log show only the ancestors of a given revision?

Hi all, One thing I really miss moving from svn to mercurial is that mercurial's hg log command insists on showing all history rather than only the history of my current working revision. For example, I'm working on a repo with a lot of check-ins to another head within my branch, and the first 20 log entries have nothing to do with my...

Join multiple subrepos into one and preserve history in Mercurial

Currently I have project consisting of multiple repositories, e.g.: +---Project (main repo) +---Core (subrepo) +---Web (subrepo) \---Tests (subrepo) Unfortunately the code between subrepos is quite coupled so it doesn't work nicely with branches. Is there any way to consolidate the subrepos into one main repository prese...

Pulled a repository using hg clone, but when using hg log can't see revisions.

Hi guys. I download my code repository from: hg clone https://[email protected]/sergiotapia/sharpdic And now I have the folders on my machine; I can open the solution and develop on it. Now when I run hg log I don't see the initial push I made. Shouldn't I be able to see the initial push on the log? I though cloning a repo go...

Mercurial; Possible to list the # of commits a certain user has made?

Is it possible? ...

How do I push specific changesets to a shared library repo in Mercurial?

I have a repo called MySharedLib, and another repo called MyProject. MySharedLib is included in many different repos by force-pulling (like a Jedi), and NOT using subrepos. If you clone MyProject, you are left with the following structure: /MyProject MySharedLib OtherStuff Files... MySharedLib is not a subrepo. Pulling in...