~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: 2008-09-25 07:55:16 UTC
  • mfrom: (3734.1.2 248427-log-c)
  • Revision ID: pqm@pqm.ubuntu.com-20080925075516-olnl5p5au2u1ml5v
(vila) Fix bug #248427 by adding a --change option to log

Show diffs side-by-side

added added

removed removed

Lines of Context:
1689
1689
                   help='Show files changed in each revision.'),
1690
1690
            'show-ids',
1691
1691
            'revision',
 
1692
            Option('change',
 
1693
                   type=bzrlib.option._parse_revision_str,
 
1694
                   short_name='c',
 
1695
                   help='Show just the specified revision.'
 
1696
                   ' See also "help revisionspec".'),
1692
1697
            'log-format',
1693
1698
            Option('message',
1694
1699
                   short_name='m',
1709
1714
            show_ids=False,
1710
1715
            forward=False,
1711
1716
            revision=None,
 
1717
            change=None,
1712
1718
            log_format=None,
1713
1719
            message=None,
1714
1720
            limit=None):
1715
1721
        from bzrlib.log import show_log
1716
1722
        direction = (forward and 'forward') or 'reverse'
1717
 
        
 
1723
 
 
1724
        if change is not None:
 
1725
            if len(change) > 1:
 
1726
                raise errors.RangeInChangeOption()
 
1727
            if revision is not None:
 
1728
                raise errors.BzrCommandError(
 
1729
                    '--revision and --change are mutually exclusive')
 
1730
            else:
 
1731
                revision = change
 
1732
 
1718
1733
        # log everything
1719
1734
        file_id = None
1720
1735
        if location: