[Lazarus] Is there a way to checkout a specific subversion tag or branch in a Git mirror of a Subversion repository?
mailinglists at geldenhuys.co.uk
Thu Mar 26 10:55:42 CET 2015
On 2015-03-26 06:43, vfclists . wrote:
> Is there a way to checkout a specific subversion tag or branch in a Git
> mirror of a Subversion repository?
If your Git mirror cloned all the details you need (trunk, branches and
tags), then yes. Simply checkout the branch you want using "git checkout
-b <name_of_branch>". Setting up such a git mirror is quite hard though
(dependent on how SubVersion was abused) - at least it was when I last
tried to do it.
Some very clever git mirrors even translate SubVersion tags into Git
tags. But unfortunately that processes is mostly flawed because
SubVersion has no context of what a "tag" really is. To Subversion, it
is just another branch. And to make matters worse, many SubVersion repos
make extra commits to those tag-type branches. eg: the Lazarus and I
believe the FPC project does this (or used to). In terms of Git, a tag
is a pointer to one specific snapshot (commit) in a repository.
- Graeme -
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
More information about the Lazarus