~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

Make bzr log -r .. work, fixes bug #4609. Add a bunch of tests to make sure
it doesn't break in future.

Show diffs side-by-side

added added

removed removed

Lines of Context:
948
948
        elif len(revision) == 1:
949
949
            rev1 = rev2 = revision[0].in_history(b).revno
950
950
        elif len(revision) == 2:
951
 
            rev1 = revision[0].in_history(b).revno
 
951
            if revision[0].spec is None:
 
952
                # missing begin-range means first revision
 
953
                rev1 = 1
 
954
            else:
 
955
                rev1 = revision[0].in_history(b).revno
 
956
 
952
957
            if revision[1].spec is None:
953
958
                # missing end-range means last known revision
954
959
                rev2 = b.revno()