- Timestamp:
- Sep 19, 2009 3:47:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mergebot/branches/ticket-2/mergebot/SvnOps.py
r21 r23 26 26 return int(logentry.split()[0][1:]) 27 27 28 def does_url_exist(url): 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): 29 36 """Given a subversion url return true if it exists, false otherwise.""" 30 37 return not subprocess.call(['svn', 'ls', '--depth', 'empty', … … 32 39 stdout=open('/dev/null', 'w'), 33 40 stderr=open('/dev/null', 'w')) 41 42 does_url_exist=does_url_exist_14 # default to most compatible form for now 34 43 35 44 def get_branch_info(url, logfile):
Note: See TracChangeset
for help on using the changeset viewer.