[py-svn] r25224 - py/dist/py/execnet
hpk at codespeak.net
hpk at codespeak.net
Sun Apr 2 16:28:41 CEST 2006
Author: hpk
Date: Sun Apr 2 16:28:40 2006
New Revision: 25224
Added:
py/dist/py/execnet/rsync.py
- copied, changed from r24266, user/arigo/hack/misc/ftpy.py
Log:
add rsync script (preliminary work + an inline test)
Copied: py/dist/py/execnet/rsync.py (from r24266, user/arigo/hack/misc/ftpy.py)
==============================================================================
--- user/arigo/hack/misc/ftpy.py (original)
+++ py/dist/py/execnet/rsync.py Sun Apr 2 16:28:40 2006
@@ -19,6 +19,7 @@
shutil.rmtree(path)
def receive_directory_structure(path, relcomponents):
+ #print "receive directory structure", path
try:
st = os.lstat(path)
except OSError:
@@ -67,6 +68,7 @@
def send_directory_structure(path):
if path.check(dir=1):
subpaths = path.listdir()
+ print "sending directory structure", path
channel.send([p.basename for p in subpaths])
for p in subpaths:
send_directory_structure(p)
@@ -84,7 +86,7 @@
modifiedpath = sourcedir.join(*modified_rel_path)
data = modifiedpath.read()
channel.send(data)
- channel.waitclose(1.0)
+ channel.waitclose()
def copy(gw, source, dest):
channel = gw.remote_exec("""
@@ -117,7 +119,7 @@
if status is not None:
assert status == str(dest) # for now
channel.send(localdata)
- channel.waitclose(1.0)
+ channel.waitclose()
def setup_module(mod):
More information about the pytest-commit
mailing list