391 Commits

Author SHA1 Message Date
James E. Blair
2203c7329c Add notes to see reference-gertty.yaml for more info
Change-Id: Id023c912065a3ffa98744ea61b3b9b77b34c63d1
2015-12-22 13:00:03 -08:00
Matthias Runge
9b931602a6 Fix list index out of range
When clicking with the mouse in rows without links, gertty
crashes.

Change-Id: I0005d76a6804cbdd2d366c6e07f15c1316cfed90
2015-12-21 18:02:48 +00:00
James E. Blair
0e80bbf217 Fix multi-key handling in diff view
Change-Id: I032cb04e8d88a5a36ce5125a5bee644e571242c2
2015-12-21 18:02:23 +00:00
James E. Blair
76ccd91ff9 Support >= 2.9 query batching
Change-Id: I78e2f32d16c938153e58c1304575622351271b71
2015-12-21 18:01:54 +00:00
James E. Blair
f21f085d20 Fix multi-key handling at top level
The example for multi-key handling, setting quit to ":q", did not
work because the key buffer clearing at the project screen was
interfering with the key buffering for unhandled input at the top
level.  Correct this by only clearing the keybuffer in the project
screen if that screen handled a command.  Otherwise, let the
unhandled input handler clear it if necessary.

Change-Id: I104141ceaa87e6178ca74467a55cb7a944ad0128
2015-12-21 09:56:15 -08:00
Martin André
96a29dae9b Fix config validation to accept new keymap format
Commit I0cd0884e0e1f4f0fa82f93e5f7438ff00c5a992aadded support for
sequences of keys input but config file validation was not updated to
reflect the change.

Change-Id: I9c648686737262148a16d3228413da5939677000
2015-12-21 08:29:20 -08:00
Jenkins
7a041b0d19 Merge "Match links by url instead of domain." 2015-12-17 22:29:08 +00:00
James E. Blair
861ef82a8f Fix commit message editing in >= 2.11
Detect the gerrit version on startup and on any reconnection.
When submitting commit message edits, use the change edit API
in 2.11 or greater as the old API has been removed.

Change-Id: Idcba9fc6d424311658b0470410c820015bac9590
2015-12-17 12:28:38 -08:00
James E. Blair
540c8dd7cc Support multiple key input
Change-Id: I0cd0884e0e1f4f0fa82f93e5f7438ff00c5a992a
2015-12-04 13:08:05 -08:00
James E. Blair
6f9e0ceb2f Add help entries for kill, yank, isearch
Change-Id: I13c074a5f67ff9ce3ef5c6819b72507ceadcfd4c
2015-12-04 13:08:05 -08:00
James E. Blair
eae2e60084 Add navigation to interactive search
Change-Id: I04de45c7b4c73d1c927d442784614adea7a16381
2015-12-04 13:08:05 -08:00
James E. Blair
0d0f0f6dcd Add interactive search to diff view
Add a simple interactive search to the diff view.  This is bound
to C-s by default.  It highlights text, but does not yet navigate.

Change-Id: Ic795bb5d18911590237b6595f812e10fd4baa1ce
2015-12-04 13:08:05 -08:00
James E. Blair
c8d81b7693 Add a simple kill ring
Create a global app kill ring and a custom edit widget that can
kill and yank from it.  Also, add Emacs beginning/end of line
keys to the default keymap.

Change-Id: I18d8d47694c89ede4dcec7eaf5d3fb2210ef4438
2015-12-04 13:08:00 -08:00
Wouter van Kesteren
4d268e5679 Match links by url instead of domain.
Exherbo has a setup where gerrit is at
https://galileo.mailstation.de/gerrit/ and jenkins is at
https://galileo.mailstation.de/jenkins/. gertty falsely thinks that the
jenkins link is a change and when clicked it weirdly starts to sync
random projects for 10 minutes before telling me that the change is not
found. This patch fixes it by matching on the full url.

Change-Id: I4261fce74d6cfaec736e478747592b001d82400d
2015-12-03 15:22:38 +01:00
James E. Blair
b0f595b1c1 Separate search and refine search commands
Being able to refine a search query is useful, but so is being able
to quickly open a specific change from anywhere.  Separate these
commands.  C-o opens a blank search input; M-o opens a search input
pre-filled with th ecurrent query in list view.

Change-Id: I49d0f076354322a2652de515d476548926a99182
2015-11-08 15:28:06 -08:00
James E. Blair
da0178b2da Fix syncing changes with comments on a missing file
If a change has comments on a file that is not in a patchset,
Gertty will fail to sync the change because local db entries for
files are only created if the file is actually in the revision.

If a comment appears for an unknown file, create an entry in
the db for that file.  Note, this will cause the change to appear
in "file:" queries that match that file.  It's not clear to me
that is incorrect.

Change-Id: I4916b85a5cbd72ced6682448b774752f3f6cc821
2015-11-08 15:28:06 -08:00
Paul Bourke
3b2b671ce4 Change key binding for reverse sort to shift-r ('R')
The addition of the ability to review multiple changes at once from the
change_list view duplicates the reverse_order keybinding. They both use
'r'.

Change the reverse_order binding to 'R'.

See, https://storyboard.openstack.org/#!/story/2000290

Change-Id: I3728948a55060ff9f1bd28352474fc4479e68ab9
2015-10-27 00:50:21 +00:00
Jeremy Stanley
a5f3ea5193 Update .gitreview for new namespace
Change-Id: I384dac80b6c89cec71315a907b5f5b29efa472bb
2015-10-17 22:29:11 +00:00
Alex Schultz
5f680ea6e4 Make permalink clickable
This change allows a user to click the permalink on the review screen
and have it open up in a web browser.

Change-Id: I4c0fe35f062043a47368d68fecbbcdbf8d955267
2015-09-17 13:07:43 -05:00
Jenkins
fdff70841e Merge "Support '-' as negation operator in query" 2015-08-07 15:40:05 +00:00
Jenkins
0b9380edce Merge "Redisplay after spawning browser" 2015-08-07 15:39:59 +00:00
Jenkins
2cfded253e Merge "Supply a default query on search" 2015-08-07 15:39:44 +00:00
Clint Adams
e042b4e679 Support '-' as negation operator in query
This nudges slightly toward harmony with the Gerrit web UI
search syntax.

Change-Id: Ibff2bef27d2e5d3f3d703c877d9332d5aa670c54
2015-07-29 18:15:10 -04:00
Jeremy Stanley
e89ea6a6a2 Redisplay after spawning browser
After launching a browser child process, gertty's display may no
longer be current (e.g., when using a console-based browser).
Redisplay the screen contents following browser execution as a
prophylactic measure.

Note: you can test this by invoking `BROWSER=lynx gertty` with lynx
installed (but really, can you call it a computer if it doesn't have
lynx installed?!?).

Change-Id: I929e6ec4252b3e4c7c8c425a87cc8be7c0434828
2015-07-17 13:59:41 +00:00
James E. Blair
0b02fafdc7 Fix get_repo call even more
Fix the error:
  AttributeError: 'App' object has no attribute 'git_root'

That was not quite fixed by I55103b71e7fe35e282d69c3c95c61cbad95ef729

Change-Id: I28eb4f24b184f2843e25516450b3d145204a8828
2015-07-06 13:03:06 -07:00
James E. Blair
c69d9e9536 Supply a default query on search
When opening the search dialog from a change list, use the current
query as the default value.  This lets you iterate on a query
without needing to type or copy it repeatedly.  However, it does
mean that you need to clear out the field if you want a completely
different query.

Change-Id: I1f31db1cde0b86c5a7b214866f1df686dd901c7c
2015-07-02 17:25:42 -07:00
Jenkins
9d6dba47b4 Merge "Show all held changes in held-changes view" 2015-07-02 23:42:05 +00:00
Jenkins
e1e4396fd7 Merge "Specify color for unstable test job" 2015-07-02 23:41:31 +00:00
Jenkins
0c996c0c61 Merge "Allow bulk-edit of topics" 2015-07-02 23:40:33 +00:00
James Polley
31af7ed182 Show all held changes in held-changes view
I commented on a review while offline yesterday. When I came online,
someone had provided a -2. Being a more-negative comment than mine, this
held my change, and added a warning in the top-right to tell me I had a
held change.

However, I couldn't *see* the held change in held-changes view, because
it only shows me open changes - and this particular change was abandoned
after the -2.

This change makes held-changes view show all held changes,not just open
held changes.

An alternative here might be to not warn the user about held changes if
they have been abandoned; but that could be confusing if my comment had
been "I think this shouldn't be abandoned because"....

Change-Id: I5165f50af30b51ae29f2639dd5fd4185b02aa1fa
2015-07-02 12:08:43 +10:00
James E. Blair
574c9b36f5 Add missing get_repo calls
Some places where we call getRepo were missed in the recent move
to gitrepo.get_repo.  Correct those and also remove excess module
qualifications.

Change-Id: I55103b71e7fe35e282d69c3c95c61cbad95ef729
2015-06-30 09:56:40 -07:00
Sirushti Murugesan
a7f2b02c11 Specify color for unstable test job
Change-Id: Ifb9757c2e7f8244a9ec37680cc7d9fb458a169f0
2015-06-30 13:41:05 +05:30
Jenkins
4d395320ff Merge "Removes the need to pass around the app object" 2015-06-29 18:56:29 +00:00
Jenkins
877119d32f Merge "Refactor: move getRepo out of the App object" 2015-06-29 18:56:23 +00:00
Jenkins
29ef33bc3a Merge "Mention the bug tracker in the README file" 2015-06-29 18:55:29 +00:00
James E. Blair
caeab5acc8 Allow bulk-edit of topics
Change-Id: I51bcb487c3d44548cfefbbcea6cb294b648a0570
2015-06-12 17:21:05 -07:00
James E. Blair
b8ed113284 Ignore EPERM when pruning refs
Apparently OSX returns this when trying to remove a directory.

Change-Id: Ib824650ffc3d3945cec8020ccc5337cbe274471b
2015-06-10 16:22:15 -07:00
David Stanek
5ecfdd506d Removes the need to pass around the app object
The Database and SearchParser classes didn't really need the app object.
They just needed to use some of its properties. Instead those properties
are just being passed in.

Change-Id: Iabdd0072a8f74e6b9346fe03c15cfa00810e1c4a
2015-06-09 23:50:50 -04:00
David Stanek
0b16cbb8c4 Refactor: move getRepo out of the App object
The getRepo method really doesn't have much to do with the application
object. Since it's really a utiltiy method for dealing with git repos
I've moved it to gertty.gitrepo.

Change-Id: Ic3349430c456ee184bbf57b6e5b7de4f940b4cc1
2015-06-09 23:50:43 -04:00
Sean M. Collins
66dac94a11 Mention the bug tracker in the README file
Change-Id: I363874d29fadc1119665540efb77d837226125c9
2015-06-08 15:16:12 -04:00
James E. Blair
844ea40f8e Fix crash on displaying renamed file
A logic error in the method to pretty-print file renames could cause
a crash.  Ensure that we don't overrun the length of either the
old or new path when comparing.

Change-Id: I7f1006ec6cbdb723e77cb62b64414a960af04113
2015-06-05 14:55:59 -07:00
James E. Blair
1226ef8d57 Fix waiting for tasks
The change to avoid duplicate tasks in a queue had an error where
it would cause all tasks to be immediately marked as completed.
This caused the synchronous task waits on actions such as immediate
sync of a single change to return early, before actual completion.

This may have caused other errors as well.

Change-Id: Ie000a1242db17b1bed8c2eac919e242225f5bba6
2015-06-04 09:20:40 -07:00
James E. Blair
46155d86a3 Update PBR requirement to >=0.11
0.11 has a fix for an alembic migration problem that has plagued
Gertty early adopters.  1.0 is out as well and will work, so it
is safe to set the semver cap at 2.0.

Change-Id: I5426fabcfa79e32a9bc1c2c91f10d4f20ff7b913
2015-05-27 09:12:48 -07:00
Jenkins
b639c5168e Merge "Explain how to install on Arch Linux" 2015-05-27 16:01:53 +00:00
Jenkins
46caf0a1c7 Merge "Make ButtonDialog scrollable" 2015-05-27 16:01:42 +00:00
Jenkins
d5b37413c3 Merge "Be more verbose on non-tagged versions" 2015-05-27 16:01:34 +00:00
James E. Blair
50aa0f9558 Advance cursor on change list toggle
When toggling any flag on a row in the change list, advance the
cursor to the next row.

Change-Id: I0d140748a1bccf97d3c3b9b132d76947caa6f820
2015-05-27 08:53:28 -07:00
James E. Blair
9cdfa07f91 Allow reviewing one change in change list
Reviewing multiple changes is accomplished by setting the process
mark; also allow reviewing a single change from the change list
if the process mark is not set.

Change-Id: Id615ab084d576307fd2b13d31a20842763c9aca7
2015-05-27 08:53:28 -07:00
James E. Blair
2b302321ba Fix updating flags on threaded changes
If a flag (hold, mark, starred) was changed, the row would lose
the threading indication.  Correct this.

Change-Id: I91aa6c2df4164c8e539e8bd1cf5bd703ddd5e58b
2015-05-27 08:53:28 -07:00
James E. Blair
94bfcd13f4 Add ability to review multiple changes at once
Add a process mark to the change list so that multiple changes may
be selected at once for further operations.  Allow multiple changes
to be reviwed at once by selecting them with the process mark and
then pressing the usual review command key.  The categories are
simply taken from the first change in the list for simplicity.
This should be fine most of the time, but if the changes have
different categories available to them, or the user has different
access levels, this may not behave as intended.

Change-Id: I04a790d91b27b270cf1269c7bcb39c12d857ab32
2015-05-27 08:53:22 -07:00