Questions tagged [dvcs]

DVCS stands for Distributed Version Control System. Use this tag for questions about DVCSes in general. If your question is about git, or another DVCS that has its own tag already, then use that tag instead of this one.

Distributed revision control system (DRCS), distributed version control or decentralized version control system (DVCS) keeps track of software revisions and allows many developers to work on a given project without necessarily being connected to a common network.

Most popular DVCS:

911 questions
13
votes
3 answers

Mac specific optimizations in ~/.gitconfig

I read that discussion about the content of "~/.gitconfig" on Linux: https://stackoverflow.com/questions/267761/what-does-your-gitconfig-contain I know some Mac specific optimizations, such as using "mate" as default editor: [core] editor = mate…
Benoit Courtine
  • 7,014
  • 31
  • 42
13
votes
2 answers

Can I add changes to staging area from another branch?

I have two branch, master new-features New features have a commit I want to add to master but I want the control how much I want to merge. I would like the option to add/reject changes for each line. Similar I can do with git add -p I have…
Sisir
  • 2,668
  • 6
  • 47
  • 82
13
votes
4 answers

How to best configure a central repository/multiple central repositories for Mercurial?

I am new to Mercurial and trying to figure out if it could replace SVN. Everyone I work with has used SVN, CVS and VSS (shiver), so this could be quite a large change. I have been very interested after reading about its merge and branch…
Mario
  • 3,405
  • 6
  • 38
  • 48
13
votes
1 answer

In bazaar, how do I change the default target of "bzr push"?

bzr push defaults to the first target you pushed to. If I now want to push to a different location, but don't want to manually enter it every time, how do I change the default?
Matthew
  • 28,056
  • 26
  • 104
  • 170
13
votes
3 answers

How can I tell Emacs my git branch has changed?

At the bottom of my Emacs 23 editor, I notice that Emacs is aware that I am working in a directory that is under version control, what that version control system is, and what branch I am currently on. Pretty cool! But say I am on the master branch,…
Houdini
  • 3,442
  • 9
  • 31
  • 47
13
votes
3 answers

Using Entity Framework Code First Migrations in a DVCS Project

I have always found version control a bit of an issue when it comes to database schemas. So - I am currently evaluating Entity Framework Code First Migrations and so far I'm really impressed. My question is, does anyone have any experience of using…
Chris Roberts
  • 18,622
  • 12
  • 60
  • 67
12
votes
5 answers

"bzr uncommit" equivalent in Mercurial?

Bazaar has a wonderful uncommit command, which simply undoes the last commit. Is there any equivalent in Mercurial? Edit: Bazaar's uncommit command does not modify files – it removes the last commit and associated data (useful, for example, when…
David Wolever
  • 148,955
  • 89
  • 346
  • 502
12
votes
2 answers

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

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 massive and not really small either. Let me first…
rtn
  • 127,556
  • 20
  • 111
  • 121
12
votes
3 answers

How can DVCS help scientific programming?

I'm doing some preliminary work in investigating how DVCS (the likes of Git, Hg, Bazar) can help in the process of scientific programming, especially for graduate students. I think I'm in quite a good position for this since I've been programming…
Tim Lin
  • 3,244
  • 2
  • 19
  • 17
12
votes
1 answer

How do I tell Git it got moves/renames wrong (false positives)

I'm merging two branches in git, having a week worth of work each and some of the files were moved or renamed and modified. Git seems to get the stuff completely wrong in some cases and it says file a was moved to file b when in reality they are…
Krzysztof Kozmic
  • 27,267
  • 12
  • 73
  • 115
12
votes
4 answers

vim plugins for version control

There are plugins like vcscommand that work for (almost) any vcs and plugins like fugitive that are specific to one vcs. What are the advantages/disadvantages of plugins like fugitive over vcscommand? What plugins (or other tricks) do you use for…
Eelvex
  • 8,975
  • 26
  • 42
12
votes
6 answers

Doing without partial commits the "Mercurial way"

Subversion shop considering switching to Mercurial, trying to figure out in advance what all the complaints from developers are going to be. There's one fairly common use case here that I can't see how to handle. I'm working on some largish…
David Moles
  • 48,006
  • 27
  • 136
  • 235
12
votes
2 answers

How to make mercurial ignore all hidden files?

I hate seeing nearly every directory in my repository list each file twice, once with a dot in front of it and once without. I tried adding .* to my .hgignore file, but it has no effect. Is this the wrong syntax, and more importantly, is it a bad…
user123003
12
votes
1 answer

Renaming directories with the Fossil DVCS

Is it possible to rename directories with Fossil? I've tried the obvious command: fossil mv oldname newname Fossil then informs me that it has done something: RENAME oldname newname However, calling "fossil changes" results in an empty list. As…
Ant
  • 4,890
  • 1
  • 31
  • 42
12
votes
3 answers

Git tool to remove lines from staging if they consist only of changes in whitespace

The point in removing trailing whitespace is that if everyone does it always then you end up with a diff that is minimal, ie. it consists only of code changes and not whitespace changes. However when working with other people who do not practice…
mxcl
  • 26,392
  • 12
  • 99
  • 98