mercurial

Remote Mercurial without installing Mercurial

I have a server with ssh, that I want to use as a central repo. However I can not install mercurial on it. Therefore how can clients push to the server over ssh without having mercurial installed on the server. Thank You ...

Accidentally rebased only one of my change sets

I had 3 change sets that I wanted to rebase on top of the latest revisions. Unfortunately, I selected only one of them to be rebased and so this did a merge. Is there any way I can either undo the rebase or change it so the other two change sets get rebased as well? ...

Convert multiple files using Mercurial's Filter System

Is it possible to convert multiple, on-each-other-depending files using a filter? E.g. instead of converting a.zip to a.txt and b.zip to b.txt is it possible to convert a.zip AND b.zip to ab.txt? The problem is that a.zip and b.zip can't be converted individually, since a.zip contains data which is needed for the conversion of b.zip. ...

Is there a way to not have BitBucket ask for my password every time when doing remote Mercurial operations?

With all other Mercurial repos that I push to, I can set my username and password in my hgrc (actually, Mercurial.ini since I'm using Windows) for doing operations at a particular domain, and Mercurial won't prompt me for auth info. However, even with these settings in place, Bitbucket always asks for my password. My settings are as fo...

Maven + Mercurial for Build Numbers

I can't figure out how to get a Mercurial revision id put into my Maven build (ideally I would like it in the MANIFEST of my jars and war). The closest solution I could find is: mvn -DbuildNumber=`hg id -i` Which won't really work for Windows or my Hudson server. Luckily Hudson tags my builds but I would like some more assurance if t...

exclude directories from control mercurial

I have my GWT project set up with hg for version control, and want to exclude the generated files in the war/modulename folder entirely. I would prefer not to have to use an --exclude switch with every command. Is there a preferences file I can use to regularly exclude the directory? ...

For Mercurial (hg), if "hg heads" show 3 heads but 2 are branches, how to remove it?

is the proper way to hg up bugfix # <-- use that branch hg commit --close-branch hg up another_branch # <-- use another branch hg commit --close-branch hg up default and now hg heads will only show 1 head? Is this the proper way to close unused branches? Looks like if we hg up bugfix again and change some file...

What if in Mercurial, an "hg up -r <previous_revision_number>" is done, and some files modified, and committed by accident?

If just to see how a program behave, an hg up -r 1000 is done, while the current revision is 1020. Then some changes are made to 2 files, and accidentally, the files are committed. So now there are changes made from revision 1000 to 1020, and also some changes that is from 1000 directly to 1021... In this case, how should it be ha...

Kdiff3 always showing "Qt: qcolorFromCGColor: cannot convert from colorspace model: 0"

On Mac, I installed kdiff3 to use with Mercurial to do hg vdiff but every time, it shows Qt: qcolorFromCGColor: cannot convert from colorspace model: 0 Qt: qcolorFromCGColor: cannot convert from colorspace model: 0 Qt: qcolorFromCGColor: cannot convert from colorspace model: 0 Qt: qcolorFromCGColor: cannot convert from colorspace mo...

What is a practical use example of `hg copy file file2` using Mercurial?

Mercurial has an hg copy file file2 command and the change can propagate change at the first merge. The O'Reilly Mercurial book says that Mercurial is the only source control system that does that. What is a practical use of this? The book mentioned making a copy of the file and do bug fix, so the bug fix can propagate back to the ...

How to deal with committer name change in Mercurial

I have a project in Mercurial with a group of committers. Unfortunately, some of the committers has changed names several times, e.g. first it was "nickname", and then it became "Name Surname ", and then something else. Most of the repository analysis tools expect committer to have same name over the course of the project, so ideally I'...

mercurial + Apache gives 403 error

I have setup my repo at /home/adil/hg/sample-repo and want to serve it via httpd. I am following the tutorial at http://mercurial.selenic.com/wiki/PublishingRepositories#multiple and have created the hgweb.config file and have copied hgweb.cgi (renamed it to index.cgi) to /home/adil/web/mercurial/ My apache config (/etc/httpd/conf/httpd...

Mercurial or Git

Hello I need a good SCM with integration in Visual Studio 2010 and ability to work over internet, I mean other users should be able to checkin/checkout files through internet/network. I saw Git and its Extensions but I had problem with VS Integration. Its toolbar buttons and menu items didn't respond to my clicks, it just did nothing. I ...

pull files from a specific revision - mercurial

I have 3 repositories, each created with the same code base but different enough to warrant different repositories. My "dream" work flow would be to do work in the development repository and then pull these changes into the other repositories. I know I can do this with something like: hg pull -r X -f repo but this will give me all c...

Mercurial localhost "site" overview of code. Issues

Mercurial offers the ability to view the code, logs, branches, etc... on a local webserver. Simply entering the command "hg serve" in the folder of your project, will enable you to view all this on http://127.0.0.1:8000/ I have some issues here. 1) It seems like you can only do this for a single project at a time, since this reserves ...

Teaching Mercurial to SVNers on short notice

I just convinced two teammates in a class that I'm taking to start using Mercurial. When I learned it a few years back I just read the main site, asked questions on IRC, and played with it to figure it out. However, given the pace of the class I don't think either of them are going to want to take the time to learn it that way. I was ...

DVCS working on remote server

My workplace is considering moving to a modern (D)VCS which is something that I am pushing for. My boss is in on the idea and the current workflow would be to have a centralized repository where everyone can commit/merge their changes when a task is done, While working on a task each developer can have their own branch to work on and co...

What steps do I need to take in order to install Mercurial on a server where users on LAN can use as a repo?

I'm trying to install Mercurial on a server of something, or even a Linux box, and have users in an intranet log in to use as a repo for them. This is just an academic exercise I'm pursuing out of curiosity. I'll be using VMWare to simulate a lan. What would be the best OS to host the Mercurial software on? Thanks! ...

mecurial graphlog color and style

my hgrc: [ui] style=compact [extensions] graphlog= color= but hg glog has no color. and, how many style for hg log, help, man can't get any information. ...

where is mercurial official repository

The official mercurial web page can't find the entry of official repository, only download links, where is it, thanks. ...