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 <pa...@gmail.com> on 2008/03/03 02:43:38 UTC

Re: 'svn log' lost an author name.

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