~debian-bazaar/debian/sid/loggerhead/unstable

« back to all changes in this revision

Viewing changes to loggerhead/controllers/filediff_ui.py

  • Committer: Jelmer Vernooij
  • Date: 2022-07-11 14:23:32 UTC
  • mfrom: (182.150.80)
  • Revision ID: jelmer@jelmer.uk-20220711142332-awp47d8qhnyuvp2o
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
    errors,
6
6
    urlutils,
7
7
    )
8
 
try:
9
 
    from breezy.tree import find_previous_path
10
 
except ImportError:  # breezy < 3.1
11
 
    def find_previous_path(from_tree, to_tree, path):
12
 
        file_id = from_tree.path2id(path)
13
 
        if file_id is None:
14
 
            raise errors.NoSuchFile(path)
15
 
        try:
16
 
            return to_tree.id2path(file_id)
17
 
        except errors.NoSuchId:
18
 
            return None
 
8
from breezy.tree import find_previous_path
19
9
 
20
10
from .. import util
21
11
from ..controllers import TemplatedBranchView