What is a "project name" in your setup? I assume you have read the Subversion book and particularly the section on planning your repository layout [1]. Since you make a distinction between "project name" and "root folder", I assume you have gone with the "one repository multiple projects" model.
Google gave me an example on StackOverflow [2] there is an example on how to use svnlook to check for the changed paths and assuming the project name is part of the path it should be fairly easy to parse. Please bear in mind that with the "one repository multiple projects" model there is no guarantee that a single commit will only touch files within one "project"; it would be trivial to check out a working copy containing the repository root and changing several projects in one commit. This has to be accounted for in the pre-commit hook script. Kind regards, Daniel [1] https://svnbook.red-bean.com/nightly/en/svn.reposadmin.planning.html#svn.reposadmin.projects.chooselayout [2] https://stackoverflow.com/questions/17790484/svn-server-pre-commit-hook-know-the-list-of-files-that-are-being-committed torsdag 21 september 2023 kl. 17:30:49 UTC+2 skrev [email protected]: > Our guy said he's aware of svnlook, so we may need a little guidance. > Would you be able to provide an example? > > On Wednesday, September 20, 2023 at 12:30:35 PM UTC-5 Stefan wrote: > >> First, are you talking about client-side hooks ( >> https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-settings.html#tsvn-dug-settings-hooks) >> >> or server side hooks ( >> https://svnbook.red-bean.com/en/1.8/svn.ref.reposhooks.pre-commit.html)? >> >> For client-side hooks, you get the CWD of the working copy, which you can >> then use to get the repo url or other info via e.g. the command line client >> or SubWCRev. >> For server side hooks, you get the path to the repository, which you then >> can pass to the svnlook utility to get all the info you need. >> > -- You received this message because you are subscribed to the Google Groups "TortoiseSVN" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tortoisesvn/0d80b2f5-72bd-4317-874a-5a983616a1dbn%40googlegroups.com.
