small bug in "bzr branch"

John Arbash Meinel john at arbash-meinel.com
Mon Feb 12 19:37:28 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I just saw this in cmd_branch:

        try:
            br_from = Branch.open(from_location)
        except OSError, e:
            if e.errno == errno.ENOENT:
                raise errors.BzrCommandError('Source location "%s" does not'
                                             ' exist.' % to_location)
            else:
                raise

I'm pretty sure that should be:

% from_location)


But actually it doesn't matter, because the try/except OSError is bogus.
We actually raise NotBranchError as part of Branch.open, so really it
should all just be removed.

Thoughts?

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF0MH4JdeBCYSNAAMRAoK+AJ9SXklTNtyz30IFXwRtKlZGoRQO1QCaAsSS
c6Sx2powbO/yWHFNEkkNZLQ=
=KlSC
-----END PGP SIGNATURE-----



More information about the bazaar mailing list