mercurial

Mercurial .hgignore Negative Lookahead

Using Mercurial, I need to ignore all files except for those in a certain directory called "keepers". On the face of things, this seemed easy using Regex and Negative Lookahead; however, although I am able to verify my regex in Regex Buddy and other tools, in TortoiseHg, it doesn't work as expected. Files: junk\junk.txt junk\text kee...

How do I embed Mercurial tags into my C/C++ code?

Hi, I would like to know if there is a way to embed Mercurial tags into my C/C++ code. Basically I would like the tag string, which will end up being a release number (major.minor.rev), to be automatically inserted in a determined location of my C code as a static string. The overall objective is that the application could be querie...

Git style backup of binary files

I'm in process of integrating GIT version control system into 3ds max to control .max file versioning. I tested git with max files for several weeks and have found that it suites my needs, but, anyway, git is little bit overcomplicated for this kind of tasks. What I'm looking for is the program that works just like (well, almost) git, b...

How to pull changes from svn repos after migration to mercurial

Im working on a patch for an open source project that uses svn. I dont have commit access but I want to version track my own changes. I followed this guide to read and convert the svn repos into a hg one. I want to be able to pull new changes from the official svn repos into my own local copy, how can that be achieved? After the import...

Mercurial between server and local?

I have a portal development work in process... I had some troubles time to time like losing, overwriting wrong files, etc... So I decided to go for Mercurial for this development. My first experience with Source Control. I work on server [bluehost] for this project, is there any way to keep update backups at local? Do I have to setup Me...

Quick start with Murky for Mercurial?

I just started using Mercurial, and I'm having some difficulties. I'm using Murky for Mercurial. I have several projects' files at localhost, want to keep them local to work on, and then upload to a server. So: Created a folder named "_reps" at localhost to keep all repositories. Opened Murky app Repository > New Local Created rep as ...

Mercurial server on Windows using ActiveDirectory for authentication

I'm running Mercurial's hgwebdir.cgi on WinXP over IIS as a central repo for sharing code with my team. I'd like to use ActiveDirectory to authenticate to the server when pushing/pulling through TortoiseHg and/or the command-line hg client. Has anyone done this or seen instructions on how to do this? ...

Does SVN have an equivalent for "hg clone" in Mercurial or "git clone" in Git?

I have a URL for a Subversion repository and on the command line on Ubuntu I want to just download a copy of the repository as you would do in Mercurial by typing: hg clone http://svn.somerepository.com/somerepository/trunk/docs/ How do you "clone" a repository in SVN? Also, I just want to get everything below the docs folder - I don...

hg unbundle into new branch

Is it possible to unbundle bundled changesets into a new branch in a repository? I have tried switching to a new branch before performing the unbundle, but that doesn't work. Basically I have started a new development line and realized my commits should have been in a new branch. I've done hg strip to remove the changesets into a bundle...

is there a Mercurial installer equivilant to VisualSVNServer?

I am using windows 2003R2 VisualSVNServer installs and works easily. I have been tasked with reviewing Mercurial, but I'm having trouble setting up the directory for Apache. is there any equivialant of the VisualSVNServer installer for Mercurial? ...

How can I roll back a single change in Mercurial?

I made a change to a file in my mercurial project that I'd like to roll back, but I'd like to keep some changes that occurred subsequent to it: Revision 1: Original Revision 2: A change I made in error Revision 3: A change I want to keep I want to roll back ONLY the changes in Revision 2, leaving 1 and 3 applied, and create a new revi...

Tracking a build from Hudson to Mercurial Repo

I'm working on setting up a Hudson/Mercurial stack for development. One of the use cases I have is "As a developer, I want to update my local sandbox to a particular build number from Hudson, so I can [fix a bug, debug issues, create a branched version of code, etc.]." So, if I see build #49 on Hudson, how do I update my local Mercurial...

Mercurial installation issue

We've installed mercurial 1.4.1 and python 2.6.2 on a solaris 8 box. Now some hg commands work as expected, others fail. I was able to initialize a repository (hg init) and add a file (hg add) but the committing (hg commit) leads to an error message: abort: could not import module found! I need a hint where to look - I'm not a python...

Mecurial replacing values in a file that been cloned?

Say I'm cloning a repository that I always clone to C:\working_copies\<customer-name>\<customer-project>\ and that the project has variables in it's build.properties that get filled in with <customer-name> <customer-project> (by me) everytime I clone the repo. Is there a way that I can fill in these values in the file automatically by...

push and pull for offline reps + Mercurial.

Hi friends, I'm a new Mercurial user, I keep reps offline, and work offline. when everything is done at local, I do upload to server. is this right way? I dont have any rep at server, because of i couldnot setup mercurial to server [bluehost]. so I have nothing to do with push or pull. am I wrong? regards... ...

howto : make Tortoise Hg and Tortoise Svn co-exist

I installed Tortoise Hg(mercurial) on my box. I then installed Tortoise SVN on the same box. When I go to a folder and try the RIGHT MOUSE , I see the menu entries for "Tortoise Hg" and Nothing from "Tortoise SVN". What gives ? What can I do to make both co-exist peacefully ? It will be a nice idea if both the teams work together and c...

hg push with credentials for HTTP server

Hello. I have a HTTP server with some Mercurial repositories; in which I handle digest authentication, and I found myself pushing changes to the server too often, so, I wanna know If is there any way to send the credentials (user and password) along with the hg push command? Thanks ...

Installing Mercurial 1.4.3 - Python Requirement?

Is it ok if I install Python 2.6.4 instead of the 2.4 requirement listed on the Mercurial website? I'm fairly new to Mercurial and Python. My general impression of Python is that newer versions break compatibility with older versions. If Python is currently at 2.6.4 and Mercurial 1.4.3 lists Python 2.4 as a requirement, maybe they are ...

Keeping a single head at remote repo?

I'm sure this has been answered before/somewhere, as i assume it's a common issue, i just can't find it. Basically i have a head, of working code, and branches with various code paths. Like normal. Though when i push i do want all of these branches uploaded to the remote repo. I do so with push -f. Now the problem is my current working ...

hg equivalent of git notes

Is there a command in mercurial, that works like git notes? ...