[py-svn] r16230 - py/dist/py/path/svn
hpk at codespeak.net
hpk at codespeak.net
Mon Aug 22 20:17:00 CEST 2005
Author: hpk
Date: Mon Aug 22 20:17:00 2005
New Revision: 16230
Modified:
py/dist/py/path/svn/wccommand.py
Log:
ignore externals by default when performing
wcpath.status()
and raise an error if one requests it for now.
Modified: py/dist/py/path/svn/wccommand.py
==============================================================================
--- py/dist/py/path/svn/wccommand.py (original)
+++ py/dist/py/path/svn/wccommand.py Mon Aug 22 20:17:00 2005
@@ -149,15 +149,22 @@
def rename(self, target):
py.process.cmdexec("svn move --force %s %s" %(str(self), str(target)))
- def status(self, updates=0, rec=0):
+ def status(self, updates=0, rec=0, externals=0):
""" return (collective) Status object for this file. """
# http://svnbook.red-bean.com/book.html#svn-ch-3-sect-4.3.1
# 2201 2192 jum test
+ # XXX
+ if externals:
+ raise ValueError("XXX cannot perform status() "
+ "on external items yet")
if rec:
rec= ''
else:
rec = '--non-recursive'
+ if not externals:
+ externals = '--ignore-externals'
+
if updates:
updates = '-u'
else:
@@ -165,7 +172,7 @@
update_rev = None
- out = self._svn('status -v %s %s' % (updates, rec))
+ out = self._svn('status -v %s %s %s' % (updates, rec, externals))
rootstatus = WCStatus(self)
rex = re.compile(r'\s+(\d+|-)\s+(\S+)\s+(\S+)\s+(.*)')
for line in out.split('\n'):
More information about the pytest-commit
mailing list