~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-14 07:03:14 UTC
  • mfrom: (2989.1.1 bzr.ab.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20071114070314-fdmaj14v4x59z1yv
Fix 133751 by erroring if -r0 is provided to log

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
    symbol_versioning,
58
58
    )
59
59
import bzrlib.errors as errors
60
 
from bzrlib.revisionspec import(
61
 
    RevisionInfo
 
60
from bzrlib.revision import (
 
61
    NULL_REVISION,
 
62
    )
 
63
from bzrlib.revisionspec import (
 
64
    RevisionInfo,
62
65
    )
63
66
from bzrlib.symbol_versioning import (
64
67
    deprecated_method,
362
365
            branch.check_real_revno(end_revision)
363
366
            end_revno = end_revision
364
367
 
 
368
    if ((start_rev_id == NULL_REVISION)
 
369
        or (end_rev_id == NULL_REVISION)):
 
370
        from bzrlib.errors import BzrCommandError
 
371
        raise BzrCommandError('Logging revision 0 is invalid.')
365
372
    if start_revno > end_revno:
366
373
        from bzrlib.errors import BzrCommandError
367
374
        raise BzrCommandError("Start revision must be older than "