dvcs

How to ensure database changes can be easily moved over DVCS using django

Overview I'm building a website in django. I need to allow people to begin to add flatpages, and set some settings in the admin. These changes should be definitive, since that information comes from the client. However, I'm also developing the backend, and as such will am creating and migrating tables. I push these changes to the hu...

Mercurial: Why would you maintain separate branches/versions of software in separate cloned repos rather than with tags?

I'm looking at the mercurial handbook, chapter 6 "Working with multiple branches". In there the author states that if you have separate versions/branches of the same software that it makes sense in an implied obvious way to host each branch of the software in a separate repository. I know that Mercurial supports tags (which is the way t...

How to "cat" a file in JGit?

A while back I was looking for an embeddable distributed version control system in Java, and I think I have found it in JGit, which is a pure Java implementation of git. However, there is not much in the way of sample code or tutorials. How can I use JGit to retrieve the HEAD version of a certain file (just like "svn cat" or "hg cat" wh...

Which DVCS is most conducive to experimenting?

I was wondering which DVCS is most conducive to experimentation i.e. branching, etc. I want something where anyone can quickly launch smaller projects and refactor code quickly. I want to create an environment where experimenting is cheap and can be discarded/merged easily. ...

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...

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...

How does git track source code moved between files?

Apparently, when you move a function from one source code file to another, the git revision log (for the new file) can show you where that code fragment was originally coming from (see for example the Viewing History section in this tutorial). How does this work? ...

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...

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 this, removing all trailing whitespace with your editor or a pre-commit hook results in an e...

Distributed source control for VisualWorks Smalltalk

One of the annoying things about Smalltalk is that it (usually) requires its own VCS, due to the way that it manages its source code. Squeak and Gemstone (at least in its GLASS version) have a DVCS called Monticello that works passably well. As near as I can tell, VisualWorks' main VCS, StORE, only works in old-fashioned centralized mo...

Restore previously removed code (not necessarily single or whole file) in git

I removed a class a feature from my code a while back and committed the removal. The feature was implemented as a single class with a BDD-style spec and a few other classes were altered in the removal commit as they made use of the feature. The commit is clean, in that the only change in the commit is the removal of this one feature. N...

How would you store encrypted information in public DVCS repository?

Hello Everyone, I have projects that multiple developers are working on. We all work off the same git repository. Currently, I do not store production server configuration in the repository, because the configuration files contain database credentials. I would like to start storing these configurations in the repository, so I'm thinki...

Git: merging public and private branches while while keeping certain files intact in both branches

Hi, I've read a few git questions here, but could not find an answer to this one: I have a public and a private branches where I want to allow certain files to diverge. Those are configuration files with passwords and my local customizations. I do want to be able to merge the branches both ways: from private to public and back, but...

Should I have to merge and commit every time I update my Mercurial branch on the production server?

I'm using Mercurial in a recent project. On the web server where I'm deploying the project I have a slightly different config file with production settings. The problem is when I pull and update, I often have to merge and commit as well. Is this the correct workflow? It seems strange that in order to be able to continue to update I h...

git: how to add/commit removals made via vanilla rm?

I deleted a bunch of files / directories from a git repository using rm, the Finder, etc. I'm looking for a git command that'll record these to the index as marked for removal. (As if I had called git rm on them.) I understand git add -u will do this, along with a bunch of other things. I'd like my command to exclusively handle removal...

How to authenticate users on TortoiseHg web server?

Hi, TortoiseHg web server configuration has an "Allow Push" parameter where I put the users allowed to push changes. But when I try to push I get an "authorization failed" error. How are the users authenticated? Where do the passwords come from? ...

Choosing DVCS - criteria

There are similar questions on SO but I'd like some clearer answers here. How important is DVCS not littering your working folder with files? (Alternately is single file repository a big plus to you?) How important is cherry-picking functionality (choosing arbitrary changes instead of lineage of changes)? How important is the speed of ...

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 far as I can tell, renaming directories is either not supported, not yet implemented o...

Bazaar (bzr) predefined locations

Bazaar has a Launchpad pseudo-protocol (lp:) that able the user to operate in remote branchs without write full Launchpad location, I'm searching a way to create my own pseudo-protocols in a way like this (similar to GIT): bzr remote my sftp://[email protected]/home/myuser/myrepo/ bzr push my:mybranch bzr push my:otherbranch bzr push ...

How suitable is a DVCS for the corporate environment?

I've been using SVN for some time now, and am pretty happy with how it works (but I can't say I'm an expert, and I haven't really done much with branches and merging). However an opportunity has arisen to put in some new practises on a new team and so I thought I'd take a look at DVCSs to see if it's worth making the jump. The company I...