You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Solt Kemecsei <sv...@solt.kemecsei.hu> on 2004/03/18 17:11:05 UTC
How to fill (modify) the author field
Hi all,
After a few weeks of testing we decided to use Subversion as our revision
controll system. Unfortunately during the tests we used it in anonymous
mode, so the author field is empty for all files in all revisions.
Is there a way to fill the author field with one specific value (user
name) in the whole repository?
Thanks,
Solt
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: How to fill (modify) the author field
Posted by Ben Collins-Sussman <su...@collab.net>.
On Thu, 2004-03-18 at 12:25, Solt Kemecsei wrote:
> REPOS="$1"
> REV="$2"
> USER="$3"
> PROPNAME="$4"
>
> if [ "$PROPNAME" = "svn:log" ]; then exit 0; fi
> exit 1
Hm, I'm starting to feel like a broken record here. :-)
Look at the script above... notice that it's returning an error if you
try to modify any property other than 'svn:log'. That's probably not
what you want.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: How to fill (modify) the author field
Posted by Solt Kemecsei <sv...@solt.kemecsei.hu>.
> On Thu, 2004-03-18 at 11:11, Solt Kemecsei wrote:
>> Is there a way to fill the author field with one specific value (user
>> name) in the whole repository?
>
> You'll have to write a shell-loop that runs 'svn propset -rX --revprop
> svn:author NAME' on each revision. Read about unversioned props in
> chapter 7, section 2. There's a grey sidebar about it.
I got the following error message when typing the above command:
svn: Repository has not been enabled to accept revision propchanges;
ask the administrator to create a pre-revprop-change hook
I renamed the "hooks/pre-revprop-change.tmpl" file to "pre-revprop-change"
and then I got this:
svn: 'pre-revprop-change' hook failed with error output:
[empty line]
The "pre-revprop-change" contains only these lines:
REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
if [ "$PROPNAME" = "svn:log" ]; then exit 0; fi
exit 1
What am I missing?
Thanks,
Solt
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: How to fill (modify) the author field
Posted by Ben Collins-Sussman <su...@collab.net>.
On Thu, 2004-03-18 at 11:11, Solt Kemecsei wrote:
> Hi all,
>
> After a few weeks of testing we decided to use Subversion as our revision
> controll system. Unfortunately during the tests we used it in anonymous
> mode, so the author field is empty for all files in all revisions.
> Is there a way to fill the author field with one specific value (user
> name) in the whole repository?
You'll have to write a shell-loop that runs 'svn propset -rX --revprop
svn:author NAME' on each revision. Read about unversioned props in
chapter 7, section 2. There's a grey sidebar about it.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org