~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-07-11 22:21:16 UTC
  • Revision ID: mbp@sourcefrog.net-20050711222116-bb77e33adc72ac90
- fix mishandled --revision parameter for bzr branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
591
591
        if revision is not None:
592
592
            if len(revision) > 1:
593
593
                raise BzrCommandError('bzr branch --revision takes exactly 1 revision value')
 
594
        else:
 
595
            revision = [None]
594
596
        try:
595
597
            try:
596
598
                br_from = find_cached_branch(from_location, cache_root)