Questions tagged [mercurial]

Mercurial is a fast, open-source, distributed version control system.

Filter by
Sorted by
Tagged with
16 votes
4 answers
17k views

Can you remove a file from Mercurial without removing it from the filesystem like Git?

I've got some files in a repo that I don't want tracked, is it possible to remove them without removing the actual files from the filesystem? This would be equivalent to git's rm --cached.
ghickman's user avatar
  • 385
3 votes
3 answers
2k views

How to handle files that don't need version control in mercurial

I am new to mercurial, and for the most part do LaTeX reports and statistical calculations in R using .csv and/or .sqlite files. Re LaTeX, all I really care is the .tex file. Re R, I don't need ...
Richard Herron's user avatar
3 votes
1 answer
3k views

How to get mercurial to ignore patterns from .hgignore correctly?

I have the following .hgignore: \.pyc$ yet in my hg st .pyc files still appear as modified and get committed with hg ci. I've also tried this .hgignore: syntax: glob *.pyc But with the same ...
GJ.'s user avatar
  • 9,843
2 votes
1 answer
266 views

Branch names not showing in Mercurial's tab completion

I have a development machine running mercurial 1.6.3. Tab completion in bash works great for completing commands, tags and branch names. I've set up a new machine with the same mercurial version (both ...
sa125's user avatar
  • 996
1 vote
3 answers
428 views

Installed Mercurial usin PPA repositroy, where can I get hgweb.cgi?

Ubuntu 10.10 Mercurial installed a la: http://icephoenix.us/linuxunix/installing-mercurial-1-5-or-1-6-on-ubuntu-lucid-lynx-10-04/ Is the hgweb.cgi script only in the source package or is it provided ...
davidosomething's user avatar
2 votes
1 answer
3k views

TortoiseHg; How to Connect to Server?

I'm starting a project with another partner of mine and have therefore resorted to using the Student Package from Kiln as a repository. I would like to get the bloody thing to work. I've looked at ...
IAE's user avatar
  • 121
0 votes
2 answers
233 views

svn/git/mercurial mirror

I'm looking for a simple solution to mirror different repository to a single svn server. My problem is the following: I have many dependencies in my projects, some are hosted on Google code, some in ...
h3.'s user avatar
  • 189
3 votes
1 answer
1k views

Mercurial: How I can use external tool for diff?

I want to use kdiff3 as a tool for comparing different versions of a repository. Is there a way how one can do it?
Timofey's user avatar
  • 1,321
1 vote
1 answer
401 views

Not able to install latest mercurial release on fedora

I am trying to install latest mercurial on fedora by doing sudo yum install mercurial . But doing so I am getting mercurial 1.1 that is not latest release .Current mercurial release is 1.6+ . Any ...
Ratn's user avatar
  • 11
0 votes
2 answers
952 views

Bash command not found (trying to integrate Beyond Compare with Mercurial and using it within Cygwin)

I'm trying to integrate beyond compare with mercurial and I've copy & pasted the necessary lines from the Using Beyond Compare with Version Control Systems page for mercurial into my .hgrc file ...
Jon Erickson's user avatar
  • 2,304
2 votes
1 answer
1k views

How can I disable color highlighting and marks of versioning in NetBeans?

How can I disable color highlighting and marks of versioning in NetBeans? (in my case, mercurial) PS: Now that I see, highlighting is on html tag attribute values, and doesn't respond to versioning, ...
Petruza's user avatar
  • 3,873
9 votes
1 answer
2k views

Git equivalent to hg update

I've used Mercurial for some time now, and am used to its workflow. Suddenly, I need to work with a Git repository, and I cannot make the install work from the head revision. In Mercurial I would ...
dimo414's user avatar
  • 716
7 votes
3 answers
5k views

Colors in cygwin being displayed as raw ANSI codes

When running command-line Mercurial with the color extension on, the colors appear as expected in the Windows command prompt (cmd.exe). However, in cygwin the colors are appearing as the underlying ...
Ash's user avatar
  • 3,014
3 votes
2 answers
6k views

Pulling from a Mercurial repository over ssh with non-default ports

I'm trying to pull changes from a server which has sshd on port 2345 and an hg server listening locally on port 5432. I already have certifcate-based authentication for ssh, so there no need for a ...
GJ.'s user avatar
  • 9,843
6 votes
2 answers
209 views

What to do next with Mercurial after I install it in my PC?

I have downloaded and installed Mercurial in my PC. However, I don't know what to do next. I thought it's like other programs; that after installing it'll just appear and then you can already use it. ...
anj's user avatar
  • 61
2 votes
2 answers
3k views

Mercurial What is Wrong with this command?

Y:\>hg -R Y:/mercFlow.cache/vm-linux rename Migration-2010/create_directory_stru cture.pl Migration-2010/create_directory_structure.pl2 abort: Migration-2010/create_directory_structure.pl not under ...
Joshua Enfield's user avatar
3 votes
1 answer
683 views

Auto-updating BASH prompts with Mercurial repository info

I have followed the directions outlined by Steve Losh to colorize and format my bash prompt, however, the prompt doesn't update. My export PS1 line looks like this: export PS1="\n\[$txtgrn\]\w\[$...
Austin Hyde's user avatar
  • 1,074
7 votes
3 answers
11k views

How do I clone a repository when I'm behind a proxy?

There's an option http_proxy which should allow access through proxy, but it's not clear whether this should be in the command line, .hgrc or some global variable. I tried it in the command line: hg ...
Vineeth's user avatar
  • 173
1 vote
1 answer
1k views

Mac OS X 10.6: run particular command line at terminal start up

I use mercurial and I need to run the command line below each time I open Terminal. export PATH="/usr/local/bin:$PATH" Is there any way to add this command line to Terminal start-up? So I don't have ...
art.mania's user avatar
  • 213
4 votes
1 answer
5k views

Mercurial [auth] section

I'm new to mercurial, and I'm trying to set up hgrc in such a way that I can push to the Google Code repository without having to type the password each time. I could just specify a https://user:pass@...
Felix's user avatar
  • 613
0 votes
1 answer
1k views

Mercurial says hgrc is untrusted in Emacs, but works fine from the command line

I've got some Mercurial checkouts in a directory that was mounted by root. Mercurial is usually suspicious of files that aren't mine, but I'm the only user here, so I put: [trusted] users = root ...
Ken's user avatar
  • 2,919
2 votes
4 answers
4k views

Mercurial 1.5.4 Can't Find osutil Module Using Ubuntu 10.04

I'm using Ubuntu 10.04 and I just installed Mercurial 1.5.4 from source (see this question for some installation trouble that I had). Now, however, when I invoke: hg I get the following: File "/...
gvkv's user avatar
  • 529
9 votes
3 answers
5k views

Installing Mercurial 1.5.4 on Ubuntu 10.04

I've downloaded the source and tried to install via the README instructions: sudo make install but I get the following errors: python setup.py build running build running build_mo warning: ...
gvkv's user avatar
  • 529
4 votes
2 answers
838 views

Why is the glog command gone for mercurial at ubuntu?

I am using ubuntu 9.10 and installed mercurial (hg) via apt-get. If I now call hg glog it says: unknown command 'glog'. I am using version 1.3.1 of hg. How can I fix this?
Karussell's user avatar
  • 258
5 votes
1 answer
3k views

Configure Mercurial for SSH on alternate port and specific key with a passphrase?

I'm trying to configure mercurial for use on a remote machine that has sshd running on an alternate port, and for which my login requires a particular key, which uses a passphrase. ssh is configured ...
NVRAM's user avatar
  • 838
0 votes
3 answers
1k views

Convert svn repository to hg - authentication fails

I'm trying to convert an existing svn repository to a mercurial repo with the following command hg convert <repository> <folder> My problem is that the svn repository's authentication ...
Kim L's user avatar
  • 145
1 vote
0 answers
425 views

hg clone has stopped working on my Vista box

I have a Windows Vista machine that has been connecting to http://hg.netbeans.org productively for awhile... until recently. Lately, when I attempt to pull or clone, the update appears to stall... I ...
vkraemer's user avatar
  • 111
3 votes
1 answer
2k views

Removing a file from TortoiseHg

I'm having problems removing a file from TortoiseHg. I make the clone, and there are a few test files which I want out. What is the procedure for removing a file from the repository?
bergin's user avatar
  • 151
0 votes
1 answer
689 views

hg add -X not working

I'd like to hg add excluding files that begin with ._, or even better exclude all hidden files. It's not working, it's just completely ignoring my -X option. I tried the following: hg add -n -X '._*...
o0'.'s user avatar
  • 2,327
0 votes
1 answer
325 views

Interrupted system call during "hg convert"

When I run "hg convert" to convert a Subversion repository to Mercurial, I get this error: fetching revision log for "/trunk" from 1538 to 0 run hg sink post-conversion action Traceback (most recent ...
Aaron Digulla's user avatar
4 votes
1 answer
1k views

Converting Mercurial Repository To Sub Version (SVN)

This may seem like a very strange situation. Initially we were using subversion (SVN) for version control... then we moved to mercurial and used a tool to convert our previous commits to a mercurial ...
alexganose's user avatar
2 votes
1 answer
1k views

Mercurial mirror: abort: No such file or directory: http://[...]/00manifest.i

I am trying to setup a daily mirror of a mercurial repository - code.python.org in particular - within our local network, and serve that via Apache HTTPD. On the remote host that hosts apache, I did ...
Sridhar Ratnakumar's user avatar
0 votes
1 answer
662 views

Problem running mercurial against symlinked .hgrc file under Cygwin/Windows 7

This is not a question about handling symlinks in the mercurial repository. I have this setup at work where I keep my dotfiles in a separate directory (.configuration) that I can use to synch my ...
emptyset's user avatar
  • 431
4 votes
2 answers
526 views

Can I recover a rm -rf-ed Mercurial repository?

I made the mistake of wiping out my entire project directory with a quick "rm -rf project". Of course, the .hg directory went with it. I had about 15-20 changesets, that I have not pushed to anyone, ...
K. Norbert's user avatar
2 votes
2 answers
336 views

Textmate unable to find Mercurial hg

When I attempt to run Mercurial diff from within Textmate, I get an error "Couldn't find hg." hg works from the command line and is in my path. Any suggestions?
user avatar
4 votes
1 answer
3k views

Tortoise HG "Out of Memory" While Trying to Clone Repo

While trying to clone a ~500 MB repository onto my local drive using mercurial, I repeatedly get the "Out of Memory" error. I have 2 GB of memory and I have never seen this. I installed the latest ...
enesviem's user avatar
1 vote
1 answer
717 views

Pushing only certain changes to all branches in Mercurial

I have a mercurial repository with numerous branches for stable, development, experimental features etc. However, I've found a bug in a set of core application files that are common to each branch. ...
richzilla's user avatar
  • 2,413
1 vote
1 answer
198 views

Trouble installing Mercurial 1.5 on Mac OS X 10.5.8 (without using MacPorts)

I'm having trouble installing Mercurial 1.5 (build 20100307) from the prebuilt installer on Mac OS X 10.5.8 (2006 Core Duo MacBook Pro). The machine has never had the mac developer tools installed. ...
user avatar
37 votes
7 answers
10k views

Mercurial. Colour output piped to less

Operating system: Mac OS 10.6.2 I'd like to be able to see colour output when piping certain commands through less. Two examples: I've got ls aliased to ls --color=auto, so I'd like to be able to ...
mmacaulay's user avatar
  • 683
5 votes
6 answers
2k views

What's a good text editor with Mercurial support? [closed]

I'm looking for a decent Windows editor with solid Mercurial support. I've had some trouble with Notepad++ (the Windows Explorer plugin was constantly crashing). What are some alternatives? I'm not ...
richzilla's user avatar
  • 2,413
1 vote
1 answer
920 views

Merge only a one remote branch into a local branch with Mercurial

I wan to manage some profiles as XML files in Mercurial repos. The setup I'm thinking of: Each user has a repo with a branch where he manages his own profile, and a number of branches where he can ...
Pepijn's user avatar
  • 555
0 votes
1 answer
601 views

Can't install Mercurial on Mac OS X 10.5.8

When selecting the volume in the installation program it says "You cannot install Merucrial on this volume. Mercurial requires Apple Python 2.6". I tried installing the latest version of Python from ...
user avatar
1 vote
1 answer
1k views

Using TortoiseHg's Repository explorer

I'm coming from a TortoiseSVN background and decided to give TortoiseHg a try. One thing I got really used to with TortoiseSVN was the SVN Repo-Explorer, which worked quite similarly to Windows ...
krebstar's user avatar
  • 219
7 votes
6 answers
2k views

bitbucket on my own server

I want to have something like bitbucket.org or github (but for mercurial!) on my VDS. I don't need full functionality, but I need it being able to serve repositories, accept changes (with auth!) and ...
valya's user avatar
  • 908
3 votes
4 answers
15k views

Installing Mercurial on Mac OS X 10.6

I'm trying to install Mercurial on Mac OSX 10.6, but I'm having problems: I have Mac OS X 10.6, so I downloaded Mercurial 1.4.3 for OS X 10.6 from http://mercurial.berkwood.com/ I install the ...
art.mania's user avatar
  • 213
2 votes
2 answers
434 views

MediaWiki and Mercurial (Hg) Integration

Context: Our availability requirements are pretty loose. If our Virtual Private Server goes off-line, I need to be able to replace it within a few days. That's no problem because the data and logs ...
Oddthinking's user avatar
1 vote
1 answer
539 views

Netbeans - Subversion and Mercurial in one project

i have php project which is versioned under svn. Now i started to do local versioning throught hg. The subversion, for collaboration with team, remains. After restart netbeans working with the project ...
Mailo Světel's user avatar
16 votes
3 answers
15k views

How do I remove outgoing changesets in Mercurial (hg)

when I run hg out I have 3 outgoing changesets. I want to trash them and revert to how things are in the central repository. How?
adambox's user avatar
  • 945
46 votes
3 answers
20k views

How to add an empty folder in a Mercurial project?

In my project, I am using Mercurial and a folder in when the user can upload file. But since the user will upload files, the folder is empty. I don't know how I can add this folder to my project ...
Natim's user avatar
  • 1,667
17 votes
3 answers
30k views

How do I prevent a "No supported authentication methods available" error when using TortoiseHg?

I'm trying out Mercurial for the first time but am having problems doing a push/pull/clone with a remote server (in this case it's codebasehq.com) when using TortoiseHg. Here are some steps to ...
jammus's user avatar
  • 1,304