mercurial

Mercurial repository backup when hidden files can not be backupped

Our company policy is not to back up hidden folders. Is it possible to change the .hg folder name to something visible? ...

Mercurial 1.6 Web Interface on Windows Server 2008

I'm trying to get the Mercurial web interface running on my Windows Server through IIS. All the tutorials online are out of date and I've tried to stumble through them, but things are just too different between the Python, Mercurial, and IIS versions. Unfortunately, I'm stuck with a Windows server. Has anyone had any luck with this? ...

Branch per Release versus Code-Promotion Branches?

What are the advantages/disadvantages of Branch per Release versus Code-Promotion Branches strategies? ...

How do I always use the 'remote' version of a file in mercurial?

Mercurial newbie here, I'm working on a Django project that uses Sqlite as the database. I develop templates & UI stuff while my colleague works on the back-end code. We both push changes to Bitbucket. He is the only one who actually modifies the models and correspondingly, the SQLite file, however just by virtue of my testing the app, ...

Hg: How to mark a changeset as 'stable'

As the repository of hg itself, some changesets are marked with 'stable'. I am wondering how to add the 'stable' mark to changesets. I had googled but it doesn't help. I tried 'hg help tag' but still can not figure out how to do it. Do I miss something very basic? Thanks in advance. ...

Fill @version tag with mercurial in eclipse / Keyword substitution

Hi, I would like to fill the comment tag @version with mercurial in Eclipse. To do it with subversion I did this: Placed "@version $$Id$$" in the java source file. I right click on the project, select "Team -> set Property" Property name: Enter "svn:keywords" Enter a text property: Enter "Id" Check the option "Set property recursivel...

Best way to merge a git revision into a mercurial repository?

I have a git repository, which has changes that I am slowly bringing into a mercurial repository. (It's a weird history, and I'm hand checking everything, and just as well that I am). Currently, I've generating a diff using git diff, and merging it using patch. That had a few problems, so I switched hg import, which has problems of its ...

Mercurial Dummy Push

Is there a way with Mercurial to do a dummy push? I basically want to see what would happen in the event that I did a push with my current changesets. I remember this type of functionality being available in Subversion but I'm not sure how I'd go about it with Mercurial. The reason for this is that I'd like to see how many changes are...

Get list of changesets in a changegroup (mercurial python hook)

I want a mercurial hook that will run JSLint/PyChecker/etc on all files that are modified. However, I do not have control over all hg clients, and want this to run on push to the master repository (which I have control), so a pretxnchangegroup hook on the master seems best. How can I get a list of all changesets that are in the changegr...

How do clone a Mercurial repository into a directory that already exists?

Hello. I have a client's Django project that I'm developing locally, using Mercurial for version control. I push my local repository to my personal remote server (where I keep all my projects) and then when I come to deploy it (on whichever web server) I clone that respository there from my personal server. This works fine on most serv...

Can I add custom colors to mercurial command templates?

I want to use customized template for hg log which looks like this: hg log --template '{node|short} {desc} [{date|age} by {author}]\'n --color=always This in default terminal color is not very readable, so for instance I would like to make node red and desc green. How can I do this? In git I can define this kind of formatting like thi...

How to undo `hg pull` ?

I accidentally did a hg pull and it created a branch in my local repo. What is the simplest to undo that and get my local repo back to previous state? ...

Easy-to-backup version control for windows single developer

I really need to get started with source control because I'm going absolutely crazy keeping track of my code and modifications as it is. I'm a single developer on Windows. I use Eclipse for most of my development. Some of my projects are saved in wamp/www folder. Other non-PHP projects are in one or more Eclipse workspaces. I don't wor...

Mercurial Push Error on Google Code Value Error

Hello, I am trying to learn to use mercurial by pushing onto Google code. I have two .hgrc files: One file is located $PROJECT_DIR/.hg/.hrgc and $HOME/.hgrc. I have two separate files because I did not want to put the password out on the central repository. Here is the content of $PROJECT_DIR/.hg/.hrgc: [ui] usermane=Venkat S. Rao <v...

Pulling changes from a bugfixing Maven project in Mercurial w/o pulling the pom.xml

I maintain a project that is versioned with Mercurial and managed with Maven. When we released version 1.0, we cloned a release repository that would contain bugfixes and continued development on the main repository. The release repo had version 1.0 in the POM while the development repo had version 1.1-SNAPSHOT. Now, how can I pull bu...

Jira-Hudson-Mercurial integration

When a developer commits a bugfix, I want to be able to open up the relevant JIRA issue and see what Hudson build number contains this fix with the Mercurial changeset listed alongside. Extra points if this information is listed in its own tab (does not pollute the "comments" tab) but shows up alongside comments when the "all" tab is se...

How to specify a username with a @ embedded in a URL? ( Mercurial - MacHg related but not specificaly )

As MacHg (MacOS mercurial client) requests a password but not a username, the only way I have to include the login information for MacHg to connect to a mercurial repository server is to add it in the URL, as the help states. The problem is that I'm using a repository at Kiln.net where usernames are emails. So the @ of the email breaks t...

disable hg qfinish without changeset message

I use mercurial queues and sometimes I forget to set my message with a hg qrefresh -m ... and forget to check before I run hg qfinish and I get the message patch MyPatch finalized without changeset message. Is there any way I can make qfinish abort if there is no message? The only way I found to fix this after I do that is to generate ...

How can I ignore all directories except one using .hgignore?

I'm managing $HOME using Mercurial, to keep my dotfiles nice and tracked, or at least the ones that matter to me. However, there's a profusion of files and directories in ~ that do not need to be tracked, and that set is ever-changing and ever-growing. Historically, I've dealt with this by having this .hgignore: syntax: glob * This ...

Can I allow_push on individual repositories using hgweb.config [Mercurial]

In hgweb.config, the allow_push parameter applies to all defined repos defined in the [paths] section. Is there a way to allow push on one repo but not in another, or would I need to actually create completely separate configurations (and corresponding web apps) per repo then? (In case it matters, it's on Windows with hgweb hosted in I...