/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 breezy/fetch_ghosts.py

  • Committer: Jelmer Vernooij
  • Date: 2020-02-13 23:57:28 UTC
  • mfrom: (7490 work)
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200213235728-m6ds0mm3mbs4y182
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
 
17
from __future__ import absolute_import
 
18
 
17
19
import contextlib
18
20
 
19
21
from .branch import Branch
20
22
from .trace import note
21
 
from .errors import NoSuchRevision, CommandError
 
23
from .errors import NoSuchRevision, BzrCommandError
22
24
 
23
25
 
24
26
class GhostFetcher(object):
29
31
        if other is None:
30
32
            other = this_branch.get_parent()
31
33
            if other is None:
32
 
                raise CommandError('No branch specified and no location'
 
34
                raise BzrCommandError('No branch specified and no location'
33
35
                                      ' saved.')
34
36
            else:
35
37
                note("Using saved location %s.", other)