You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Sandro Frenzel <s....@technisat.de> on 2009/11/10 11:00:27 UTC

Rename action with pre-commit hook script

Hello all,

I want to check whether a file/directory can be renamed or not.
So I had the idea to create a script which is invoked by a pre-commit hook script. The problem is, that I could not retreive the "old" filename from the file, which has been renamed. I could only get the "new" renamed filename.

Is there any solution to get the filename from the file which has been renamed?


Best Regards,
Sandro Frenzel

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2416096

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Re: Rename action with pre-commit hook script

Posted by Sandro Frenzel <s....@technisat.de>.
Yeah, many thanks! That helps me a lot!

You saved my day :)!


Regards,
Sandro Frenzel

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2416110

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Rename action with pre-commit hook script

Posted by Nick Stolwijk <ni...@gmail.com>.
Try to use svnlook changed --copy-info. It shows information like:

svnlook changed /tmp/tmprepository  --copy-info
D   trunk/a.txt
A + trunk/c.txt
    (from trunk/a.txt:r1)

Hth,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl



On Tue, Nov 10, 2009 at 12:00 PM, Sandro Frenzel <s....@technisat.de> wrote:
> Hello all,
>
> I want to check whether a file/directory can be renamed or not.
> So I had the idea to create a script which is invoked by a pre-commit hook script. The problem is, that I could not retreive the "old" filename from the file, which has been renamed. I could only get the "new" renamed filename.
>
> Is there any solution to get the filename from the file which has been renamed?
>
>
> Best Regards,
> Sandro Frenzel
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2416096
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2416103

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].