Index: /mergebot/trunk/mergebot/svn.py
===================================================================
--- /mergebot/trunk/mergebot/svn.py	(revision 47)
+++ /mergebot/trunk/mergebot/svn.py	(revision 48)
@@ -60,8 +60,7 @@
         """Given a subversion url and a logfile, return (start_revision,
         end_revision) or None if it does not exist."""
-        svncmd = os.popen("svn log --stop-on-copy --non-interactive %s 2>>%s" \
-            % (url, logfile), "r")
-        branchlog = svncmd.read()
-        returnval = svncmd.close()
+        svncmd = subprocess.Popen(['svn', 'log', '--stop-on-copy', '--non-interactive', url], stdout=subprocess.PIPE, stderr=open(logfile, 'a'))
+        branchlog, stderr = svncmd.communicate()
+        returnval = svncmd.wait()
         if returnval:
             # This branch apparently doesn't exist
