[py-svn] r58190 - in py/trunk/py: . bin bin/win32 cmdline
pedronis at codespeak.net
pedronis at codespeak.net
Wed Sep 17 10:50:06 CEST 2008
Author: pedronis
Date: Wed Sep 17 10:50:04 2008
New Revision: 58190
Added:
py/trunk/py/bin/py.svnwcrevert (contents, props changed)
py/trunk/py/bin/win32/py.svnwcrevert.cmd
py/trunk/py/cmdline/pysvnwcrevert.py
- copied, changed from r58188, user/arigo/hack/svnutil/svnwcrevert.py
Modified:
py/trunk/py/__init__.py
Log:
adding arigo/hacks/svnwcrevert as a py.svnwcrevert script on py lib trunk
Modified: py/trunk/py/__init__.py
==============================================================================
--- py/trunk/py/__init__.py (original)
+++ py/trunk/py/__init__.py Wed Sep 17 10:50:04 2008
@@ -60,6 +60,7 @@
'cmdline.pycountloc' : ('./cmdline/pycountloc.py', 'main',),
'cmdline.pycleanup' : ('./cmdline/pycleanup.py', 'main',),
'cmdline.pywhich' : ('./cmdline/pywhich.py', 'main',),
+ 'cmdline.pysvnwcrevert' : ('./cmdline/pysvnwcrevert.py', 'main',),
# helpers for use from test functions or collectors
'test.__doc__' : ('./test/__init__.py', '__doc__'),
Added: py/trunk/py/bin/py.svnwcrevert
==============================================================================
--- (empty file)
+++ py/trunk/py/bin/py.svnwcrevert Wed Sep 17 10:50:04 2008
@@ -0,0 +1,3 @@
+#!/usr/bin/env python
+from _findpy import py
+py.cmdline.pysvnwcrevert()
\ No newline at end of file
Added: py/trunk/py/bin/win32/py.svnwcrevert.cmd
==============================================================================
--- (empty file)
+++ py/trunk/py/bin/win32/py.svnwcrevert.cmd Wed Sep 17 10:50:04 2008
@@ -0,0 +1,2 @@
+ at echo off
+python "%~dp0\..\py.svnwcrevert" %*
\ No newline at end of file
Copied: py/trunk/py/cmdline/pysvnwcrevert.py (from r58188, user/arigo/hack/svnutil/svnwcrevert.py)
==============================================================================
--- user/arigo/hack/svnutil/svnwcrevert.py (original)
+++ py/trunk/py/cmdline/pysvnwcrevert.py Wed Sep 17 10:50:04 2008
@@ -1,11 +1,13 @@
#! /usr/bin/env python
-"""
-Running this script and then 'svn up' puts a the working copy in a state
+"""\
+py.svnwcrevert WCPATH
+
+Running this script and then 'svn up' puts the working copy WCPATH in a state
as clean as a fresh check-out.
WARNING: you'll loose all local changes, obviously!
-This is a pylib-based hack that deletes all files that have been modified
+This script deletes all files that have been modified
or that svn doesn't explicitly know about, including svn:ignored files
(like .pyc files, hint hint).
@@ -39,7 +41,7 @@
svnwcrevert(p, root)
-if __name__ == '__main__':
+def main():
import sys
if len(sys.argv) != 2:
print __doc__
More information about the pytest-commit
mailing list