~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Gary van der Merwe
  • Date: 2010-08-02 19:56:52 UTC
  • mfrom: (5050.3.18 2.2)
  • mto: (5050.3.19 2.2)
  • mto: This revision was merged to the branch mainline in revision 5371.
  • Revision ID: garyvdm@gmail.com-20100802195652-o1ppjemhwrr98i61
MergeĀ lp:bzr/2.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2017
2017
      kind is one of values 'directory', 'file', 'symlink', 'tree-reference'.
2018
2018
      branch will be read-locked.
2019
2019
    """
2020
 
    from builtins import _get_revision_range
 
2020
    from builtins import _get_revision_range, safe_relpath_files
2021
2021
    tree, b, path = bzrdir.BzrDir.open_containing_tree_or_branch(file_list[0])
2022
2022
    add_cleanup(b.lock_read().unlock)
2023
2023
    # XXX: It's damn messy converting a list of paths to relative paths when
2029
2029
    # case of running log in a nested directory, assuming paths beyond the
2030
2030
    # first one haven't been deleted ...
2031
2031
    if tree:
2032
 
        relpaths = [path] + tree.safe_relpath_files(file_list[1:])
 
2032
        relpaths = [path] + safe_relpath_files(tree, file_list[1:])
2033
2033
    else:
2034
2034
        relpaths = [path] + file_list[1:]
2035
2035
    info_list = []