mercurial

Mercurial - Is it possible to merge changes from the trunk to a branch, within the same repo?

Mercurial - Is it possible to merge changes from the trunk to a branch, within the same repository? If yes, is it possible with TortoiseHg? ...

Using Mercurial with Visual Studio 2010

I am currently using Mercurial via Tortoise Hg for some of my side projects. I was wondering if there is tighter integration of Mercurial with Visual Studio 2010 via a plugin or some similar mechanism. What I'm thinking about is very similar to the git extensions which provide a plugin for VS. The plan is to eventually host the projects ...

Mercurial: show heads of one branch?

Is it possible to ask Mercurial to show only the heads of one branch? For example, I often want to double-check that default only has one head, but currently I need to do that "manually" (ie, checking the output of hg heads for more than one entry which is in default). ...

How to exclude files on trac's diff output with Mercurial?

We'd like to exclude certain files and certain types of files from trac's diff output. We used to set file type to binary on SVN in order to do that however that's not explicitly possible with Mercurial. We're using TracMercurial plugin. ...

How can I get hg to prompt for my HTTP auth username / password on cygwin / windows?

At home, this works perfectly. I'm on another computer now (using cygwin) and hg push will not prompt for a username / password: user@localhost /cygdrive/d/repos/upthescala/viewprotect $ hg push https://viewprotect.googlecode.com/hg/ pushing to https://viewprotect.googlecode.com/hg/ searching for changes abort: http authorization requir...

What's the best way to get a copy of the tip of a mercurial repository?

I want to do the equivalent of svn export REMOTE_URL with a mercurial repository. What I want at the end is an unversioned snapshot of the repository at the remote URL, but without cloning all of the changesets over to my local machine. Also, I want to be able to specify a tag in the remote repository to pick this from. If it's not obvi...

Mercurial - Copy latest revision to an arbitrary folder on commit if commit happens on a certain named branch (hook)?

I have a mercurial repository setup with a few named branches. I want to check if a commit occurs into a named branch of a certain name, and then push a copy of the head revision of the named branch to a "publish" folder. Example: Bobby commits a change to the "Development" branch. The script sees it was commited to the "Development" ...

How to make mercurial run script on push?

I have a server which hosts a mercurial repository with hgwebdir. Is it possible to make mercurial to run a script when someone pushes to this repository? Currently I use a script that checks the repository state every few minutes, but this is obviously an ugly solution. ...

How do you configure Komodo diff using tortoiseHg and beyondcompare?

I'm trying to configure Komodo IDE so that it integrates with tortoiseHg and my beyondcompare3 diff tool. The diff works fine in tortoiseHg, but when I try to do a diff in Komodo nothing happens, no errors, no windows, nothing. Found a similar thread for SVN but need to know what to set the "diff options" box to for tortoiseHg (mercurial...

Mercurial default repository

Hi, I'm facing a rather queer problem. I use an Ubuntu(Lucid Lynx-64 bit, to be specific) machine. I have a repository hg1/ which I cloned to hg2 as follows $ hg clone hg1 hg2 However, on issuing an "hg incoming" inside the hg folder I get the following message - Not trusting file /media/disk/myWorks/mercurial/hg2/.hg/hgrc fro...

TortoiseHG: undoing commit that fails

I've been using TortoiseHG for some time now and I've been running into the same issue once in a while. Sometimes, when I commit my work, it gives me an error, saying that one (or more) of my files is being used by another process. However, the commit still goes through and is visible in the repository browser. Next, after closing the ...

How to create repository on BitBucket remotely ?

Hi ALL, I want to create a repository from my local machine using hg commands on Bitbucket instead of creating a repo manually on Bitbucket. Is it possible ? Thanks in advance for your response. ...

Is there any way to see difference between last two versions of a file using hg commands ?

I want something like this hg vdiff filename.txt -lastRevision -secondLastRevision ...

Mercurial repository on FTP

Hi all. I wonder, if it's possible to create and serve to the clients Mercurial repository on the some FTP folder with RW access . Did someone do a thing like that ? Thank you in advance. ...

Username setup in TortoiseHG

I'm trying to set up a local repository with TortoiseHG. It's not linked to any remote repository; I just want to be able to manage changes on my own box. Creating the repository went fine, but when I go to commit, I get an error: Commit: Invalid username Your username has not been configured. Please configure your userna...

How to call hg commands through firefox extension ?

I am trying to automate hg commit and hg push commands , for that I need to call those commands from firefox extension (which I am working on). Is there a way to do it without using batch files ? ...

Group permissions reset on mercurial update

I've configured my hg repository according to the docs described here: http://mercurial.selenic.com/wiki/MultipleCommitters However, when I execute "hg update -C" to recreate the working copy locally, the file permissions have changed such that it eventually causes errors on push when other developers attempt to commit changes. Supposi...

Mercurial convert with filemap to separate subfolders creates empty repository

I have a large Hg repository (2+GB) that was converted from an svn repository. It has a number of websites in it, and we want to separate those out into separate Hg repos. The repositories are on a Windows 2008 Server and we're using the hg that comes with TortoiseHg. We've been trying to use the convert method with a filemap to create ...

How do I exit VIM when doing a command line mercurial commit?

I'm on a mac running snow leopard. I have mercurial 1.1 installed. After I hit "esc" to exit insert mode I can't figure out how to save and quit. Hitting control+c shows me instructions that say typing "quit" will write and quit, but it doesn't seem to work. ...

How to check whether a repository exist or not ?

I want to check whether repository exist on the given path or not before executing the process below..any ideas ? var exe = Components.classes['@mozilla.org/filelocal;1']. createInstance(Components.interfaces.nsILocalFile); exe.initWithPath("HG.EXE"); var process = Components.classes["@mozilla.org/process/util;1"]...