Questions tagged [mercurial]

Mercurial is a fast, open-source DVCS (Distributed Version Control System).

mercurial
Filter by
Sorted by
Tagged with
51 votes
2 answers
7k views

Describe your workflow of using version control (VCS or DVCS) [closed]

I'd like to learn other people workflow when using either vcs or dvcs. Please describe your strategy to handle the following tasks: Implement a feature Fixing bugs (during development and deployed ...
edwin.nathaniel's user avatar
52 votes
9 answers
8k views

Distributed Version Control Systems and the Enterprise - a Good mix? [closed]

I can see why distributed source control systems (DVCS - like Mercurial) make sense for open source projects. But do they make sense for an enterprise? (over a centralized Source Control System such ...
Raj Rao's user avatar
  • 9,028
75 votes
7 answers
30k views

Partial clone with Git and Mercurial

Is it possible to clone only one branch (or from a given commit) in Git and Mercurial? I mean, I want to clone a central repo but since it's huge I'd like to only get part of it and still be able to ...
pablo's user avatar
  • 6,392
526 votes
9 answers
42k views

Git and Mercurial - Compare and Contrast

For a while now I've been using subversion for my personal projects. More and more I keep hearing great things about Git and Mercurial, and DVCS in general. I'd like to give the whole DVCS thing a ...
TM.'s user avatar
  • 110k
144 votes
6 answers
24k views

Merging: Hg/Git vs. SVN

I often read that Hg (and Git and...) are better at merging than SVN but I have never seen practical examples of where Hg/Git can merge something where SVN fails (or where SVN needs manual ...
stmax's user avatar
  • 6,586
726 votes
25 answers
657k views

What is the Difference Between Mercurial and Git?

I've been using git for some time now on Windows (with msysGit) and I like the idea of distributed source control. Just recently I've been looking at Mercurial (hg) and it looks interesting. However, ...
411 votes
7 answers
70k views

How and/or why is merging in Git better than in SVN?

I've heard in a few places that one of the main reasons why distributed version control systems shine, is much better merging than in traditional tools like SVN. Is this actually due to inherent ...
Mr. Boy's user avatar
  • 62.2k
99 votes
3 answers
46k views

How to export revision history from mercurial or git to cvs?

I'm going to be working with other people on code from a project that uses cvs. We want to use a distributed vcs to make our work and when we finish or maybe every once in a while we want to commit ...
tatsuhirosatou's user avatar
306 votes
11 answers
137k views

How to search through all Git and Mercurial commits in the repository for a certain string?

I have a Git repository with few branches and dangling commits. I would like to search all such commits in repository for a specific string. I know how to get a log of all commits in history, but ...
Josip's user avatar
  • 6,705
206 votes
11 answers
49k views

Git interoperability with a Mercurial Repository

I use GIT on a Mac. Enough said. I have the tools, I have the experience. And I want to continue to use it. No wars here... The problem is always with interoperability. Most people use SVN, which is ...
Hugo Sereno Ferreira's user avatar
93 votes
6 answers
12k views

Why is branching and merging easier in Mercurial than in Subversion?

Handling multiple merges onto branches in Subversion or CVS is just one of those things that has to be experienced. It is inordinately easier to keep track of branches and merges in Mercurial (and ...
Nick Pierpoint's user avatar
12 votes
2 answers
5k views

Transferring legacy code base from cvs to distributed repository (e.g. git or mercurial). Suggestions needed for initial repository design [closed]

Introduction and Background We are in the process of changing source control system and we are currently evaluating git and mercurial. The total code base is around 6 million lines of code, so not ...
rtn's user avatar
  • 130k
166 votes
7 answers
25k views

Mercurial .hgignore for Visual Studio 2008 projects

What is a good setup for .hgignore file when working with Visual Studio 2008? I mostly develop on my own, only occasionly I clone the repository for somebody else to work on it. I'm thinking about ...
Johannes's user avatar
  • 3,002
27 votes
5 answers
24k views

Printing Unicode characters to the PowerShell prompt

I'm trying to set up Mercurial to print out the status of the repository I'm currently in with PowerShell. So far, I have everything working, but I would like to be able to print '☿' to the prompt ...
tghw's user avatar
  • 25.3k
254 votes
7 answers
183k views

Mercurial — revert back to old version and continue from there

I'm using Mercurial locally for a project (it's the only repo there's no pushing/pulling to/from anywhere else). To date it's got a linear history. However, the current thing I'm working on I've now ...
Paolo's user avatar
  • 22.4k
237 votes
22 answers
33k views

Mercurial for Beginners: The Definitive Practical Guide

Inspired by Git for beginners: The definitive practical guide. This is a compilation of information on using Mercurial for beginners for practical use. Beginner - a programmer who has touched source ...
132 votes
6 answers
20k views

Named Branches vs Multiple Repositories

We're currently using subversion on a relatively large codebase. Each release gets its own branch, and fixes are performed against the trunk and migrated into release branches using svnmerge.py I ...
James Emerton's user avatar
8 votes
4 answers
3k views

how to ignore files in kiln/mercurial using tortoise hg "that are part of the repository"

We use tortoise hg with Kiln. In my vs 2010 c# project there are some files that are part of the repository but I would like tortoise hg to ignore them when I make a commit. For eg., say in a login ...
Gullu's user avatar
  • 3,529
325 votes
5 answers
114k views

What is the difference between hg forget and hg remove?

I want mercurial to remove several files from the current state of the repository. However, I want the files to exist in prior history. How do forget and remove differ, and can they do what I want?
Paul Nathan's user avatar
  • 39.9k
299 votes
8 answers
128k views

Convert Mercurial project to Git [duplicate]

I need to convert a mercurial project to a git project, but I would like to keep the commit history intact. My current solution was to just remove hg related files and then git init && add ...
gandolf's user avatar
  • 3,414
277 votes
8 answers
181k views

How to save username and password with Mercurial?

I used Mercurial in a personal project, and I have been typing my username and password every time I want to push something to the server. I tried adding the following to the .hgrc file in my home ...
satoru's user avatar
  • 32.6k
96 votes
11 answers
27k views

With Mercurial, how can I "compress" a series of changesets into one before pushing?

Let's say I have a local and a remote Mercurial repository. Now, I start working on a feature. I work on it, and when I think it's done, I commit the changeset. Testing it a bit more, I find that I ...
Lucas's user avatar
  • 6,338
54 votes
2 answers
18k views

Mercurial Remove History

Is there a way in mercurial to remove old changesets from a database? I have a repository that is 60GB and that makes it pretty painful to do a clone. I would like to trim off everything before a ...
Jake Pearson's user avatar
  • 27.4k
36 votes
2 answers
9k views

Mercurial Subrepos - How do you create them and how do they work?

Situation I have two .NET solutions (Foo and Bar) and a common library that contains ProjectA, ProjectB, and ProjectC. Foo and Bar reference one or more library projects, but the library projects are ...
devuxer's user avatar
  • 42.1k
8 votes
1 answer
2k views

How do I clone a repository and preserve the file time stamps?

How can you get a copy of the source code from the server on a new machine, but preserve the file time stamps? With the following procedure, all the time stamps are set to the current date/time. ...
Chris Vesper's user avatar
338 votes
12 answers
146k views

How to edit incorrect commit message in Mercurial? [duplicate]

I am currently using TortoiseHg (Mercurial) and accidentally committed an incorrect commit message. How do I go about editing this commit message in the repository?
maxyfc's user avatar
  • 11.2k
226 votes
10 answers
167k views

Is there any way to delete local commits in Mercurial?

So I keep making a silly mistake in Mercurial. Often times, I'll start work without doing an "hg pull" and an "hg update." When I try to push my changes, I get an error. Is there any way to delete ...
user191535's user avatar
  • 2,281
182 votes
9 answers
56k views

Abandoning changes without deleting from history

There is a commit that just didn't work, so I want to abandon it without deleting it from history. I have updated from an earlier revision and committed, thus creating a new head. I don't have ...
o0'.'s user avatar
  • 11.8k
142 votes
15 answers
18k views

What are the relative strengths and weaknesses of Git, Mercurial, and Bazaar? [closed]

What do folks here see as the relative strengths and weaknesses of Git, Mercurial, and Bazaar? In considering each of them with one another and against version control systems like SVN and Perforce, ...
Jordan Dea-Mattson's user avatar
73 votes
9 answers
22k views

How do I set up Mercurial and hgweb on IIS?

I've been looking all over for decent instructions on how to get hgweb working on IIS but I haven't found much of worth. There's this "step by step" on the Mercurial wiki, but it's not very good. ...
Kevin Berridge's user avatar
72 votes
6 answers
39k views

What's the easiest way to commit and push a single file while leaving other modifications alone?

I'm relatively new to Mercurial and my team is trying it out right now as a replacement for Subversion. How can I commit and push a single file out to another repository while leaving other ...
Ted Naleid's user avatar
  • 26.6k
55 votes
5 answers
79k views

Get certificate fingerprint of HTTPS server from command line?

Recently Mercurial has added certificate validation when connecting to HTTPS servers. I'm trying to clone the wiki repository for a googlecode project at https://wiki.pydlnadms.googlecode.com/hg/, but ...
Matt Joiner's user avatar
53 votes
8 answers
19k views

Mercurial: How to ignore changes to a tracked file

I have a file with database settings in my project which I have set to some defaults. The file is tracked by Mercurial and checked in. Since this file will be edited with different values various ...
Svish's user avatar
  • 155k
47 votes
2 answers
8k views

Managing release branches in Mercurial

Recently I switched from SVN to Mercurial. Now I wonder how to realize my intended branching work flow in Mercurial according to good practice, hoping other developers understand what happens in the ...
Oben Sonne's user avatar
  • 9,923
31 votes
11 answers
7k views

Can we finally move to DVCS in Corporate Software? Is SVN still a 'must have' for development? [closed]

Git/Mercurial have been becoming more and more popular. I have seen plenty of articles comparing SVN with Git/Mercurial, but I am wondering if there is really any reason to still use SVN. It seems ...
Conceited Code's user avatar
15 votes
6 answers
8k views

Source Control - Distributed Systems vs. Non Distributed - What's the difference?

I just read Spolsky's last piece about Distributed vs. Non-Distributed version control systems http://www.joelonsoftware.com/items/2010/03/17.html. What's the difference between the two? Our company ...
Randy Minder's user avatar
  • 47.8k
213 votes
5 answers
87k views

Hg: How to do a rebase like git's rebase

In Git I can do this: 1. Start working on new feature: $ git co -b newfeature-123 # (a local feature development branch) do a few commits (M, N, O) master A---B---C \ newfeature-123 ...
jpswain's user avatar
  • 14.7k
74 votes
4 answers
23k views

Can I change the username on a mercurial changeset?

I didn't set the username on my development computer and made a few commits. Can I retroactively change the username so it's clear who committed these changesets?
Dan Goldstein's user avatar
63 votes
10 answers
10k views

Mercurial (and, I guess Git) with Dropbox: any drawbacks?

I have a Mercurial repository for a personal project, and I have been storing the master repository in my Dropbox for a few weeks now (something along this line; and I understand it's also possible ...
daphshez's user avatar
  • 9,460
61 votes
2 answers
11k views

Is there a way to use a Mercurial repository as Git submodule?

I been happily using submodules to track all the libraries my project depends from. The thing is I'm using a library called core-plot that only has a public mercurial repository. I can probably ...
dvicino's user avatar
  • 1,489
54 votes
5 answers
19k views

Mercurial: Merging one file between branches in one repo

When I have two branches in Hg repo, how to merge only one file with another branch, without having all other files from changeset merged? Is it possible to merge only certain files, instead of whole ...
Jox's user avatar
  • 7,152
361 votes
11 answers
119k views

Mercurial stuck "waiting for lock"

Got a bluescreen in windows while cloning a mercurial repository. After reboot, I now get this message for almost all hg commands: c:\src\>hg commit waiting for lock on repository c:\src\McVrsServer ...
jm.'s user avatar
  • 23.6k
213 votes
5 answers
68k views

Mercurial: Can I rename a branch?

We now have a "stiging" branch, where "staging" seems to be a far better semantic fit. What's a good strategy for handling this?
KevDog's user avatar
  • 5,783
119 votes
2 answers
15k views

Mercurial .hgignore for Visual Studio 2010 projects

Not to be confused with Mercurial .hgignore for Visual Studio 2008 projects I was asking whether if that same file can be reused for Visual Studio 2010, or some other extensions, etc should be added ...
Shady M. Najib's user avatar
118 votes
8 answers
70k views

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?
R. Martinho Fernandes's user avatar
87 votes
8 answers
95k views

Diffing between two entire directories/projects in hg or git?

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 ...
meder omuraliev's user avatar
64 votes
2 answers
19k views

Graft vs. Transplant

The release announcement for Mercurial 2.0 mentions a new graft command, which on first sight looks similar to the transplant extension. What is the difference between these two? Does cherry picking ...
Lars Tackmann's user avatar
61 votes
10 answers
24k views

Mercurial cherry picking changes for commit

Say, I made many changes to my code and only need to commit a few of those changes. Is there a way to do it in mercurial? I know that darcs has a feature like this one. I know hg transplant can do ...
mansu's user avatar
  • 1,001
48 votes
9 answers
4k views

What makes merging in DVCS easy?

I read at Joel on Software: With distributed version control, the distributed part is actually not the most interesting part. The interesting part is that these systems think in terms of ...
Afriza N. Arief's user avatar
47 votes
6 answers
10k views

Handling renames: svn vs. git vs. mercurial

How do each of these VCS handle renames? I have found a lot of contradicting information stating that git tracks LOC (lines of code) instead of files, renames would therefore have no meaning for it.
Johannes Rudolph's user avatar

1
2 3 4 5
24