interactive questions broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Breezy |
Fix Released
|
High
|
Martin Packman |
Bug Description
It looks like recently, asking questions on the command-line has been broken.
E.g. if I try to use "bzr shelve" and answer a question, it just hangs:
morgaine:
--- breezy/
+++ breezy/
@@ -685,7 +685,9 @@
def create_
- raise errors.
+ return self._format.
+ self, revision_id, from_branch=
+ accelerator_
def find_branch_
"""Find the branch 'format' for this bzrdir.
Shelve? ([y]es, [N]o, [f]inish, [q]uit): y
^\** SIGQUIT received, entering debugger
** Type 'c' to continue or 'q' to stop the process
** Or SIGQUIT again to quit (and possibly dump core)
> /usr/lib/
-> signal.
(Pdb) bt
/usr/
-> exit_val = breezy.
/usr/
-> ret = run_bzr_
/usr/
-> return exception_
/usr/
-> return the_callable(*args, **kwargs)
/usr/
-> ret = run(*run_argv)
/usr/
-> return self.run(
/usr/
-> return self._operation
/usr/
-> self.cleanups, self.func, *args, **kwargs)
/usr/
-> result = func(*args, **kwargs)
/usr/
-> shelver.run()
/usr/
-> change[1])
/usr/
-> work_tree_lines)
/usr/
-> is not None))
/usr/
-> choice = self.prompt(
/usr/
-> return ui.ui_factory.
/usr/
-> return choose_
/usr/
-> choice = getchoice()
/usr/
-> line = self.ui.
/usr/
-> data = self.read(readsize, firstline=True)
/usr/
-> newdata = self.stream.
> /usr/lib/
-> signal.
Related branches
- Jelmer Vernooij: Approve
-
Diff: 418 lines (+123/-122)7 files modifiedbreezy/config.py (+2/-18)
breezy/library_state.py (+2/-2)
breezy/tests/__init__.py (+6/-5)
breezy/tests/test_ui.py (+92/-81)
breezy/ui/__init__.py (+1/-6)
breezy/ui/text.py (+19/-5)
brz (+1/-5)
- Jelmer Vernooij: Approve
-
Diff: 428 lines (+139/-114)7 files modifiedbreezy/tests/__init__.py (+6/-5)
breezy/tests/per_uifactory/__init__.py (+12/-12)
breezy/tests/test_ui.py (+92/-81)
breezy/tests/ui_testing.py (+5/-0)
breezy/ui/__init__.py (+1/-6)
breezy/ui/text.py (+22/-5)
brz (+1/-5)
Changed in brz: | |
status: | Triaged → In Progress |
Changed in brz: | |
status: | In Progress → Fix Released |
Hm, the codecs readline implementation is pants unfortunately. Will need to unwrap the stream before passing in to _ChooseUI and handle decoding in there.