Changes in mergebot/trunk/mergebot/SvnOps.py [16:24]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mergebot/trunk/mergebot/SvnOps.py
r16 r24 8 8 import time 9 9 import re 10 import subprocess 10 11 11 12 def shell_quote(string): … … 24 25 """Given a log entry split out of svn log, return its revision number""" 25 26 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 now 26 43 27 44 def get_branch_info(url, logfile):
Note: See TracChangeset
for help on using the changeset viewer.