Tag: mercurial

SVN & DVCS workflow – preserving history

Is it possible to create streamlined workflow using both VCS (preferably SVN) and DVCS (preferably Mercurial or Git)? Following facts describe desired workflow: There is one central VCS server. Main development happens on central server. Anyone outside core development team (let’s name him Joe) could take a snapshot of source code with complete history. Joe […]

What's the best way to manage multiple dependent projects in Git or Mercurial?

I have a dozen Java projects that depend on each other, and I frequently make changes that cross-cut all of them. However, many of the projects are libraries that could be used independently of each other as well. Right now I use mercurial subrepos, which works well except that very few third-party tools support it […]

How to do “replace with the latest from head” for a file with Mercurial?

In CVS, sometimes I do “replace with the latest from head” to abandon local changes to a file as the local changes might be messed up and one would like to start afresh with that file, while keeping any uncommitted local changes made to other files. How to do the equivalent in Mercurial and Git?

How much is Hg/Git repository corruption an issue?

Environment: 14 or so engineers/physicists/mathematicians (read: none really interested in spending their time on things like repo maintance and similar things) They will be using it, in terms of software engineering nowadays, for rather small projects, but one can expect that a lot of non-code stuff will also wind up in there (data files, some […]

source control structure for a kohana based project

i currently have several projects using kohana as a framework, and what i have at the moment is a directory structure like this project – application – system – modules the “project” dir is under mercurial source control, and i basically copy and paste modules that i use. and commit them to each project. however […]

Version Control: Managing Common Component Source

How do you manage common library source in a DVCS? Currently, my team uses Perforce to manage our software projects. Using Perforce’s “Workspace Mapping” feature, I am able to easily map common library source into dev application directories in a way that keeps the transformation between source management and dev project work transparent. For example, […]

Using Git or Hg, if the whole team is using pull and push from a central server, how is it different from SVN?

Say, if the whole team using Git or Mercurial is doing: (example in Mercurial (Hg)): hg pull hg update [edit files or add files, and test] hg add . hg commit -m “good” hg push I don’t see how it is different from using SVN? If the team never push or pull to another member, […]

How find most recent tag for current revision in Git/HG/Bzr?

Currently in my practice I use VERSION file to store: major=2 minor=0 fix=1 which mean that sources for product version v2.0.1 or newer. Before each release I must commit update to this file so tag with name tag2.0.1 or release-2.0.1 cover above content (and not previous version!). I think that it is possible to avoid […]

Total Count of Change Sets for Mercurial and Git

Is it possible to count the number of Mercurial/Git change sets with a simple command line with arguments?

git log format for mercurial

I like the way git displays its log(like in the man pages format). Is there any way I could customize mercurial to display its log(or glog) in a similar format?

Git Baby is a git and github fan, let's start git clone.