~cjwatson/brz-svn/fix-http-probe

« back to all changes in this revision

Viewing changes to mapping.py

  • Committer: Jelmer Vernooij
  • Date: 2019-03-04 08:40:44 UTC
  • Revision ID: jelmer@jelmer.uk-20190304084044-f4e1m1he4s8rqhko
Drop file_id arguments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1131
1131
 
1132
1132
def get_svn_file_contents(tree, kind, path, file_id=None):
1133
1133
    if kind == "file":
1134
 
        return tree.get_file(path, file_id)
 
1134
        return tree.get_file(path)
1135
1135
    elif kind == "symlink":
1136
 
        target = tree.get_symlink_target(path, file_id)
 
1136
        target = tree.get_symlink_target(path)
1137
1137
        return BytesIO(b"link %s" % target.encode("utf-8"))
1138
1138
    else:
1139
1139
        raise AssertionError