Merge lp://qastaging/~jefferyto/byobu/misc-updates into lp://qastaging/byobu

Proposed by Jeffery To
Status: Needs review
Proposed branch: lp://qastaging/~jefferyto/byobu/misc-updates
Merge into: lp://qastaging/byobu
Diff against target: 1406 lines (+467/-282)
29 files modified
debian/changelog (+96/-0)
usr/bin/byobu-ctrl-a.in (+149/-76)
usr/bin/byobu-export.in (+1/-1)
usr/bin/byobu-janitor.in (+13/-7)
usr/bin/byobu-launch.in (+1/-1)
usr/bin/byobu-select-profile.in (+102/-75)
usr/bin/byobu-status-detail.in (+1/-1)
usr/bin/byobu-status.in (+6/-7)
usr/bin/byobu.in (+14/-20)
usr/lib/byobu/battery (+1/-1)
usr/lib/byobu/disk_io (+1/-1)
usr/lib/byobu/hostname (+1/-1)
usr/lib/byobu/include/common (+7/-3)
usr/lib/byobu/include/constants (+6/-10)
usr/lib/byobu/include/dirs.in (+23/-14)
usr/lib/byobu/include/shutil (+4/-4)
usr/lib/byobu/ip_address (+2/-2)
usr/lib/byobu/memory (+1/-1)
usr/lib/byobu/release (+2/-2)
usr/lib/byobu/updates_available (+14/-14)
usr/lib/byobu/users (+10/-2)
usr/lib/byobu/whoami (+3/-3)
usr/lib/byobu/wifi_quality (+4/-4)
usr/share/byobu/keybindings/f-keys.screen (+1/-1)
usr/share/byobu/keybindings/f-keys.tmux (+1/-1)
usr/share/byobu/profiles/Makefile.am (+1/-1)
usr/share/byobu/profiles/byoburc (+0/-27)
usr/share/byobu/profiles/screenrc (+1/-1)
usr/share/byobu/profiles/tmuxrc (+1/-1)
To merge this branch: bzr merge lp://qastaging/~jefferyto/byobu/misc-updates
Reviewer Review Type Date Requested Status
Dustin Kirkland  Pending
Review via email: mp+368934@code.qastaging.launchpad.net

Description of the change

There isn't a major theme to these changes, just things I noticed while working on porting byobu to OpenWrt (but aren't critical enough that I needed to patch right away).

There is one fix (trailing "#" sign for usr/lib/byobu/users). Originally it was working for screen but broken for tmux, then I fixed tmux but (unwittingly) broke screen. Now it should work for both.

I imagine the "create new config dir in ~/.config" change may be somewhat controversial. I think at this point most users will have a ~/.config directory and keeping $HOME clean(er) is a good thing.

To post a comment you must log in.
Revision history for this message
Jeffery To (jefferyto) wrote :

Should I separate these changes into separate branches/merge requests?

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Hi Jeffrey,

Yeah, these are a lot of changes. I'm struggling to review all of them, as a monolith.

Revision history for this message
Jeffery To (jefferyto) wrote :

> Hi Jeffrey,
>
> Yeah, these are a lot of changes. I'm struggling to review all of them, as a
> monolith.

I can submit them one at a time (the first one is at https://code.launchpad.net/~jefferyto/byobu/fix-trailing-hash/+merge/379412) but I would prefer not to wait 6 months for a review.

Revision history for this message
Jeffery To (jefferyto) wrote :

I can submit all of the changes in separate merge requests all at once, but since they all include an update to debian/changelog, they will all conflict with each other.

Do you want me to submit all of the changes all at once and you will resolve the conflicts, or do you want me to submit them one at a time?

Unmerged revisions

2640. By Jeffery To

* usr/bin/byobu-status-detail.in,
  usr/bin/byobu-status.in:
  - Remove unnecessary backticks; the command returns no output, only
    the exit value is tested

2639. By Jeffery To

* usr/bin/byobu-ctrl-a.in,
  usr/bin/byobu-janitor.in,
  usr/share/byobu/keybindings/f-keys.screen,
  usr/share/byobu/keybindings/f-keys.tmux:
  - Fix ^A unbinding: ^A is bound in f-keys.screen / f-keys.tmux to
    autorun byobu-ctrl-a, but if the user selected a different key in
    byobu-config, it would unbind the custom key instead of ^A
  - Use functions to help make the logic easier to understand
  - Add "custom" and "manual" modes, that only unbind ^A ("emacs" mode
    would also set prefix to F12 for tmux, possibly overriding the
    user's custom prefix); "custom" when it is detected that the user
    has customized their prefix before byobu-ctrl-a was run for the
    first time, "manual" when the user just wants to disable the
    autorun
  - Add an "autorun" command line option, used when byobu-ctrl-a is
    triggered by the user pressing ^A; in this case, byobu-ctrl-a will
    wait for the user to press enter/return before exiting, so that
    the user can read the text output before the window auto-closes
  - Add a quit option, so that the user can exit byobu-ctrl-a without
    making any changes

2638. By Jeffery To

* usr/bin/byobu-status.in:
  - Include $BYOBU_CONFIG_DIR/datetime.tmux in the sourcing for loop

2637. By Jeffery To

* usr/bin/byobu-select-profile.in:
  - Update help message
  - Remove $BYOBU_CONFIG_DIR/profile test, it is not used directly in
    the script
  - Restore list colors functionality
  - Use local variables in functions
  - Simplify color calculation
  - Exit when --list / --help / invalid options are specified, before
    making changes
  - Removed -- option, command utilities that have a -- option expect
    data to come after the --

2636. By Jeffery To

* usr/bin/byobu-janitor.in:
  - Remove unused variables

2635. By Jeffery To

* usr/bin/byobu-export.in,
  usr/bin/byobu-janitor.in,
  usr/bin/byobu-launch.in,
  usr/bin/byobu-select-profile.in,
  usr/bin/byobu-status-detail.in,
  usr/bin/byobu-status.in,
  usr/bin/byobu.in,
  usr/lib/byobu/battery,
  usr/lib/byobu/disk_io,
  usr/lib/byobu/hostname,
  usr/lib/byobu/include/common,
  usr/lib/byobu/include/constants,
  usr/lib/byobu/include/shutil,
  usr/lib/byobu/ip_address,
  usr/lib/byobu/memory,
  usr/lib/byobu/release,
  usr/lib/byobu/updates_available,
  usr/lib/byobu/whoami,
  usr/lib/byobu/wifi_quality:
  - Add (and use) a byobu_test function to wrap $BYOBU_TEST

2634. By Jeffery To

* usr/bin/byobu.in:
  - Remove exporting of $BYOBU_BACKEND, this is already done in
    usr/lib/byobu/include/constants

2633. By Jeffery To

* usr/lib/byobu/include/constants:
  - Remove sourcing of files looking for $BYOBU_BACKEND, this is
    already done in usr/lib/byobu/include/common

2632. By Jeffery To

* usr/bin/byobu-status-detail.in:
  - Use $BYOBU_TEST

2631. By Jeffery To

* usr/bin/byobu.in:
  - Replace $HOME/.$PKG with $BYOBU_CONFIG_DIR

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches