You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by paptimusx scirocco <pa...@gmail.com> on 2008/02/28 07:01:46 UTC
'svn log' lost an author name.
Hi there.
I noticed that author's information has disappeared from the
result of 'svn log'. why?
How should I do?
author information of old revision in the CVS age (converted it
with cvs2svn) remains.
thanx in advance.
-pa*x
% svn info README.TXT
Path: README.TXT
Name: README.TXT
URL: http://server/svn/SRC/.../README.TXT
Revision: 9474
Node Kind: file
Schedule: normal
Last Changed Author: myname <-- ok
Last Changed Rev: 9474
Last Changed Date: 2007-12-26 11:27:09 +0900 (Wed, 26 12 2007)
Text Last Updated: 2007-12-26 11:06:10 +0900 (Wed, 26 12 2007)
% svn st -v README.TXT
9474 9474 myname README.TXT <-- ok
% svn log README.TXT
------------------------------------------------------------------------
r9474 | (no author) | 2007-12-26 11:27:09 +0900 (Wed, 26 12 2007) | 2
lines <-- why lost
:
------------------------------------------------------------------------
r9451 | (no author) | 2007-12-05 16:14:14 +0900 (Wed, 05 12 2007) | 2
lines <- svn, why lost?
:
------------------------------------------------------------------------
r9025 | myname | 2007-07-19 21:15:27 +0900 (Thu, 19 7 2007) | 4 lines
<- cvs
(both client and server)
% ver
Microsoft Windows XP [Version 5.1.2600]
% svn --version
svn, version 1.4.4 (r25188)
compiled Jun 8 2007, 18:49:42
:
protocol: Apatch2+mod_svn, no-proxy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: 'svn log' lost an author name.
Posted by paptimusx <pa...@gmail.com>.
It's good!
I will write the script set in all revision to lack 'svn:author'
and execute it.
and.. because it is temporary. I thought that there only had to
be an option to bypass the hook script. for instance of
'svnadmin setlog --bypass-hook' It is possible to execute it only
with svn on the client side if it does so.
thank you Lieven, thank you Ryan.
I am happy.
-pa*x
--
% svn ps "svn:author" --revprop -r6995 newname http://server/svn/SRC
svn: DAV request failed; it's possible that the repository's
pre-revprop-change hook either failed o
r is non-existent
svn: At least one property change failed; repository is unchanged
# vim xxx/hooks/pre-revprop-change.bat
# cat xxx/hooks/pre-revprop-change.bat
echo I am a dummy.
% svn ps "svn:author" --revprop -r6995 newname http://server/svn/SRC
property 'svn:author' set on repository revision 6995
% svn pg "svn:author" --revprop -r 6995 http://server/server/svn/SRC
newname
=> succeed!
--
% svn ps "svn:author" --force --revprop -r6995 atushi http://server/svn/SRC
svn: DAV request failed; it's possible that the repository's
pre-revprop-change hook either failed o
r is non-existent
svn: At least one property change failed; repository is unchanged
% svn ps "svn:author" --bypass-fook --revprop -r6995 atushi
http://server/svn/SRC
svn: invalid option: --bypass-fook
Type 'svn help' for usage.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: 'svn log' lost an author name.
Posted by paptimusx <pa...@gmail.com>.
> I will write the script set in all revision to lack 'svn:author' and execute it.
It's Well.
than you.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: 'svn log' lost an author name.
Posted by Lieven Govaerts <sv...@mobsol.be>.
paptimusx wrote:
> I am sorry. At last, I understood the meaning that you were said
> to me. Even at time.
>
> It was a problem when the repository by cvs2svn was converted.
> The property 'svn:author' had come off in a revison on the way.
>
> How can I restore it?
> If it is possible, I do not want to change 'Last Changed Date:'.
>
>
>
> % svn pg "svn:author" --revprop -r6994 http://server/svn/PROJECT
>
The author of a revision is stored in the svn:author revision property,
so the same way as you read it with propget, you can change it with propset.
So:
% svn ps "svn:author" "myname" --revprop -r6994 http://server/svn/PROJECT
In order to change existing revision properties you need to have the
pre-revprop-change hook script installed on the repository. Read this
section of the FAQ to learn how to do that (it's about changing the
svn:log property):
http://subversion.tigris.org/faq.html#change-log-msg
Lieven
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: 'svn log' lost an author name.
Posted by paptimusx <pa...@gmail.com>.
I am sorry. At last, I understood the meaning that you were said
to me. Even at time.
It was a problem when the repository by cvs2svn was converted.
The property 'svn:author' had come off in a revison on the way.
How can I restore it?
If it is possible, I do not want to change 'Last Changed Date:'.
% svn pg "svn:author" --revprop -r6994 http://server/svn/PROJECT
% svn pg "svn:author" --revprop -r6995 http://server/svn/PROJECT
myname
% svn pl --revprop -r6995 http://server/svn/PROJECT
% svn pl --revprop -r6994 http://server/svn/PROJECT
Unversioned properties on revision 6995:
svn:log
svn:date
svn pl --revprop -r6995 http://server/svn/PROJECT
% svn pl --revprop -r6994 http://server/svn/PROJECT
Unversioned properties on revision 6994:
svn:log
svn:author
svn:date
% svn info -r6995 http://server/svn/PROJECT
Path: PROJECT
URL: http://server/svn/PROJECT
Repository Root: http://server/svn/PROJECT
Repository UUID: 4fe207a9-67fb-534b-a93f-28f524836101
Revision: 6994
Node Kind: directory
Last Changed Author: myname
Last Changed Rev: 6994
Last Changed Date: 2005-05-13 15:37:27 +0900 (Fri, 13 5 2005)
% svn info -r6995 http://server/svn/PROJECT
Path: PROJECT
URL: http://server/svn/PROJECT
Repository Root: http://server/svn/PROJECT
Repository UUID: 4fe207a9-67fb-534b-a93f-28f524836101
Revision: 6995
Node Kind: directory
Last Changed Rev: 6995
Last Changed Date: 2005-05-13 15:37:28 +0900 (Fri, 13 5 2005)
% svn log -r6994:6995 http://server/svn/PROJECT
------------------------------------------------------------------------
r6994 | myname | 2005-05-13 15:37:27 +0900 (Fri, 13 5 2005) | 2 lines
2.05.02
------------------------------------------------------------------------
r6995 | (no author) | 2005-05-13 15:37:28 +0900 (Fri, 13 5 2005) | 2 lines
This commit was manufactured by cvs2svn to create tag
'Ver205_02(REL2005++04++26+2)'.
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: 'svn log' lost an author name.
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 29, 2008, at 06:46, paptimusx wrote:
> On Feb 29, 2008, at 05:48, Lieven Govaerts wrote:
>
>> paptimusx scirocco wrote:
>>>
>>
>>> I noticed that author's information has disappeared from the
>>> result of 'svn log'. why?
>>> How should I do?
>>> author information of old revision in the CVS age (converted it
>>> with cvs2svn) remains.
>>> thanx in advance.
>>> -pa*x
>>> % svn info README.TXT
>>> Path: README.TXT
>>> Name: README.TXT
>>> URL: http://server/svn/SRC/.../README.TXT
>>> Revision: 9474
>>> Node Kind: file
>>> Schedule: normal
>>> Last Changed Author: myname <-- ok
>>> Last Changed Rev: 9474
>>> Last Changed Date: 2007-12-26 11:27:09 +0900 (Wed, 26 12 2007)
>>> Text Last Updated: 2007-12-26 11:06:10 +0900 (Wed, 26 12 2007)
>>> % svn st -v README.TXT
>>> 9474 9474 myname README.TXT <-- ok
>>> % svn log README.TXT
>>> --------------------------------------------------------------------
>>> ----
>>> r9474 | (no author) | 2007-12-26 11:27:09 +0900 (Wed, 26 12 2007)
>>> | 2
>>> lines <-- why lost
>>> :
>>> --------------------------------------------------------------------
>>> ----
>>> r9451 | (no author) | 2007-12-05 16:14:14 +0900 (Wed, 05 12 2007)
>>> | 2
>>> lines <- svn, why lost?
>>> :
>>> --------------------------------------------------------------------
>>> ----
>>> r9025 | myname | 2007-07-19 21:15:27 +0900 (Thu, 19 7 2007) | 4
>>> lines
>>> <- cvs
>>
>> One possible reason is that you don't have read-access anymore to
>> that file.
>>
>> You can check if there's still an author set on that revision by
>> getting the 'svn:author' revision property:
>>
>> % svn pg --revprop -r 9474 "svn:author" http://server/svn/SRC
>
> thank you for your answer Lieven.
>
> Is anything understood from this?
You never executed the command that Lieven recommended...
> % svn pl README.TXT
> roperties on 'README.TXT':
> svn:keywords
> svn:eol-style
svn:author is a revision property, not a versioned property.
> % svn pg --revprop -r 9474 README.TXT
You didn't tell it what property to get.
> % svn pl -r 9474 README.TXT
> Properties on 'http://server/svn/.../README.TXT':
> svn:keywords
> svn:eol-style
>
> % svn pl -r 9474 http://server/svn/.../README.TXT
> Properties on 'http://server/svn/.../README.TXT':
> svn:keywords
> svn:eol-style
svn:author is a revision property, not a versioned property.
> % svn pg --revprop -r 9474 http://server/svn/.../README.TXT
> (no message)
You didn't tell it what property to get.
> % svn info README.TXT
> Path: README.TXT
> Name: README.TXT
> URL: http://server/svn/.../README.TXT
> Repository Root: http://server/svn/..
> Repository UUID: 4fe207a9-67fb-534b-a93f-28f524836101
> Revision: 9528
> Node Kind: file
> Schedule: normal
> Last Changed Author: myname
> Last Changed Rev: 9528
> Last Changed Date: 2008-02-29 11:47:18 +0900 (Fri, 29 2 2008)
> Text Last Updated: 2008-02-29 11:37:32 +0900 (Fri, 29 2 2008)
> Checksum: f9577769fa668f8c29d29edfb90688ca
>
> % svn info -r9474 README.TXT
> Path: README.TXT
> Name: README.TXT
> URL: http://server/svn/.../README.TXT
> Repository Root: http://server/svn/..
> Repository UUID: 4fe207a9-67fb-534b-a93f-28f524836101
> Revision: 9474
> Node Kind: file
> Last Changed Rev: 9474
> Last Changed Date: 2007-12-26 11:27:09 +0900 (Wed, 26 12 2007)
>
> % svn info -r HEAD README.TXT
> Path: README.TXT
> Name: README.TXT
> URL: http://server/svn/.../README.TXT
> Repository Root: http://server/...
> Repository UUID: 4fe207a9-67fb-534b-a93f-28f524836101
> Revision: 9530
> Node Kind: file
> Last Changed Rev: 9528
> Last Changed Date: 2008-02-29 11:47:18 +0900 (Fri, 29 2 2008)
As per Lieven's message, you should try:
svn pg --revprop -r 9474 "svn:author" http://server/svn/.../README.TXT
But the above output is already interesting in that it does not show
a "Last Changed Author" for r9474 or rHEAD. So I suspect the "svn pg"
command above is going to show that the property is empty.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: 'svn log' lost an author name.
Posted by paptimusx <pa...@gmail.com>.
thank you for your answer Lieven.
Is anything understood from this?
% svn pl README.TXT
roperties on 'README.TXT':
svn:keywords
svn:eol-style
% svn pg --revprop -r 9474 README.TXT
% svn pl -r 9474 README.TXT
Properties on 'http://server/svn/.../README.TXT':
svn:keywords
svn:eol-style
% svn pl -r 9474 http://server/svn/.../README.TXT
Properties on 'http://server/svn/.../README.TXT':
svn:keywords
svn:eol-style
% svn pg --revprop -r 9474 http://server/svn/.../README.TXT
(no message)
% svn info README.TXT
Path: README.TXT
Name: README.TXT
URL: http://server/svn/.../README.TXT
Repository Root: http://server/svn/..
Repository UUID: 4fe207a9-67fb-534b-a93f-28f524836101
Revision: 9528
Node Kind: file
Schedule: normal
Last Changed Author: myname
Last Changed Rev: 9528
Last Changed Date: 2008-02-29 11:47:18 +0900 (Fri, 29 2 2008)
Text Last Updated: 2008-02-29 11:37:32 +0900 (Fri, 29 2 2008)
Checksum: f9577769fa668f8c29d29edfb90688ca
% svn info -r9474 README.TXT
Path: README.TXT
Name: README.TXT
URL: http://server/svn/.../README.TXT
Repository Root: http://server/svn/..
Repository UUID: 4fe207a9-67fb-534b-a93f-28f524836101
Revision: 9474
Node Kind: file
Last Changed Rev: 9474
Last Changed Date: 2007-12-26 11:27:09 +0900 (Wed, 26 12 2007)
% svn info -r HEAD README.TXT
Path: README.TXT
Name: README.TXT
URL: http://server/svn/.../README.TXT
Repository Root: http://server/...
Repository UUID: 4fe207a9-67fb-534b-a93f-28f524836101
Revision: 9530
Node Kind: file
Last Changed Rev: 9528
Last Changed Date: 2008-02-29 11:47:18 +0900 (Fri, 29 2 2008)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: 'svn log' lost an author name.
Posted by Lieven Govaerts <sv...@mobsol.be>.
paptimusx scirocco wrote:
> Hi there.
>
> I noticed that author's information has disappeared from the
> result of 'svn log'. why?
>
> How should I do?
>
> author information of old revision in the CVS age (converted it
> with cvs2svn) remains.
>
> thanx in advance.
>
> -pa*x
>
> % svn info README.TXT
> Path: README.TXT
> Name: README.TXT
> URL: http://server/svn/SRC/.../README.TXT
> Revision: 9474
> Node Kind: file
> Schedule: normal
> Last Changed Author: myname <-- ok
> Last Changed Rev: 9474
> Last Changed Date: 2007-12-26 11:27:09 +0900 (Wed, 26 12 2007)
> Text Last Updated: 2007-12-26 11:06:10 +0900 (Wed, 26 12 2007)
>
> % svn st -v README.TXT
> 9474 9474 myname README.TXT <-- ok
>
> % svn log README.TXT
> ------------------------------------------------------------------------
> r9474 | (no author) | 2007-12-26 11:27:09 +0900 (Wed, 26 12 2007) | 2
> lines <-- why lost
>
> :
> ------------------------------------------------------------------------
> r9451 | (no author) | 2007-12-05 16:14:14 +0900 (Wed, 05 12 2007) | 2
> lines <- svn, why lost?
> :
>
> ------------------------------------------------------------------------
> r9025 | myname | 2007-07-19 21:15:27 +0900 (Thu, 19 7 2007) | 4 lines
> <- cvs
>
One possible reason is that you don't have read-access anymore to that
file.
You can check if there's still an author set on that revision by getting
the 'svn:author' revision property:
% svn pg --revprop -r 9474 "svn:author" http://server/svn/SRC
Lieven
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org