<p>Presently, we've got several main projects each in their own repository. We will have to version-control up to a dozen additional projects. VisualSVN recommends to create 1 respository for our company and then vc all projects inside that. </p>

<blockquote>
  <p>It's a good practice to create one repository for the entire company or department and store all your projects in this repository. Creating separate repository for each project is not a good idea because in that case you will not be able to perform Subversion operations like copy, diff and merge cross-project. <a href="http://www.visualsvn.com/support/topic/00017/" rel="nofollow noreferrer" title="Visualsvn.com">VisualSvn.com</a></p>
</blockquote>

<p>Currently we're using post-commit hooks to update the testing server with the latest commit and do other project specific actions (such as emailing certain people for one project but not for others) depending on which project has been committed.</p>

<p>As post-commit runs for the whole repository, is this still possible in such a situation? How would I go about decerning which project has changes? filter folder structure?</p>

[{'answer_id': 71410, 'author': 'Mikael Sundberg', 'author_id': 4422, 'author_profile': 'https://Stackoverflow.com/users/4422', 'pm_score': 1, 'selected': False, 'text': '<p>You can check the paths of the commited files to determine which project they belongs to. Just remember that a commit can modify several files at once, and each file could theoretically belong to a different project.</p>\n'}, {'answer_id': 71490, 'author': 'Greg Hewgill', 'author_id': 893, 'author_profile': 'https://Stackoverflow.com/users/893', 'pm_score': 1, 'selected': True, 'text': "<p>I'm not sure I would agree with that VisualSVN recommendation. I have always set up separate repositories per project, and I've never run into a situation where I wish I could have merged across projects or something.</p>\n\n<p>If there is a chunk of common code that is shared among projects at your company, it should become a shared library project of its own (with its own repository, too).</p>\n"}, {'answer_id': 71543, 'author': 'Bruno De Fraine', 'author_id': 6918, 'author_profile': 'https://Stackoverflow.com/users/6918', 'pm_score': 1, 'selected': False, 'text': '<p>From the <a href="http://svnbook.red-bean.com/en/1.5/svn.ref.reposhooks.post-commit.html" rel="nofollow noreferrer"><code>post-commit</code> hook</a>, run the <a href="http://svnbook.red-bean.com/en/1.5/svn.ref.svnlook.c.changed.html" rel="nofollow noreferrer"><code>svnlook changed</code> command</a> to find out which paths are affected by a commit. You could use a <code>grep</code> to see if they include some project path.</p>\n'}]
['https://Stackoverflow.com/questions/71365', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/997/']