Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2014 18:54:47 -0600
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Alfred Perlstein <alfred@freebsd.org>, Baptiste Daroussin <bapt@FreeBSD.org>, git@freebsd.org
Subject:   Re: Making git-svn first class citizen of FreeBSD's repos.
Message-ID:  <54640157.70500@FreeBSD.org>
In-Reply-To: <5463FFBC.9050609@freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On 11/12/2014 6:47 PM, Alfred Perlstein wrote:
> git-svn work nicely with the FreeBSD repositories with two minor
> exceptions.

Thanks for working on this. I'd be happy to be able to use git-svn.

> 
> Those two minor exceptions may have been fixed today.
> 
> The two exceptions:
> 1) When adding new files svn props are a problem.  Specifically two issues:
> 1.1) There was no way to add properties to existing files.
> 1.2) Autoprops did not seem to work.
> 2) Removing directories in git-svn would not result in the directories
> being removed on the server.
> 
> I have what appears to be solutions to all three of these problems.
> 
> 1) Props:
> 1.1) A patch to git-svn is ports is here:
> https://github.com/splbio/git/compare/v2.1.2-git-svn-propset
> With this patch you can now do:
>   git svn propset svn:keywords FreeBSD=%H foo.c
> Then "git svn dcommit" will set that for you on commit hook.
> 
> 1.2) Autoprops, this is simple:
> Edit ~/.subversion/config
> Add the following lines:
>   enable-auto-props = yes
>   [auto-props]
>   *.c = svn:keywords=FreeBSD=%H

I think we need a 'propdel' as well. Too many times I've gotten into
situations where I needed to cleanup from bad auto-props.

>   ...
> 
> 2) Removing directories:
> Set the config var:  git config svn.rmdir true
> Now when you remove a directory, git-svn will remove it on the svn
> server as well.
> 
> I'd like to update the wiki page and get the at
> (https://github.com/splbio/git/compare/v2.1.2-git-svn-propset) into the
> FreeBSD ports tree, and possibly upstream it to git.
> 

Note it's been discussed upstream in *2009*:
http://marc.info/?l=git&m=125259772625008&w=2
> Let me know if you have any questions.
> 
> -Alfred


-- 
Regards,
Bryan Drewery


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)

iQEcBAEBAgAGBQJUZAFXAAoJEDXXcbtuRpfPO5QH/2f56cgPn8cKuKPPPE5xCGYl
CkBZChMGwnhPCAL/Pr+Z3WWPaXppi8RhwTcspres9SWICH+O07F1PLlKWEglNwSy
KFBk8zbQWpqdkyEz4wrUOdbt7NfvXlJM2NwTM4VuLCm5vOvenuZAbi5OyL0a0r9w
AJyDc0RfUhO9xTe4lvRcMj3hFAa6t4qM1k5xZnz06QF7KoUJlotBdM038qXvQZlq
p2xtgDG8PZfHmjZ1a5xw9jptQyjpsOUWXK2fe2TYRxE3I0LepYFpV1z46FHBg7F7
0bsps1Fer1Bb2dxCLM/wU7lM861u4BX5gnpl2KI8ij1xbsX40jY+om5SmZ6Jbbg=
=o1Pt
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54640157.70500>