~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-12-01 20:17:21 UTC
  • mfrom: (3872.2.6 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20081201201721-zconkq0v7pow8nmw
(Marius Kruger) Raise an exception when we encounter an non-existing
        dotted revno.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
 
from bzrlib.symbol_versioning import deprecated_function, deprecated_in
18
17
from bzrlib.lazy_import import lazy_import
19
18
lazy_import(globals(), """
20
19
from bzrlib import (
30
29
from bzrlib.trace import note
31
30
 
32
31
 
33
 
@deprecated_function(deprecated_in((1, 12, 0)))
34
32
def read_bundle_from_url(url):
35
33
    return read_mergeable_from_url(url, _do_directive=False)
36
34
 
92
90
        # doesn't always fail at get() time. Sometimes it fails
93
91
        # during read. And that raises a generic IOError with
94
92
        # just the string 'Failure'
95
 
        # StubSFTPServer does fail during get() (because of prefetch)
 
93
        # StubSFTPServer does fail during get() (because of prefetch) 
96
94
        # so it has an opportunity to translate the error.
97
95
        raise errors.NotABundle(str(e))
98
96
    except errors.NotAMergeDirective: