Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • mergebot/trunk/mergebot/SvnOps.py

    r24 r16  
    88import time
    99import re
    10 import subprocess
    1110
    1211def shell_quote(string):
     
    2524    """Given a log entry split out of svn log, return its revision number"""
    2625    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
    4326
    4427def get_branch_info(url, logfile):
Note: See TracChangeset for help on using the changeset viewer.