<p>If you are working in PHP (or I guess any programming language) and using subversion as your source control, is there a way to take your project (for example):</p>

<blockquote>
  <p>C:\Projects\test\.svn<br>
  C:\Projects\test\docs\<br>
  C:\Projects\test\faq.php<br>
  C:\Projects\test\guestbook.php<br>
  C:\Projects\test\index.php<br>
  C:\Projects\test\test.php</p>
</blockquote>

<p>and build/copy/whatever it so it weeds out certain files and becomes:</p>

<blockquote>
  <p>C:\Projects\test\faq.php<br>
  C:\Projects\test\guestbook.php<br>
  C:\Projects\test\index.php</p>
</blockquote>

<p>automatically? I'm getting tired of making a branch, and then going through the branch and deleting all of the ".svn" folders, the docs directory, and my prototyping files.</p>

<p>I know I could probably use a .bat file to only copy the specific files I want, but I was hoping there was some way with subversion to sort of pseudo ignore a file, to where it will still version it, but where you could make a snapshot of the project that ignores the files you told it to pseudo ignore.</p>

<p>I know I read online somewhere about some functionality that at least lets you copy without the .svn folders, but I can't find it now.</p>

[{'answer_id': 5884, 'author': 'saint_groceon', 'author_id': 59, 'author_profile': 'https://Stackoverflow.com/users/59', 'pm_score': 2, 'selected': False, 'text': '<p>Copy all the files manually or using your existing method for the first time.  Then, since I take it you\'re on a Windows platform, install <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=E0FC1154-C975-4814-9649-CCE41AF06EB7&amp;displaylang=en" rel="nofollow noreferrer">SyncToy</a> and configure it in the <a href="http://en.wikipedia.org/wiki/SyncToy#Features" rel="nofollow noreferrer">subscribe method</a>, which would effectively one-way copy only the changes made since the last pseudo-commit to production for files already in production.  If you want to add a file you can just copy it manually and resume the SyncToy operation.</p>\n'}, {'answer_id': 5887, 'author': 'Grant', 'author_id': 30, 'author_profile': 'https://Stackoverflow.com/users/30', 'pm_score': 4, 'selected': True, 'text': '<p>If you use TortoiseSVN, you can use the export feature to automatically strip out all of the .svn files. I think other svn things have the same feature.</p>\n\n<p>Right click the root project folder, then select <code>TortoiseSVN &gt; Export</code>, and tell it where you want the <code>.svn</code> free directory.</p>\n'}, {'answer_id': 6199, 'author': 'cmcculloh', 'author_id': 58, 'author_profile': 'https://Stackoverflow.com/users/58', 'pm_score': 1, 'selected': False, 'text': '<p>Ok, so my final solution is this:</p>\n\n<p>Use the export command to export to a folder called "export" in the same directory as a file called "deploy.bat", then I run the deploy script (v1 stands for version 1, which is what version I am currently on in this project) This script utilizes 7-Zip, which I have placed on my system path so I can use it as a command line utility:</p>\n\n<pre><code>rem replace the v1 directory with the export directory\nrd /s /q v1\nmove /y export\\newIMS v1\nrd /s /q export\n\nrem remove the prepDocs directory from the project\nrd /s /q v1\\prepDocs\n\nrem remove the scripts directory from the project\nrd /s /q v1\\scripts\n\nrem remove individual files from project\ndel v1\\.project\nrem del v1\\inc\\testLoad.html\nrem del v1\\inc\\testInc.js\n\nSET /P version=Please enter version number:\n\nrem zip the file up with 7-Zip and name it after whatever version number the user typed in.\n7z a -r v%version%.zip v1\n\nrem copy everything to the shared space ready for deployment\nxcopy v%version%.zip /s /q /y /i "Z:\\IT\\IT Security\\IT Projects\\IMS\\v%version%.zip"\nxcopy v1 /s /q /y /i "Z:\\IT\\IT Security\\IT Projects\\IMS\\currentVersion"\n\nrem keep the window open until user presses any key\nPAUSE\n</code></pre>\n\n<p>I didn\'t have time to check out the SyncToy solution, so don\'t take this as me rejecting that method. I just knew how to do this, and didn\'t have time to check that one out (under a time crunch right now).</p>\n\n<p>Sources:</p>\n\n<p><a href="http://commandwindows.com/command2.htm" rel="nofollow noreferrer">http://commandwindows.com/command2.htm</a><br>\n<a href="http://www.ss64.com/nt/" rel="nofollow noreferrer">http://www.ss64.com/nt/</a></p>\n'}]
['https://Stackoverflow.com/questions/5872', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/58/']