[MPlayer-dev-eng] svn policy change [RFC][PATCH]

Michael Niedermayer michaelni at gmx.at
Fri Aug 11 21:20:59 CEST 2006


Hi

On Fri, Aug 11, 2006 at 06:07:33PM +0200, Diego Biurrun wrote:
> On Sun, Aug 06, 2006 at 10:03:31PM +0200, Michael Niedermayer wrote:
> > 
> > --- svn-howto.txt	(revision 19349)
> > +++ svn-howto.txt	(working copy)
> > @@ -145,11 +152,10 @@
> >  
> >  9. Reverting broken commits
> >  
> > -  There is no Subversion equivalent of the 'cvs admin -o' command. Instead,
> > -  be very careful about what you commit! If somehow you broke something,
> > -  revert the changes locally and re-commit with a proper commit message.
> > -  You may want to use 'svn cat -r<revision> <filename>' to inspect an older
> > -  revision.
> > +  You can revert a change by using svn copy from an old revision or by 
> > +  reversing the change locally and re-commiting with a proper commit message.
> > +  if the change was total nonsense like a policy violation or someone
> > +  commiting the wrong file then svn copy is the correct way to reverse
> 
> How about
> 
>   Subversion does not support completely removing revisions. If you
>   goofed up badly you can use 'svn merge' to undo changes from a
>   revision locally.  Say the bad revision is 12345, then do
> 
>   svn merge -r 12345:12344 .
>   svn commit
> 
>   from the root of the source dir. If in doubt, ask on the
>   mplayer-dev-eng mailing list before making an even bigger mess. After
>   undoing your changes in this way you can implement the proper solution
>   and commit as usual.

strongly disagree, this is identical to the current problematic text

its problematic as it makes reversals much harder to review, every reversal
would need to be manualy checked by someone to ensure that its really
reversing what it claims to reverse ...

as an (fairly realistic example) assume someone commits a few reindented files
without the maintainers agreement, after that he reverses it, both diffs on
svnlog will be maybe 100kb large noone will notice if the second in addiction
to reversing the first contains some malicious code (yes getting a svn account
is easy just send a few good patches ...)

with svn cp, the svnlog message will be a few lines and will say that the
old version has been copied over the new, no way to sneak any code in

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is



More information about the MPlayer-dev-eng mailing list