In Git the current revision hash is stored in
.git/refs/heads/master
Is there an equivalent in Mercurial that doesn't require me making a call to hg log -l1? I know I can get the current branch in .hg/branch.
This is to "display" the current hg hash on screen when browsing a web page.
...
I am about to start a project and was thinking of using Google Code to host it. It gives the option of using Mercurial or SVN for version control. I have never before used a VCS, and would like to know which one is easier to work with.
The project involves two main programmers, but a few others may contribute small amounts. It is mostly...
I'm using Mercurial and I've cloned a repo locally and upon hg push, I'm getting this:
abort: cannot lock static-http repository
What does this mean? Why can't it lock the static-http repository? Permission issue on the folder?
...
I guess this is a Eclipse question.
I have a mercurial repository with a source folder (src/main/java/) and some source code. The repository also contains a build.xml. After cloning the project into Eclipse using the Mercurial plugin I'm unable to configure a launch configuration for my project. Eclipse is unable to identify the newly c...
I'm looking for a version control system just for me on my windows computer to integrate into eclipse. I was thinking to use Mercurial instead of Subversion, but I'm having doubts about the mercurial eclipse plugin. Any input on this that you can help me with?
Is it worth it to have a version control system when you're working alone, ho...
Since I installed it on my Visual Studio 2010 beta 2 I couldn't make it work. I don't know if it is because it is incompatible or it is because I don't know how to use it.
...
I am not having any luck using Bookmarks in Mercurial for Git like branching.
From the article: http://mercurial.selenic.com/wiki/BookmarksExtension, I've set "track.current" to true in my .hgrc file.
Excerpt below:
By default, when several bookmarks
point to the same changeset, they will
all move forward together. It is
pos...
I read some information about named branches and working with bookmarks. Unfortunately I still don't see a difference between them. Is there any?
Is there any difference between:
hg branch blah
hg up blah
and
hg bookmark blah
hg up blah
?
Why would I use a bookmark and how is it different from a named branch?
...
I have multiple mercurial repositories and used hg clone to create backups of them on our file server. Now I want to write a batch file that updates them once a day by running hg pull -u on each subdirectory.
I want to keep this backup script as generic as possible, so it should update all backup repositories stored in my H:\BACKUPS\REP...
I'd like to make it so that every time I create a new repository, certain filters automatically get added to my .hgignore files by default.
For example, for C# projects, I would like these to be added:
glob:bin/*
glob:obj/*
Is this possible? How?
If it can't be automated, is it at least safe to copy the .hgignore file from one repos...
I inherited a project originally stored in CVS with all the revisions. I made quite a few edits, and I'm trying to compare all the changes I made in the original directory, in regards to new files added versus the old ones.
Is there some sort of utility for hg/git where I can do a tree diff, or something of that nature? So that say, the...
Is there a way to back up a mercurial repository while preserving the files' timestamps?
Right now, I'm using hg clone to copy the repository to a staging directory, and the backup program picks up the files from there. I'm not pointing the backup program directly at the repository because I don't want it to be changing (from commits) w...
Hey, I'm using Mercurial. I just found out that there is a .hg folder in my home directory. I presume it is keeping track of all mercurial repositories I have lying around in my home directory. Is this true?
Also , I need to move the .hg folder to another directory. Can anyone guide me as to how to do this?
Thanks
...
Windows fails to pick up my .hgignore file. I'm running Mercurial from the command line, and "hg status" shows lots of files in the ignored directories.
The .hgignore file looks like this (there's no whitespace at the start of the file, or at the start of each line). I've put it in the root directory of the repository.
\.pyc$
\.pyo$
\....
Ok, so I've only recently started getting serious about learning how to program, and I've started using Mercurial to manage my projects. I chose Mercurial over SVN because of it's ability to commit changes to a repo while not connected to the internet (these days I find myself in areas without internet access). I'm looking for a piece of...
I work in an environment with large scale multi-parallel branching. Looking at GIT I see it has several merge strategies:
already up-to-date
fast-forward
octopus
resolve
recursive
Does Mercurial have the equivalent of each of these? (ie is the implementation of Mercurial's merge algorithm as good as recursive?
...
How do you know how many developers were involved in a project using a Revision Control System? A friend of mine found this way to look up the answer in git log:
git log | grep Author: | sort -u | cut –delimiter=” ” -f2 | sort -u | wc -l
Is there a straightforward way in git? How about other Revision Control System like Subversion...
Hi,
I know there is hgsubversion extension for mercurial. But before I knew how it works, I maintain two separate repositories, one is SVN repo and one is Hg repo. I made most of my recent changes in the Hg repository and I need to "push" them to the svn repository.
The most straight forward way to do this is to get one revision from s...
I have a perforce repository on Windows machine say (p4). I can access this p4 repo using p4v client by providing IP:PortNumber details.
Now I want to run "hg convert" command on this p4 repository from Linux machine so that p4 will be converted in to "p4-hg" a mercurial repository.
Mercurial is already installed on linux box and "hg ...
I work on maintaining the same e-commerce web-app for multiple customers.
Originally there was a standard set of pages from which all the rest of the customers customizations were derived in the past.
Recently the place where I work decided to use Mercurial for version control. They've also decided to re-work the standard set of pages...