Source Control – Distributed Systems vs. Non Distributed – What’s the difference?

The difference is in the publication process: a CVCS (Centralized) means: to see the work of your colleague, you must wait for them to publish (commit) to the central repository. Then you can update your workspace. You are an active producer: if you don’t publish anything, nobody sees anything. You are a passive consumer: you … Read more

Get certificate fingerprint of HTTPS server from command line?

The page at http://wiki.debuntu.org/wiki/OpenSSL#Retrieving_certificate_informations lists the command lines for that (and printing out the relevant information). From that page and some of the man pages, it seems like what you want is (for bash): openssl s_client -connect <host>:<port> < /dev/null 2>/dev/null | openssl x509 -fingerprint -noout -in /dev/stdin If you want the whole certificate, leave … Read more

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

On the one hand, SVN integration (with IDE, frameworks, wikis, …) is very mature, as well as its GUIs and code browsers (even though DVCS like Git and Mercurial progress every day). On the other hand, introducing a DVCS in an Enterprise environment is still not a trivial task: Some requirements are not easily met … Read more

Managing release branches in Mercurial

Here’s what I’d do: Make default your “mainline” branch. The tip of this branch is the “currently released to the public” version of your code. Critical bugfixes can be committed directly to this branch and merged into development branches. To start working on version 2.0, make a 2.0-dev branch. Commit changes for 2.0 to that … Read more

How do I set up Mercurial and hgweb on IIS?

I just had to install a fresh Mercurial instance yesterday, here’s updated instructions for 1.7: Install Mercurial (these instructions were tested with 1.7) Install Python (for Mercurial 1.7, you must use the x86 version of Python 2.6.6) You will need to download the hgweb.cgi file from the Mercurial source. You can download the source by … Read more

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

Update: Mercurial has added –amend which should be the preferred option now. You can rollback the last commit (but only the last one) with hg rollback and then reapply it. Important: this permanently removes the latest commit (or pull). So if you’ve done a hg update that commit is no longer in your working directory … Read more