Latest recipes tagged "svn" Code RecipesRedate source files using SVN info from $Id:$ (Python) 2010-07-30T10:00:25-07:00Michal Niklas <p style="color: grey"> Python recipe 577341 by <a href="/recipes/users/186902/">Michal Niklas</a> (<a href="/recipes/tags/date/">date</a>, <a href="/recipes/tags/datetime/">datetime</a>, <a href="/recipes/tags/file/">file</a>, <a href="/recipes/tags/files/">files</a>, <a href="/recipes/tags/svn/">svn</a>). </p> <p>Iterates through a directory, reading the data from svn info that looks like:</p> <pre class="prettyprint"><code>$Id: 747 2010-07-30 09:56:08Z mn $ </code></pre> <p>from source files.</p> <p>Parses the datetime from svn info and if it differs from file modification datetime then changes file datetime</p> Komodo JS Macro - show svn blame for the current editor line (JavaScript) 2013-05-02T22:28:50-07:00Todd Whiteman <p style="color: grey"> JavaScript recipe 577013 by <a href="/recipes/users/2666241/">Todd Whiteman</a> (<a href="/recipes/tags/blame/">blame</a>, <a href="/recipes/tags/javascript/">javascript</a>, <a href="/recipes/tags/komodo/">komodo</a>, <a href="/recipes/tags/macro/">macro</a>, <a href="/recipes/tags/scc/">scc</a>, <a href="/recipes/tags/subversion/">subversion</a>, <a href="/recipes/tags/svn/">svn</a>, <a href="/recipes/tags/toddw/">toddw</a>). Revision 4. </p> <p>A <a href="">Komodo</a> JavaScript macro that can show the SCC repository information for who last changed the current line in the Komodo editor - see the screenshot below.</p> <p><img src="" alt="svn blame image" /></p> Update Source Directories (Python) 2009-07-21T23:40:53-07:00Alia Khouri <p style="color: grey"> Python recipe 576853 by <a href="/recipes/users/4169084/">Alia Khouri</a> (<a href="/recipes/tags/bzr/">bzr</a>, <a href="/recipes/tags/git/">git</a>, <a href="/recipes/tags/hg/">hg</a>, <a href="/recipes/tags/svn/">svn</a>, <a href="/recipes/tags/vcs/">vcs</a>). </p> <p>A convenience script to update a pre-specified folder containing subversion, mercurial, bazaar, and/or git source folders</p> <p>To use it: </p> <ul> <li><p>change the 'src' variable below to point to your source folder</p></li> <li><p>name this script to something appropriate (I call it 'update')</p></li> <li><p>put it into a directory on your PATH</p></li> </ul> Recursive file/folder cleaner (Python) 2011-02-12T20:30:59-08:00Alia Khouri <p style="color: grey"> Python recipe 576643 by <a href="/recipes/users/4169084/">Alia Khouri</a> (<a href="/recipes/tags/cleaner/">cleaner</a>, <a href="/recipes/tags/cleaning/">cleaning</a>, <a href="/recipes/tags/files/">files</a>, <a href="/recipes/tags/folder/">folder</a>, <a href="/recipes/tags/pyc/">pyc</a>, <a href="/recipes/tags/recursion/">recursion</a>, <a href="/recipes/tags/svn/">svn</a>). Revision 24. </p> <p>This script recursively scans a given path and applies a cleaning 'action' to matching files and folders. By default files and folders matching the specified (.endswith) patterns are deleted. Alternatively, _quoted_ glob patterns can used with the '-g' or '--glob' option.</p> <p>By design, the script lists targets and asks permission before applying cleaning actions. It should be easy to extend this script with further actions and also more intelligent pattern matching functions.</p> <p>The getch (single key confirmation) functionality comes courtesy of <a href="" rel="nofollow"></a></p> <p>To use it, place the script in your path and call it something like 'clean':</p> <pre class="prettyprint"><code>Usage: clean [options] patterns deletes files/folder patterns: clean .svn .pyc clean -p /tmp/folder .svn .csv .bzr .pyc clean -g "*.pyc" clean -ng "*.py" converts line endings from windows to unix: clean -e .py clean -e -p /tmp/folder .py Options: -h, --help show this help message and exit -p PATH, --path=PATH set path -n, --negated clean everything except specified patterns -e, --endings clean line endings -g, --glob clean with glob patterns -v, --verbose </code></pre>