mercurial

TortoiseHg can't commit--"The system cannot find the file specified"

I just picked up TortoiseHg to use for distributed source control on Windows and installed it on my C drive. Then I created a repository (located in D:\projects). When I try to commit the changes, it gives me the error "abort: None: The system cannot find the file specified" in a new window titled "Commit". This causes the commi...

How to create mercurial tag with a space

I would like to tag a changeset in Mercurial to 'Distribution 1.0'. Unfortunatly I cannot find a command line command for creating a tag with a space in it's name. When I use hg tag -m "Distribution 1.0" (double quotes) I get the help for the hg tag command indicating that I have an error. When I use hg tag -m 'Distribution 1.0' a tag wi...

Can I prevent push on a local repository?

Currently my setup is this : External SVN repository --> local svn working copy, transformed in a mercurial repository --> clone of this repository as subrepo in my application repo The external SVN is a library which I don't have any privilege on. Basically, I want to prevent pushing changes to my svn/hg hybrid repositor...

Is there a way to use bitbucket to fork a subversion project?

I have commit rights to a sourceforge project that is owned by the other, primary developer. I'd like to manage my own changes using mercurial, and in fact I'd like to publish them as a fork of this project on bitbucket. However, I want to be able to easily push changes back to the main subversion project; this won't be a hostile fork, j...

TortoiseHG: undoing Guess Rename --> Accept Match

I'm using TortoiseHG and am trying to handle a renamed file. Unfortunately, I accidentally clicked Accept Match for one of the files and want to undo it. How do I do so without hurting the files I'm trying to commit? ...

How does Mercurial work with many developers?

I look at Mercurial repositories of some known products, like TortoiseHg and Python, and even though I can see multiple people committing changes, the timeline always looks pretty clean, with just one branch moving forward. However, let's say you have 14 people working on the same product, won't this quickly get into a branch nightmare ...

Eclipse: which files to store in version control for GWT project

I'm working on a GWT project in Eclipse with Mercurial for revision control. Which files should I store under version control? Or, perhaps more succinctly, which files should I not store since they are either part of GWT or are artifacts of the build process? I'm using Eclipse Helios and GWT 2.0.4. This question would apply to any vers...

Git vs Mercurial vs SVN

Possible Duplicates: For home projects, can Mercurial or Git (or other DVCS) provide more advantages over Subversion? What are the relative strengths and weaknesses of Git, Mercurial, and Bazaar? What are some of the differences between these source control system? Which one is the best for a small 2 people project? ...

Has anyone used "hstart.exe" ?

What I trying to do is to run hg commands using firefox extension without showing command prompt window all the time. I initiate process with hg.exe file and then execute hg commands by passing arguments in to it. process.init("hg.exe"); args["update"]; process.run(true,args,args.lenght); But I am confused how I am going to use hsta...

Is it possible to peg a Mercurial subrepo to a specific revision (like svn:externals)?

I'm migrating a set of projects from Subversion to Mercurial. The projects currently use svn:externals to pull code from one into the others. I've been following the recommendation to point externals to a specific revision number and manually update it as needed (so that when I update to a past revision of the main project, I get the pas...

How to save output result of hg commands in a file ?

I am trying to save output of Mercurial commands in a file hg init > log.txt but its not working. Any ideas? ...

Mercurial bulk delete

I've just recently moved a lot of my Views and Controllers into more appropriate locations and am now wanting to pull down recent changes from our central repo. I've done a hg pull which worked fine and asked me to do a hg update to bring the changes down locally. This in turn informed me that I needed to do a hg merge however when I tr...

accessing one mercurial repo with different methods

Hi. I want to make the same (physically same) Mercurial repository accessible via ssh and https (hgwebdir). Are there transaction problems when ssh users and http users push at the same time? ...

Whats the Mercurial hg clone syntax to clone a repository to a folder on a local file system

Hi, Whats the Mercurial hg clone syntax to clone a repository to a folder on a local file system. Say I have a repository in C:\MyProject\ and I want to create a clone in G:\Version Control\MyProject\ - what would the command line be? Thanks ...

How to get a visual diff of two non consecutive versions of a file using Mercurial TortoiseHG?

We used to use Visual Source Safe and there was one neat feature that I can't find in TortoiseHG. You right click on a file and click "Show history". VSS opens a list of versions for that file. Then you select two versions (ie: version 50 and version 47) and click the compare button to launch a visual diff of the two versions. How can I...

With Mercurial, common practice to create 2 or 3 clones of the same project as standby?

I heard that if we are working on a feature and then we need to fix something quickly, we can make a temporary clone and then fix the bug, and push to the central repo. First of all, is the temporary repo cloned from the central repo or from our local repo? Also, is it good to clone 2, or 3 repos from the central repo to our hard drive...

How can I get the changes from a "master" repository?

I create a "server" clone from a project hosted at code.google.com. I create a clone from that repository in my machine and push some changes; everything goes well. Now the master repository has some changes and I want to pull them. How do I get my "server" clone updated with those changes? ...

How to compare two revisions in Mercurial?

I need to know what files have been added/modified/removed between two revisions. What I do: hg status --rev 10:11 It looks okay. But when I have only one revision (initial = 0) it doesn't work. # not work hg status --rev 0:0 # also not work as I want hg status --rev 0 There is no revision -1. ...

Using Mercurial, how to diff with a fixed revision if commit intermediate states often?

Using Mercurial, say if I do an hg pull and hg up and now the local repo and working directory are both up to date. What if I commit often, say 1 day later, and then 2 days later, and want to diff with the revision as of right now? Otherwise, the diff is always comparing to the previous committed version. I can use pencil and paper an...

Mercurial - How did my commit get split off (see pic)?

What's going on with the line that split out on it's own? I did a commit and then I did a pull for the repository and then an update. What caused this? How do I get that split part back into the main line? ...