456 Commits

Author SHA1 Message Date
James E. Blair
2efa0606f7 Add an option to disable the breadcrumb footer
Change-Id: I4092cd05fca8c808165f27b73e9a5f501bc97405
2016-05-02 10:59:22 -05:00
James E. Blair
e7fcc988d3 Add extra columns to change list if there is room
Use a fixed estimate of the amount of space needed for each column
and then if there is extra space, consider adding the Branch and
Topic columns to the change list.

Change-Id: I90ee7f3e1953468a9e81cc508c2c444e1af50efc
2016-05-02 10:59:22 -05:00
James E. Blair
37ef05652d Use short titles in breadcrumbs
When possible, try to shorten the screen title to the shortest
length possible while still being descriptive enough to help
the user navigate.

Also, make the space for the ellipses available for use for
titles that do not need them.

Change-Id: I82e08ac60451e81c2e5a51f8595fb19234f23859
2016-05-02 10:59:22 -05:00
Martin André
a6689f9e15 Add matchers for external references on launchpad
This commit adds matchers for bugs and blueprints on launchpad, and
replicates the behavior of gerrit UI.

Change-Id: Ic721a90df029d5b82d30c7d7193170488c5c0406
2016-05-02 10:59:22 -05:00
James E. Blair
8f38e54747 Fix rendering error in change screen
This corrects the following error:
  urwid.listbox.ListBoxError: Widget <Pile selectable box/flow widget>
  at position 2 within listbox calculated X rows but rendered Y!

This happened when related changes links were winder than the screen.
They were rendered as FixedButtons, but there is no reason for them
to be.  This changes them to regular urwid Buttons which are flow
widgets and will line-wrap if needed.

Change-Id: Ia91beaffadbb7a3e5341b11c49bb2d6d74df4782
2016-05-02 10:59:22 -05:00
Cody A.W. Somerville
c7ed7ab38a Make 'title' attribute available on dialog widgets
Gertty uses WidgetWraps around the LineBox widget for popup widgets. Add
LineBoxTitlePropertyMixin which adds property and setter for title attribute,
accessing the underlying title_widget on the wrapped LineBox widget.

We use the popup method in the controller to display these dialogs. It uses an
Overlay widget to display our dialog widget on top of the current view. If the
widget to be displayed by the Overlay widget has title attribute, copy it to
the Overlay widget.

Change-Id: I4c6ecbc7ed87867cd67cd93c1125384dd5d4b9af
2016-05-02 10:59:22 -05:00
Cody A.W. Somerville
b009075467 Add navigation breadcrumb footer
This change adds a navigational breadcrumb trail to the bottom of the interface
to allow the user to easily keep track of their location in Gertty.

Change-Id: I40de19084bf66d095c14ac7a4a901f293b30b9be
2016-05-02 10:59:22 -05:00
James E. Blair
7d648c0e68 Add configuration information to docs
This is basically the reference config file translated to rst.

This also makes some minor updates to the reference config file.

Change-Id: I6aa3f9a7410a219ad00cee827ac4c273cf54bff5
2016-05-02 10:59:22 -05:00
Jenkins
3561617b2c Merge "Handle more than one change result when searching" 2016-03-10 16:39:32 +00:00
Jenkins
06f1c6c552 Merge "Support batch abandon/restore" 2016-03-10 16:39:26 +00:00
Jenkins
8dcdfe79d9 Merge "Indent projects under topics" 2016-03-10 16:39:20 +00:00
Jenkins
f253288b48 Merge "Make topic selection a select list" 2016-03-10 16:39:14 +00:00
Jenkins
44fd26d781 Merge "Add config option for git clone URL" 2016-03-10 16:37:53 +00:00
Christoph Gysin
5479310d75 Add config option for git clone URL
This commit adds a new config option 'git-url', where the
base URL can be specified to anything recognised by git-clone:
https://www.kernel.org/pub/software/scm/git/docs/git-clone.html#URLS

This is useful if the values provided by gerrit are incorrect, or if
you have access to a gerrit mirror closer to you.

Change-Id: I35ee5540aad2f27125ec15e6e933ac1ad3f3050e
2016-03-09 13:11:59 -08:00
James E. Blair
6b73b7a5ce Support batch abandon/restore
Change-Id: Ic3cfef29f3ba6326249a3058b7e5a3e4dd3bfb36
2016-03-09 13:04:22 -08:00
James E. Blair
3b29386bdc Handle more than one change result when searching
...by change ID.

Change-Id: Ie8fb11bf0a52b13870db5d4f9c407f775b93e939
2016-03-09 09:28:10 -08:00
David Shrewsbury
06957db1ed Use diff long options and uncap GitPython
GitPython had a very incompatible change that breaks any call that
uses a single character option (e.g., -U) that requires no space
between the option and the value. So far, this breaks the diff API
where we used the -U option instead of the long option equivalent.
For history:

https://github.com/gitpython-developers/GitPython/issues/382

So far, I've only seen one place where this bites gertty. Since the
GitPython author has stated this will not be reverted or fixed, having
a permanent cap on that library seems harsh as we won't get any other
bug fixes.

This fixes the known/found areas where we are affected.

Change-Id: Iadb279234af2ea01fbff35dc629c01dae5a3195c
2016-03-08 14:09:28 -05:00
James E. Blair
e485cfa7db Indent projects under topics
When using project topics, indent the projects within each topic
for better visual differentiation.

Change-Id: I73fc9bfd16fc6ccb4a818580bf0dda60a82466d8
2016-02-26 11:27:48 -08:00
James E. Blair
2c89751622 Make topic selection a select list
Rather than requiring that the name be entered.

Change-Id: I187fa7be2c83601f3962258c7818836fff08758d
2016-02-26 11:23:26 -08:00
James E. Blair
b33cbc0a7a Fix diff crash on perm-only changes
The update to GitPython that supports easily detecting the filenames
in file-permissions-only changes merged a year ago.  Start using it
and raise the mininum GitPython version to one which supports it.

Change-Id: I9a5104a4b399dee0d9e029fd0b10e37b8aafd3f8
2016-02-17 11:18:55 -08:00
James E. Blair
75b0be437e Do not use GitPython 1.0.2
https://github.com/gitpython-developers/GitPython/issues/382

Change-Id: I6d9bdaadb82b6702ffb75245f84637f9795d4e02
2016-02-12 07:04:58 -08:00
James E. Blair
f33d3bc234 Add another utf8 test change comment
This change has utf8 chars in the diff itself.

Change-Id: I4fb910e781fedb3e2830829d1bef7d0c1e12da0e
2016-02-10 08:07:14 -08:00
James E. Blair
f5594d9c12 Fix return values in handleCommands in project_list
This appears to be an omission.

Change-Id: Ie3f68192bd12ffd0b162e16cf472d4e475ef1974
2016-02-10 07:57:04 -08:00
James E. Blair
3c333acd7c Make sorting commands use two two keys
And add sort by last seen.

As we add more sorting features, they keymap is getting crowded.
Since most of the time folks will probably set their preferred sort
in the config file, make changing the sort a two-key process.  This
also lets them be somewhat more intuitive due to reduced collisions.

Change-Id: I9e7b23f7036f10525d10268f9b3af8296cabdf69
2016-02-10 07:57:03 -08:00
James E. Blair
7c0220d4e3 Add support for customized dashboard sorting
And suggest 'reversed last seen' as a sort order for the Recently
Seen dashboard.

Change-Id: I99a72b58f4135649167f1230f3847809ad807786
2016-02-10 07:57:02 -08:00
James E. Blair
4a18f6a6f8 Add support for last_seen
Change-Id: I01f2735b9d72d41b99427a39dbb1e31246a1c531
2016-02-10 07:57:01 -08:00
James E. Blair
068e83b9ed Add debug-sync option
This is basically just so a developer can turn down the chatty
sync operations that are normally going on and just see the
minimum interactive sync operations.  It's not something that
should be used normally (reviews may not be uploaded, etc).

Change-Id: I9b891366783a18c2896ac759ed4cb855beff906b
2016-02-10 07:56:59 -08:00
James E. Blair
4eef0452d5 Add support for conflicts-with
This adds a database migration for a new table.

Change-Id: I9d5ea4eec89f706435430b90f563b5a0c0fef9e8
2016-02-10 07:56:58 -08:00
James E. Blair
7fc7d18db4 Improve handling of abandoned related changes
Display [ABANDONED] if the parent is abandoned, and do not display
children if they are abandoned.

Change-Id: I8384cd9df2f3a9310874e62f227963a5f1a9476a
2016-02-10 07:56:56 -08:00
James E. Blair
8575905669 Fix unicode regression regressions
8377e0a went a bit too far and removed some code that was necessary
for 3.4 but broke some utf-8 in git commits.  This restores most
of what that removed, with one change that causes it to work with
the test commits listed at the top of the file.

Change-Id: Id39d7799f9c210a0ff0a80aeef34681eb6fe5770
2016-02-10 07:56:44 -08:00
James E. Blair
fbb9969033 Fix typo in expire-age setting
Change-Id: I3ddf3d6d4dac953ab9471346feb76928211d61e4
2016-02-05 15:54:35 -08:00
Jan Kundrát
8377e0ac28 Fix unicode regressions
Commit 74877d2 added improved support for python3 but introduced
some regressions around unicode handling.

Inspired-By: James E. Blair <jeblair@linux.vnet.ibm.com>
Change-Id: I424a921d80959777ff72df499c5931a21dc0dccb
2016-02-05 15:54:34 -08:00
James E. Blair
74abd8e318 Support fetching more than 1k changes post 2.8
The update to support the offset rather than sortkey based batching
neglected to account for a query that would need more than 2 batches.

Change-Id: I04ef3243b1fb20cd688af3227fd9998e850fdf9a
2016-01-29 13:47:38 -08:00
Cody A.W. Somerville
dce1155653 Add missing import of 'six' to app.py
app.py makes reference to six.b without importing module.

Change-Id: I7e89ecc8dddccff35dfd5990d339068ae58f23cf
2016-01-21 22:59:57 -05:00
James E. Blair
9783079c45 Add documentation
Add some actual sphinx documentation.  This is basically the README
split up into sections.  Once this is actually published somewhere,
we can remove some of the content from the README and link to an
on-line reference instead.

Change-Id: I25e5ff842e94a5a05aa62c164952df93efc49e98
2016-01-16 10:09:22 -08:00
Jenkins
4c8b7fe960 Merge "Document urxvt clickable links" 2016-01-15 17:20:00 +00:00
Jenkins
006f286fa9 Merge "Always sync a specfically queried change" 2016-01-15 17:19:54 +00:00
Jenkins
f3e9225a92 Merge "Add vi mode navigation" 2016-01-15 17:19:48 +00:00
Jenkins
47afa4669c Merge "Display a message when interactively syncing" 2016-01-15 17:19:43 +00:00
Jenkins
83d46e3bdd Merge "Fix off-by-one in sync counter" 2016-01-15 17:19:37 +00:00
Jenkins
20b4a537dc Merge "Add option to disable mouse support" 2016-01-15 17:19:31 +00:00
Jenkins
d17ca93b84 Merge "Add support for external commands" 2016-01-15 17:19:26 +00:00
Jenkins
a3cb84c7cc Merge "Allow gertty to run in Py3K environments" 2016-01-15 17:19:20 +00:00
Jenkins
8c965d4f24 Merge "Add a vi keymap" 2016-01-15 17:19:14 +00:00
Jenkins
ac9e9c49d6 Merge "Cache counts of project changes" 2016-01-15 17:19:09 +00:00
Jenkins
bdf7577648 Merge "Add process mark to project list" 2016-01-15 17:19:03 +00:00
Jenkins
75ebae9d76 Merge "Add project topics" 2016-01-15 17:18:47 +00:00
Jenkins
66feedb345 Merge "remove python 2.6 trove classifier" 2016-01-15 17:18:41 +00:00
Jenkins
d97b0e4632 Merge "Add notes to see reference-gertty.yaml for more info" 2016-01-15 17:18:33 +00:00
James E. Blair
b8e3a16e15 Document urxvt clickable links
Change-Id: I4ca5f6859c632f0da1f6d83e9dd8ef0418d0dca9
2016-01-15 09:12:23 -08:00