~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-03-19 08:45:40 UTC
  • mfrom: (5098.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100319084540-odnankeqqjlnjfjh
(vila) Don't crash on bzr log -n0 -r ...A.B.C

Show diffs side-by-side

added added

removed removed

Lines of Context:
2438
2438
            raise errors.BzrCommandError(
2439
2439
                "bzr %s doesn't accept two revisions in different"
2440
2440
                " branches." % command_name)
2441
 
        rev1 = start_spec.in_history(branch)
 
2441
        if start_spec.spec is None:
 
2442
            # Avoid loading all the history.
 
2443
            rev1 = RevisionInfo(branch, None, None)
 
2444
        else:
 
2445
            rev1 = start_spec.in_history(branch)
2442
2446
        # Avoid loading all of history when we know a missing
2443
2447
        # end of range means the last revision ...
2444
2448
        if end_spec.spec is None: