Re: [PATCH] cvsimport: add support for new style remote layout
- From
Andy Whitcroft <apw@shadowen.org>
- Date
- Jun 4, 2007, 08:58 UTC
- Message-ID
- <4663D42A.7090201@shadowen.org>
- In-Reply-To
- <7vvee4n1et.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 16 quoted lines
> Andy Whitcroft <apw@shadowen.org> writes: > >> cvsimport creates any branches found in the remote CVS repository >> in the refs/heads namespace. This makes sense for a repository >> conversion. When using git as a sane interface to a remote CVS >> repository, that repository may well remain as the 'master' >> respository. In this model it makes sense to import the CVS >> repository into the refs/remotes namespace. >> >> Add a new option '-r <remote>' to set the remote name for >> this import. When this option is specified branches are named >> refs/remotes/<remote>/branch, with HEAD named as master matching >> git-clone separate remotes layout. Without branches are placed >> ion refs/heads, with HEAD named origin as before. > > Sounds good. Docs?
Heh, yep if its something wanted then it needs docs. Will drop a couple of patches following this email. The first is the documentation updates. The second adds a HEAD link matching git-clone behaviour, and handily calling cvs HEAD remotes/<remote>/HEAD which seems appropriate.
-apw