mercurial

HG update to revison problem

Using Mercurial, TortoiseHG, Win XP. I had a working directory with a number of files. Committed and ready. My syncing software [incorrectly configured] copied some very old files [from before I was using HG] into my working directory, overwriting many many hours of work. I wanted to go back to the last committed version, so I did "up...

How to do push from clone repository to Remote server respository using http/ssh protocol?

I have following windows configuration: Windows machine "A" has mercurial repository. hg server is running on "A" http I created clone of "A" on windows machine "B" After adding and commitng my changes in to clone, I want to push these changes to machine "A". Tried TortoiseHg: synchronize -> Push option, but getting below error: pushi...

Why Kiln is based on Mercurial, and not other (D)VCS

What were the reason for chosing Mercurial as a basis of FogCreek Kiln, a source control management system with tightly integrated code review, and FogBugz integration? Why Mercurial, and not other (distributed) version control system, like Bazaar, Git or Monotone, or creating own version control system like Fossil (distributed software...

Useful Mercurial Hooks

What are some useful Mercurial hooks that you have come across? A few example hooks are located in the Mercurial book: acl bugzilla notify check for whitespace I personally don't find these very useful. I would like to see: Reject Multiple Heads Reject Changegroups with merges (useful if you want users to always rebase) Reject C...

How can I organize/use Mercurial in a multi-location, non-networked environment?

My team has a local development network which is not physically connected to any outside network. This is a contractual obligation and CANNOT be avoided. We also have to coordinate with a team which located halfway across the country and, as previously implied, has no direct network connectivity to us. Our only method of transferring dat...

How to notify changes on a certain named branch on Mercurial?

I am aware of Notify extension by Mercurial, but it always notify on any push action. What I want is that a notification only when a certain branch (say, "stable") is updated because I need others to take action when this happens. What's the easiest way to achieve this functionality? ...

How to initialize google-code project in Mercurial

I have started a Mercurial based project on google code. I have worked in subversion for sometime, but I am confused with what to do what in Hg. I would like help on the following: How do I initialize project (first on my local machine) (then from my local copy to google's server) How do I get my copy of a build from the server How do...

git for mercurial like git-svn

Hello is there a tool for git that allow to work with mercurial repositories F.e. for svn there is a git-svn package, that allows to clone/commit/update from svn and work in a git way.. So is there some tool for mercurial for that ? ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I'm still a novice at both, but I realize they're much more modern and better, faster, distributed, etc. It's just everyone is so accustomed to CVS that I feel a whole slew of issues could arise if I were to be the one that recommended and actually did the upgrading/porting/t...

How to configure multiple user access control setting by acl extension in Mercurial repository

I have main mercurial repository (A) with 2 folders "depot1" and "depot2" in Windows Machine Following configuration is done in .hg/hgrc file of A repo. [ui] username = praveen [extensions] hgext.acl= [hooks] changegroup.update = hg update pretxnchangegroup.acl = python:hgext.acl.hook [acl] sources = serve push pull commit Then I ...

Mercurial over ssh client and server on Windows

I'm trying to configure Mercurial for use with both a windows server (freeSSHd) and client (both command line and TortoiseHG). I'm using the most recent versions of everything... all downloaded in the past few days. Using public key auth, I have been able to get connected to the server and I'm able to use plink to execute "hg version" ...

Can I squash commits in Mercurial?

I have a pair of commits that should really be just one. If I was using git, I would use: git rebase -i <some-commit-before> and then squash them. Can I do that in mercurial? If so, how? ...

suggestions for using PATH to executables with version control (Mercurial)

So I'm pretty new to version control but I'm trying to use Mercurial on my Mac to keep a large Python data analysis program organized. I typically clone my main repository, tweak the clone's code a bit, and run the code on my data. If the changes were successful I commit and eventually push the changes back to my main repository. I gu...

Moving incomplete code between mercurial checkouts

I checked out the codebase on my desktop computer and worked some on it. Now Im going away and want those changes on my laptop. One solution is to simply commit the incomplete code and then pull them on my laptop. But that would then mean that I have uncompiling code in the repos, something I would like to avoid. Whats the best way to ...

Sync files in Two Different Repos using HG

Hi All: I've got a problem when I try to sync files in two different repos. What I want to do is: I've got 2 repos A and B, and they share some common files, suppose they lie in A/docs/common/ and B/docs/common. So when I write some new docs in A and I want to update it to B or vice versa. How can I do? I try this: I write a .hgignor...

Are Mercurial's bundled extensions considered part of it's core feature set and approach to version control?

I'm currently trying to evaluate Mercurial, to get a feel for the philosophy the system tries to promote - but one thing that's got me confused is the presence of the bundled 'extensions' and how they fit into the mix. In the core package, Mercurial ships with a bunch of functionality that is implemented as extensions but is disabled b...

How are git branches imported into mercurial with hg convert?

I have a number of branches in a git repository: david@Panama ~/app: git branch -r origin/HEAD -> origin/master origin/master origin/newButtons origin/newFonts origin/serverView If I try and import this git repo into mercurial: david@Panama ~/: hg convert app ... david@Panama ~/app-hg: hg update 388 files updated, 0 files merged, 0...

Can I clone part of a Mercurial repository?

Is it possible to clone part of a Mercurial depot? Let's say the depot is quite large, or contains multiple projects, or multiple branches, can I only clone part of the repo? E.g. in Subversion, you might have trunk and branches. If I only want to get trunk (or one of the branches) I can just request [project]/trunk. If I clone the hg r...

how do you make use of AclExtension and mercurial-server/hg-ssh?

mercurial-server manages user database under keys folder. Users and groups are represented by files and folders. AclExtension relies on linux user group through ssh. they don't seem to match. or did I miss something? I have managed to make mercurial-server work. but just don't see how to integrate AclExtension with it so I may have f...

Subversion + Some other VCS (Git, Hg, etc) in the same working copy

Here's the deal: I just started a new job, and source control here is basically useless. All of the devs (about 10 guys) test their code in the same dev site, and there's no way to test a change other than commiting the change to SVN, and then it automatically gets updated in the dev site. (Let's not even start talking about the headache...