/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Javier Derderian
  • Date: 2008-04-16 17:23:57 UTC
  • mto: This revision was merged to the branch mainline in revision 464.
  • Revision ID: javierder@gmail.com-20080416172357-28k9ltj6w0643g0w
Added 'Revision # doesn't exist' message

Show diffs side-by-side

added added

removed removed

Lines of Context:
392
392
        (wt, wt_path) = workingtree.WorkingTree.open_containing(path)
393
393
        
394
394
        if revision is not None:
395
 
            revision_id = revision[0].in_history(wt.branch).rev_id
 
395
            try:
 
396
                revision_id = revision[0].in_history(wt.branch).rev_id
 
397
            except:
 
398
                from bzrlib.errors import BzrError
 
399
                raise BzrError('Revision %r doesn\'t exist' % revision[0].user_spec )
396
400
        else:
397
401
            revision_id = None
398
402