get_export_generator() should check argument consistency

Bug #803045 reported by xaav
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Triaged
Low
Unassigned

Bug Description

when calling bzrlib.export.get_export_generator, an exception should be thrown if one or more of (dest, root) is not set.

This is because the code in bzrlib defaults to dest to set root.

Jelmer Vernooij (jelmer)
Changed in bzr:
status: New → Triaged
importance: Undecided → Low
Jelmer Vernooij (jelmer)
summary: - Error on exporting
+ get_export_generator() should check argument consistency
Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 803045] Re: Error on exporting

I'd rather see the arguments cleaned up a bit; perhaps there should be
multiple factory-type function that take different sets of arguments,
rather than one big function with mutually conflicting arguments.

Martin Pool (mbp)
tags: added: api export tech-debt
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.