bzr-svn question?

Fanelli, Paul pfanelli at
Fri Mar 13 18:02:41 GMT 2009



You can disregard my last email. I didn't understand how the svn hooks

Now I think I better understand what's going on.  At least, some of it


My question is, how do you get the bzr:author property into svn via the
bzr-svn plugin?


I was able to get and set the svn:author property:

            'svn propget svn:author -revprop -r xxxx'    to get it, and

            'svn propset svn:author -revprop -r xxxx pfanelli'   to set


In order for the property set to work, I had to add the following to the
pre-revprop-change hook:

if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:author" ]; then

    exit 0



Now I just needed to find a place to run the svn propget and propset
commands.  So I thought that the post-commit hook would be a good place.

I added the following to post-commit:

BZR_AUTHOR=`/usr/local/bin/svn propget bzr:author --revprop -r "$REV"

/usr/local/bin/svn propset svn:author --revprop -r "$REV" "$BZR_AUTHOR"


Once I wrote that, I realized that I would need to get the bzr:author
into the commit.


So, how do you get the bzr:author into the commit?

Is this the right way to do this?




-------------- next part --------------
An HTML attachment was scrubbed...

More information about the bazaar mailing list