/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 bzrlib/push.py

  • Committer: Robert Collins
  • Date: 2010-05-06 11:08:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5223.
  • Revision ID: robertc@robertcollins.net-20100506110810-h3j07fh5gmw54s25
Cleaner matcher matching revised unlocking protocol.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2008 Canonical Ltd
 
1
# Copyright (C) 2008, 2009, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
17
17
"""UI helper for the push command."""
18
18
 
19
19
from bzrlib import (
20
 
    builtins,
21
 
    branch,
22
20
    bzrdir,
23
21
    errors,
24
22
    revision as _mod_revision,
110
108
                    "\nYou may supply --create-prefix to create all"
111
109
                    " leading parent directories."
112
110
                    % location)
 
111
            # This shouldn't occur (because create_prefix is true, so
 
112
            # create_clone_on_transport should be catching NoSuchFile and
 
113
            # creating the missing directories) but if it does the original
 
114
            # NoSuchFile error will be more informative than an
 
115
            # UnboundLocalError for br_to.
 
116
            raise
113
117
        except errors.TooManyRedirections:
114
118
            raise errors.BzrCommandError("Too many redirections trying "
115
119
                                         "to make %s." % location)