~jeanfrancois.roy/bzr/url-safe-escape

« back to all changes in this revision

Viewing changes to bzrlib/clone.py

[merge] robertc's integration, updated tests to check for retcode=3

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
        branch_from.unlock()
101
101
 
102
102
 
103
 
def _get_truncated_history(branch_from, revision):
 
103
def _get_truncated_history(branch_from, revision_id):
104
104
    history = branch_from.revision_history()
105
 
    if revision is None:
 
105
    if revision_id is None:
106
106
        return history
107
107
    try:
108
 
        idx = history.index(revision)
 
108
        idx = history.index(revision_id)
109
109
    except ValueError:
110
110
        raise InvalidRevisionId(revision_id=revision, branch=branch_from)
111
111
    return history[:idx+1]