[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Is it possible to delete last revision?

From: Zia Syed <zs_at_comp.rgu.ac.uk>
Date: 2004-12-10 18:49:02 CET

Hi,
Thanks for your replies. I've copied the .tmpl file to
pre-revprop-change in hooks directory. Restarted the svnserve and use
the following command in the checked out (working) copye of the code. I
get the following error...
 
[root@zs irman]# svn propedit --revprop -r 42 svn:log --username xx
--password xxxx
No changes to property 'svn:log' on revision 42

I've set SVN_EDITOR to gvim but i get the No change message before gvim
loads up. Any ideas?

Thanks,

Zia

On Thu, 2004-12-09 at 23:15, Patrick Smears wrote:
> On Thu, 9 Dec 2004, Zia Syed wrote:
>
> > Hi,
> >
> > I'm new to subversion and would like to know if it is possible to delete
> > the last revision from the repository? I've mistakenly commited some
> > code with known problems (my stupidity) in the repository, and would
> > like to delete it now just to keep the repository clean with last stable
> > version. If its not possible then I guess I will have to make another
> > revision.
>
> You can't delete a revision, but what you can do (if nobody has committed
> since) is to perform a dump of the repository (look at the documentation
> for 'svnadmin dump'), specifying only the revisions that you want (ie if
> you've just mistakenly committed r6, you'd dump r1-5, "-r 1:5"), and then
> delete/restore the repository from that dump - that will effectively
> remove the last revision. (But be careful, and preferably back up your
> repository before doing this!)
>
> > Also, is it possible to write comments to revisions after commit?
>
> Yes, use "svn propedit --revprop -r <REVNUM> svn:log". But by default this
> is not permitted - you'll need to set up a pre-revprop-change hook. That's
> much easier to do than it sounds: go into the directory <repos>/hooks, and
> rename the file "pre-revprop-change.tmpl" to "pre-revprop-change", and
> ensure it's executable. [ I'm assuming you're running Linux/other Unix
> here, if you're running Windows the procedure will be different... ]
>
> Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 10 19:19:11 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.