/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/textinv.py

  • Committer: Vincent Ladeuil
  • Date: 2009-12-10 16:54:28 UTC
  • mto: (4887.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4888.
  • Revision ID: v.ladeuil+lp@free.fr-20091210165428-n9nysxcuz0vwfm9o
Allows ui factories to query users for an integer.

* bzrlib/tests/test_ui.py:
(TestTextUIFactory.test_text_ui_get_integer,
CannedInputUIFactoryTests.test_canned_input_get_input): Tests.

* bzrlib/ui/__init__.py:
(UIFactory.get_integer): New definition.
(CannedInputUIFactory.get_integer): Implementation.

* bzrlib/ui/text.py:
(TextUIFactory.get_integer): Implementation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
 
18
18
from bzrlib.errors import BzrError
19
 
from bzrlib.inventory import Inventory
 
19
from bzrlib.inventory import InventoryEntry, Inventory
20
20
 
21
21
 
22
22
START_MARK = "# bzr inventory format 3\n"