You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by ja...@jrv.org on 2003/08/20 08:18:57 UTC

Changing svn:author?

SVN 0.26

Is it possible to change the author and timestamp reported by svn log
after a change has been committed?

C:\>svn log g.c
-----------------------------------------------------------------------
rev 43:  james | 2003-08-20 02:55:46 -0500 (Wed, 20 Aug 2003) | 1 line

prop test
------------------------------------------------------------------------

C:\>svn ps svn:author --revprop -rHEAD joe g.c
property `svn:author' set on repository revision '43'

C:\>svn log g.c
------------------------------------------------------------------------
rev 43:  james | 2003-08-20 02:55:46 -0500 (Wed, 20 Aug 2003) | 1 line

prop test
------------------------------------------------------------------------

C:\>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Changing svn:author?

Posted by ja...@jrv.org.
pre-revprop-change.tmpl was the issue.  By default it only allows
changing the log.  I didn't notice this when I copied the script over.

if [ "$PROPNAME" = "svn:log" ]; then exit 0; fi
exit 1

> From: cmpilato@collab.net
> Date: 20 Aug 2003 08:35:30 -0500
>
> > This looks perfectly correct.  And works for me too.
> 
> Maybe his pre-revprop-change hook is disallowing svn:author, but we're
> not catching the error?  James, what does your pre-revprop-change hook
> look like?
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Changing svn:author?

Posted by Ben Collins-Sussman <su...@collab.net>.
cmpilato@collab.net writes:

> Maybe his pre-revprop-change hook is disallowing svn:author, but we're
> not catching the error?  James, what does your pre-revprop-change hook
> look like?

I thought that too, but over http://, the hook error is definitely
marshalled back to the client.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Changing svn:author?

Posted by cm...@collab.net.
Ben Collins-Sussman <su...@collab.net> writes:

> james-tigris@jrv.org writes:
> 
> > SVN 0.26
> > 
> > Is it possible to change the author and timestamp reported by svn log
> > after a change has been committed?
> 
> Absolutely.  
> 
> > C:\>svn ps svn:author --revprop -rHEAD joe g.c
> > property `svn:author' set on repository revision '43'
> 
> This looks perfectly correct.  And works for me too.

Maybe his pre-revprop-change hook is disallowing svn:author, but we're
not catching the error?  James, what does your pre-revprop-change hook
look like?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Changing svn:author?

Posted by Ben Collins-Sussman <su...@collab.net>.
james-tigris@jrv.org writes:

> This is over HTTP.  It doesn't work with svn on the server either:
> 
> /home/james/lib> svn ps svn:author --revprop -rHEAD joe g.c
> property `svn:author' set on repository revision '43'
> /home/james/lib> svn log g.c
> ------------------------------------------------------------------------
> rev 43:  james | 2003-08-20 02:55:46 -0500 (Wed, 20 Aug 2003) | 1 line
> 
> prop test
> ------------------------------------------------------------------------

Ah-ha.  Yup, cmpilato was correct.  If the pre-revprop-change hook
returns failure (non-zero), the client never finds out.  It prints a
false 'success' message.  I just tested this.

Isn't this a known issue, somewhere?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Changing svn:author?

Posted by ja...@jrv.org.
This is over HTTP.  It doesn't work with svn on the server either:

/home/james/lib> svn ps svn:author --revprop -rHEAD joe g.c
property `svn:author' set on repository revision '43'
/home/james/lib> svn log g.c
------------------------------------------------------------------------
rev 43:  james | 2003-08-20 02:55:46 -0500 (Wed, 20 Aug 2003) | 1 line

prop test
------------------------------------------------------------------------
/home/james/lib> svn info g.c
Path: g.c
Name: g.c
Url: http://127.0.0.1/svn/trunk/lib/g.c
Repository UUID: 123fddf5-05c5-0310-a9ce-d75f5998b0a7
Revision: 43
Node Kind: file
Schedule: normal
Last Changed Author: james
Last Changed Rev: 43
Last Changed Date: 2003-08-20 02:55:46 -0500 (Wed, 20 Aug 2003)
Text Last Updated: 2003-08-20 10:16:58 -0500 (Wed, 20 Aug 2003)
Properties Last Updated: 2003-08-20 10:16:58 -0500 (Wed, 20 Aug 2003)
Checksum: 5bc1639c0e23505c1168541f8ae21c7a

/home/james/lib> 

> From: Ben Collins-Sussman <su...@collab.net>
> Date: 20 Aug 2003 08:04:30 -0500
> Lines: 24
> 
> > C:\>svn ps svn:author --revprop -rHEAD joe g.c
> > property `svn:author' set on repository revision '43'
> 
> This looks perfectly correct.  And works for me too.
> 
> > 
> > C:\>svn log g.c
> > ------------------------------------------------------------------------
> > rev 43:  james | 2003-08-20 02:55:46 -0500 (Wed, 20 Aug 2003) | 1 line
> > 
> > prop test
> > ------------------------------------------------------------------------
> 
> I'm not sure why it isn't working for you.  Is this over file:///,
> http://, or svn:// ?  Give us more details.
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Changing svn:author?

Posted by Ben Collins-Sussman <su...@collab.net>.
james-tigris@jrv.org writes:

> SVN 0.26
> 
> Is it possible to change the author and timestamp reported by svn log
> after a change has been committed?

Absolutely.  

> C:\>svn ps svn:author --revprop -rHEAD joe g.c
> property `svn:author' set on repository revision '43'

This looks perfectly correct.  And works for me too.

> 
> C:\>svn log g.c
> ------------------------------------------------------------------------
> rev 43:  james | 2003-08-20 02:55:46 -0500 (Wed, 20 Aug 2003) | 1 line
> 
> prop test
> ------------------------------------------------------------------------

I'm not sure why it isn't working for you.  Is this over file:///,
http://, or svn:// ?  Give us more details.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org