/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to commands.py

  • Committer: Jelmer Vernooij
  • Date: 2018-03-17 19:20:55 UTC
  • mto: (0.200.1860 work)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180317192055-mfiy4ofakufm1q2z
Don't use assert.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
        from .repository import GitRepository
98
98
 
99
99
        dest_format = controldir.ControlDirFormat.get_default_format()
100
 
        assert dest_format is not None
 
100
        if dest_format is None:
 
101
            raise errors.BzrError('no default format')
101
102
 
102
103
        if dest_location is None:
103
104
            dest_location = os.path.basename(src_location.rstrip("/\\"))