Changes in mergebot/trunk/mergebot/SvnOps.py [24:16]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mergebot/trunk/mergebot/SvnOps.py
r24 r16 8 8 import time 9 9 import re 10 import subprocess11 10 12 11 def shell_quote(string): … … 25 24 """Given a log entry split out of svn log, return its revision number""" 26 25 return int(logentry.split()[0][1:]) 27 28 def does_url_exist_14(url):29 """Given a subversion url return true if it exists, false otherwise."""30 return not subprocess.call(['svn', 'log', '--limit=1', '--non-interactive',31 url],32 stdout=open('/dev/null', 'w'),33 stderr=open('/dev/null', 'w'))34 35 def does_url_exist_15(url):36 """Given a subversion url return true if it exists, false otherwise."""37 return not subprocess.call(['svn', 'ls', '--depth', 'empty',38 '--non-interactive', url],39 stdout=open('/dev/null', 'w'),40 stderr=open('/dev/null', 'w'))41 42 does_url_exist=does_url_exist_14 # default to most compatible form for now43 26 44 27 def get_branch_info(url, logfile):
Note: See TracChangeset
for help on using the changeset viewer.