mercurial

Mercurial .hgignore: Some questions on how to ignore a single file

There's a particular file in my repository, libraries/database.php, that I need ignored. However, I can't get the syntax to recognize the file - I've tried **/libraries/**/database.php and libraries/database.php in glob, and ^.libraries/database.php in regex, but neither of them work. What should I do? ...

Mercurial `hg clone` but ignoring all subrepos?

Is there a way to clone a repo that comes with subrepos, but without having Mercurial pull all the subrepos? It appears that while hg clone -U can be used to obtain an empty clone of a repo, there's nothing that would convince hg update to avoid starting off by pulling all of the subrepos. I should point out that it is crucial to retai...

What should I put in hgignore to avoid mercurial follow the contents of a subdir?

For instance I have a folder PROJECT/db/ Where a lot of files are created, I want to prevent hg from keeping track of those files but keeping the db folder ? ...

Transplanting into one changeset

Hi, I'm trying to move changes from a couple of changesets into one changeset on the other branch. There are other changes in between that I want to skip, so I don't want to simply merge everything. hg transplant moves the changes correctly, but now I'd like to flatten them into a single commit. How can I do that? ...

hg clone git:.... aborts: failing connection?

When trying to clone a git repository using Mercurial over hg-git: hg clone git://github.com/rails/rails.git destination directory: rails importing Hg objects into Git abort: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host ha...

How can I retrieve only a subdirectory from a Mercurial Repository?

I'm trying to sell our group on using Mercurial as a source repository rather than VSS. In the process of updating our build scripts, I'm running into an issue trying to retrieve files from the Hg repository. Our builds are automated with NAnt and currently work for local builds or builds from VSS (ie, pull the source as needed from VSS...

Mercurial: Pushing a changeset to Repo A and somehow Repo B has it too?

I have a repo on the server named "Gold" that exists as my production repo, a repo named "Silver" on the server that acts as a dev repo, and then obviously one or more repos on my local client. Strangely enough, when I push a changeset from my local dev machine to Gold, Silver also somehow gets the changeset. We are running Mercurial on ...

Why is my hgweb server so slow?

I am serving up access to many mercurial repositories using hgweb, providing them as a collection: [collections] /home/me = /home/me/projects This serves them up at localhost/projects I have around 30 repositories at that location, in a source tree with a fair number of other, non-mercurial-managed projects. hgweb is really slow to ...

Mercurial: how do I revert to a particular revision?

I'm working on a live server. I've updated to tip and it's caused problems: I need to revert back to a particular changeset (388) where things were OK. I have no changes of any value on the server, the local changeset does not matter at all. In fact I actually want to kill any local accidental changes or merges so as not to confuse thin...

How to view revision history for Mercurial file?

For a given file in a Mercurial repository, how can you see the revision history? And how can you diff two revisions of the file? Ideally doing all this with visual tools (we use ExamDiff to do some other diffs). I'd say this is basic source control functionality but I can't seem to figure out how to do this with Mercurial. ...

Deploying changed files from repository?

Hi everybody, I have tested both mercurial and SVN recently, and I fell for Mercurial to solve my version control needs. However, I have files in my repo, that I work on locally and commit my changes to daily. I have yet not found any way to deploy files to a remote production environment from my local testing environment. How can I d...

How to rename a java class and it's usages with Mercurial support?

Hi there, when you rename a java file, it's class definition in file and it's usages should be changed. does mercurial support this feature? I'm using Intellij Idea and unfortunately it doesn't support mercurial. I want to track rename task with mercurial completely similar to all Idea does with subversion. can anybody help me? thanks...

Problem with Mercurial hg serve command

When using the hg serve command in windows, the server starts correctly, but when somebody tries to do a clone, this error appears. $ hg serve listening at http://machineX:8000/ (bound to *:8000) ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 4456) Traceback (most recent cal...

Beyond Compare as default diff tool in Eclipse when using Mercurial?

Is there any way to make Beyond Compare 3 the default diff tool in Eclipse? I'm using the Mercurial plugin and would like to use BC3 for diffing files and handling merge conflicts. I'm only able to find solutions when it comes to CVS or SVN when searching this site. ...

Mercurial Pushing closed branches

I'm trying to figure out why Mercurial thinks I'm trying to create a new remote branch in this situation: Is it just trying to inform me that the branch will show up in the meta-data as a closed branch? I'm on Mercurial v1.6.1023 Edit: the only branch on the remote repository is named "default" ...

Mercurial (Hg) and Binary Files

I am writing a set of django apps and would like to use Hg for version control. I would like each app to be independent of the others so in each app there may be a directory for static media that contains images that I would not want under version control. In other words, the binary files would not all be in one central location I would...

In Mercurial, after "hg init" to create a project and pushing onto server, how to make local directory to have "hg path" of the server?

When a project is started with mkdir proj cd proj hg init [create some files] hg add file.txt hg commit hg push ssh://[email protected]/proj now when hg path is issued, nothing will show. How do we actually change the repository so that it is as if it is cloned from [email protected]/proj ? Is it just by editing .hg/...

In Mercurial, "hg rename" works but the history doesn't follow the file?

I remember in SVN, I can rename a file from foo.txt to foo2.txt and all the history will follow (log file of foo2.txt will show all history of foo.txt as well). But on Mercurial, seems like that's not the case. When a hg rename is done, then hg log foo2.txt will not show any previous history of foo.txt? Is there a way around it? ...

funny that when .hgignore is added for Mercurial, this file itself shows up as "?" in hg status?

Is it normal? So you just need to add \.hgignore to the list to ignore itself? ...

Copy data from Mercurial repostiory site to local directory using command line

This is the site http://hg.sagemath.org which has Mercurial repository. I have to collect all name tags first and when you click one of the name tags respective link gets open which has all files or directory which I need to copy to local directory if there is any changed. My setup will be as below the command prompt login to the Merc...