~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2007-12-22 00:52:23 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20071222005223-05qb47i4jxil7n2j
Update branches to new find_branches API

Show diffs side-by-side

added added

removed removed

Lines of Context:
336
336
        ' <a href="'
337
337
    t = t.clone()
338
338
    t._remote_path = lambda x: t.base
339
 
    lines = t.get('')
340
 
    expr = re.compile('<a[^>]*href="([^>]*)"[^>]*>', flags=re.I)
 
339
    try:
 
340
        lines = t.get('')
 
341
    except bzrlib.errors.NoSuchFile:
 
342
        return
 
343
    expr = re.compile('<a[^>]*href="([^>]*)\/"[^>]*>', flags=re.I)
341
344
    for line in lines:
342
345
        match = expr.search(line)
343
346
        if match is None: