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

RE: How to correct Bogus Date on repository

From: Puig, Juan <JPuig_at_adium.com.uy>
Date: Wed, 19 Aug 2009 09:53:13 -0300


Many thanks Ryan, but I had to take this steps to finally get the svnadmin propedit working:

1) Enable a pre-revprop-change hook script to enable properties modifications on the repository server.

1a) Edit the file pre-revprop-change.tmpl in the hook directory of the repository, make it return 0 and add a message for testing in the form: echo "Message yours" >&2

1b) Save this file as pre-revprop-change (without .tmpl or .sh)

1c) Allow access to this file: chmod 755 pre-revprop-change

1d) Test: ./pre-revprop-change
The message you wrote should appear.

2) Set the Svn Editor. Run set SVN_EDITOR="notepad". This will set the notepad as the editor for modifying the date.

3) Modify the date property.

3a) svnadmin propget --revprop -r 99 svn:date http://myserver/repos/myrepo

This will prompt the notepad with the date of the revision 99 from the repository, not a working copy (this is why I set http://...), which in my case is correct, I copy this date.

3b) svnadmin propedit --revprop -r 101 svn:date http://myserver/repos/myrepo

This will prompt the notepad with the date of the revision 101 (which in my case is not correct) and I paste the copied date and modified the time.

3c) Close the notepad saving the changes. This explicitly modifies the date in the repository, not in the working copy.

3d) A message appears confirming the modification.

4) Check. I opened the Show Log and there is no connection error now!.

I read about what Lorenz send but changing this date resolved my problem, which I expect not appears again.


Juan Puig
IT - Aplicaciones Corporativas
Amedrugs Corp.

-----Mensaje original-----
De: Ryan Schmidt [mailto:subversion-2009b_at_ryandesign.com]
Enviado el: Martes, 18 de Agosto de 2009 13:24
Para: Puig, Juan
CC: users_at_subversion.tigris.org
Asunto: Re: How to correct Bogus Date on repository

On Aug 18, 2009, at 09:24, Puig, Juan wrote:

> I'm getting a connection error from tortoisesvn when going to Show
> Log. Apparently there are two particular revisions which are not
> available. I went to the repository server and found this:
>> Svnlook date -r 100 myrep
> 2009-08-04 05:23:40 -0300 (Tue, 04 Aug 2009)
>> Svnlook date -r 101 myrep
> Svnlook: Bogus Date.
>> Svnlook date -r 102 myrep
> Svnlook: Bogus Date.
>> Svnlook date -r 103 myrep
> 2009-08-06 11:54:53 -0300 (Thu, 06 Aug 2009)


> what I need now is to correct this date because each time I go to
> show log a get a connection error when trying to see this two commits.

svn propedit --revprop -r 101 svn:date

svn propedit --revprop -r 102 svn:date

These will bring up your editor (configured in the EDITOR environment
variable) and you can type in the correct date/time. For the correct
format of this property, look at its format in one of your other

svn propget --revprop -r 103 svn:date

La informaci?n contenida en este mensaje de correo electr?nico y sus anexos es estrictamente confidencial, con un prop?sito espec?fico, y s?lo puede ser empleada por la persona o entidad a quien se dirige. Si usted no es el receptor autorizado, se advierte que cualquier retenci?n, difusi?n, distribuci?n, copia o uso no autorizado de este mensaje y sus anexos est? prohibida y puede ser sancionada por la ley. Si este mensaje ha sido recibido por error, se ruega reenviarlo al remitente y borrarlo de forma inmediata.

The information in this e-mail and its attachments is intended to be strictly confidential, with specific purpose, and only for use of the individual or entity to whom it is addressed. If you are not the intended and authorized recipient, please be informed that any retention, dissemination, distribution, copying or unauthorized use of this message and its attachments is strictly prohibited and may be sanctioned by law. If you receive this message in error, please forward it to the sender and delete it immediately


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-19 14:53:42 CEST

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.