You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Puig, Juan" <JP...@adium.com.uy> on 2009/08/18 14:24:37 UTC

How to correct Bogus Date on repository

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)

At one moment when a user made a commit tortoise gave an error (we didn't write it down), in that moment there was no possibility of update or commit so I had to delete the file that the user had modified and imported it again (from the repository navigator). Also at that moment when there was no possibility to commit or update, the date wasn't showing in the repository navigator for the last commit.

I've been looking for this and found some solutions for this not to happen again, but 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. I found something for svn setrevprop but can't find the exact parameters to change the date property and how.

Any idea would be appreciated, I'm new in this mailing list so any indication on how and where to send questions is welcome.

There is some more things I found but I think with the info in this mail is enough, if not please let me know.

SVN Server: 1.6.1 on Linux/Apache
Tortoise: 1.6.3/1.6.4 on WinXP Sp 3
Sharing a working copy on a network directory. (knowing this is not recommended).


Many thanks in advice,

Saluda Atte.

Juan Puig
IT - Aplicaciones Corporativas
Amedrugs Corp.
Tel. (+598-2) 518.25.30 Int. 192


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

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2384784

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: How to correct Bogus Date on repository

Posted by Lorenz <lo...@yahoo.com>.
Ryan Schmidt wrote:
>> 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)
>>>
>>> [...]  but 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.
>>
>> I don't think correcting the commit date will help here, as TSVNs log
>> view has no problems with non-consecutive commit dates (they are only
>> revision property after all).
>>
>> The only point where commit dates are relevant to subversion is if you
>> use the date/daterange syntax to identify revisions.
>>
>> There must be more wrong with this revisions than the commit date.
>
>I don't think the problem is that the dates are nonconsecutive. I  
>think the problem is that the contents of the svn:date properties of  
>revisions 101 and 102 are not dates. Perhaps they are empty; perhaps  
>they are garbage.

I played around with my test repository (fsfs via svnserve - all
clients and server 1.6.4), corrupting files in revprops and/or revs to
various degrees.

I can't provoke a connection error when calling the log viewer.

The log dialog pops up normaly and after some flickering shows an
error describing (mostly) what I did to the repository.
-- 

Lorenz

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2385161

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: How to correct Bogus Date on repository

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Aug 19, 2009, at 00:55, Lorenz wrote:

> 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)
>>
>> [...]  but 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.
>
> I don't think correcting the commit date will help here, as TSVNs log
> view has no problems with non-consecutive commit dates (they are only
> revision property after all).
>
> The only point where commit dates are relevant to subversion is if you
> use the date/daterange syntax to identify revisions.
>
> There must be more wrong with this revisions than the commit date.

I don't think the problem is that the dates are nonconsecutive. I  
think the problem is that the contents of the svn:date properties of  
revisions 101 and 102 are not dates. Perhaps they are empty; perhaps  
they are garbage.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2385101

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: How to correct Bogus Date on repository

Posted by Lorenz <lo...@yahoo.com>.
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)
>
>[...]  but 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.

I don't think correcting the commit date will help here, as TSVNs log
view has no problems with non-consecutive commit dates (they are only
revision property after all).

The only point where commit dates are relevant to subversion is if you
use the date/daterange syntax to identify revisions.

There must be more wrong with this revisions than the commit date.
-- 

Lorenz

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2385096

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: How to correct Bogus Date on repository

Posted by "Puig, Juan" <JP...@adium.com.uy>.
SOLVED.


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.

Slds.

Juan Puig
IT - Aplicaciones Corporativas
Amedrugs Corp.


-----Mensaje original-----
De: Ryan Schmidt [mailto:subversion-2009b@ryandesign.com]
Enviado el: Martes, 18 de Agosto de 2009 13:24
Para: Puig, Juan
CC: users@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)

[snip]

> 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
revisions:

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

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2385207

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: How to correct Bogus Date on repository

Posted by Ryan Schmidt <su...@ryandesign.com>.
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)

[snip]

> 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  
revisions:

svn propget --revprop -r 103 svn:date

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2384830

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].