mercurial

Redirecting old changesets to other repositories

We have a hook in Mercurial that posts the changeset message and a link the changeset to our bug tracking software. We are using separate repos for each branch. When we are done with a branch we would like to push it to an archive repository and delete the original repo so that the Mercurial page of repositories doesn't get cluttered w...

commands of mercurial(hg) from dos prompt, how do this?

what are commands for incoming,pull,push commands using dos command promt from mercurial(hg), in details i want to know that how i do this.... Help me all ways..... Thanks ...

Where are the preferences for HGEclipse plugin in Eclipse 3.5?

Hi, I've installed HgEclipse plugin from the update site: http://hge.javaforge.com/hgeclipse From some reason, when I go to Window->Preferences, I can't find the category Mercurial under Team. Someone knows how to solve this? My eclipse version is 3.5 (Galileo). My plugin version is 1.5.0 I have hg 1.4 installed on my machine. I'm r...

cleaning out a Mercurial Repository

There are a bunch of file in the history of my hg repo that have been removed. They are causing the repo to get pretty big (several of them are images, and sql dumps from early in the project, among other things that never should have been comitted in the first place). How do I get mercurial to forget about that stuff and get my reposit...

Converting from Mercurial to Subversion

Due to lack of Mercurial support in several tools, and managerial oppression it has become necessary to convert several trial Mercurial repositories to Subversion in order to conform with the company standard. Are there any tools or suggestions for how to achieve this without a loss of revision history and the like? ...

why Mercurial doesn't authenticate first before push data?

I have a big size clone to push to google code, and it takes a long time for the authenticate dialog to show up after the push is fired up, so does TortoiseHg push data first authenticate second? if so, that's stupid. ...

Issues with using free Mercurial hosting like Bitbucket

I'm using Mercurial as my SCM, mainly because I like the ability to commit changes to a project even while offline. I'm going to be moving PCs soon and so I decided to look into finding some free Mercurial repo hosting so I don't lose my data. I signed up for a Bitbucket account and I noticed that they offer space for only a single priva...

Running Django Tests with a Precommit Hook

Hello, I would like to run all my django tests using mercurial's precommit hook. Whenever a test fails the commit will be aborted. The goal is to block build-breaking commits as often as possible. edit: Ended up using the external script route. Here is the reletant portion of my hgrc: [hooks] precommit = python ./pinax/projects/lgr/m...

Running Mercurial on a Flash Drive?

So I do a lot of work on a school computer. We can't install anything but we have most of our tools on our flash drives but I was wondering if there's a way to get Command Prompt to use Mercurial off of my Flash Drive. Let's say in theory that Mercurial's files were on my flash drive, where would I go from there? ...

Installing a source control without admin rights

I'm forced to use SourceSafe at my job. There is no way this is going to change. I would like to use another source control for my own need in parallel. I want to be able to keep an history of my modifications, branch easily and merge. I can install any application that doesn't requires admin rights. I cannot install Python or anything t...

retrieving logs from mercurial using api

I would like to retrieve logs from a mercurial repository using mercurial commands api. Unfortunately, mercurial.commands.log prints the messages to the stdout, instead of returning some nice list of revisions, like e.g. pysvn does. Can the be achieved easily? I would like to add mercurial support to my program and would like to do this ...

Mercurial: how can I see only the changes introduced by a merge?

I'm trying to get in the habit of doing code reviews, but merges have been making the process difficult because I don't know how to ask Mercurial to "show only changes introduced by the merge which were not present in either of its parents." Or, slightly more formally (thanks to Steve Losh): Show me every hunk in the merge that wasn...

Software similar to Bitbucket that I can self host

Hi, Is there a system similar to Bitbucket which I could self host? I've tried to look around in the net to see if there was something but I can't seem to find any. We're using Redmine right now but Redmine doesn't support multiple repositories per project. Features of Bitbucket that I would like to be able to do would include the abil...

How can I extract all changed files of a changeset in Mercurial?

Until recently we have been using SVN for all projects of our web studio, and there is a very convenient feature present in several clients like Subversive and TortoiseSVN that can extract all files that have been changed in a certain revision. Is there a way to do it in Mercurial? I don't care if it's done via a GUI or a command line, ...

Mercurial no-op merge to preserve history & close branch.

Revision 107 accidentally merged away all the changes from 100-106 Revision 108 was a hg revert --all -r 106, followed by hg commit, which was probably the wrong thing to do, since instead of merging the branch where I made all the changes, I've encompassed all the changes into one changeset with no description or history. A) How sho...

How can I configure Maven to commit to a Mercurial repository when I install:install

Maven's SCM plug-in doesn't appear to provide a "commit" goal. scm:checkin performs a commit AND push. I need to avoid the push. I'm simply interested in doing an hg commit during install:install. I'm not using the release plugin and don't need it yet. I'm simply working locally in a multi-module environment and want to ensure that my s...

Read mercurial repository from PHP

I want to be able to take a file in a Mercurial repository (Readme for example) and display it to the user. Is this possible in PHP? I do have command line hg installed on the server. ...

.htaccess : allow download of Mercurial archive but only that

Hello, I was fairly happy with my Mercurial setup until now. I use it for personal projects and it is hosted on a shared server at OVH (a French hosting provider). Currently, I have a .htaccess to protect my projects and only allow certain people to pull/push from my repositories. However, I would like to make the changesets archives p...

How to configure hosted Mercurial in TeamCity 5

This is probably a simple problem and I'm feeling exceptionally dumb because I can't find a any kind of documentation. I've just installed TeamCity 5 and I want to get files from my Mercurial hosting and there is two fields I just can't figure out. HG Command path. What should I put here? The path to a file containing what? Can I get a...

Mac/Django error message: "/mercurial/osutil.so: no appropriate 64-bit architecture"

I'm new to Macs (and quite new to Django) and I'm setting up an existing Django/MySQL site that uses Mercurial as a site package, on a new Macbook Pro. All was going well during installation - no error messages. I installed the default versions of most packages from macports. However when I try runserver, localhost shows the followin...