Require Djblets 0.6.21.
Fix the order of displayed comments on a review.

Diff comments and replies were displayed in insert order rather than
timestamp order. This made things very confusing when comments were
created in orders other than top-down, or when replies were published in
orders other than the order created.

This was due to the ordering for diff comments not including the
timestamp, and instead taking into account only the filediffs and line
numbers. The timestamp is now factored in.

Fixes bug #2684
Properly handle draft and inactive screenshots/file attachments.

The recent optimizations caused a regression for screenshots and file
attachments where any draft entries wouldn't be shown for the user after
uploading until the review request was published. This was due to
querying the review request and not the draft for these.

There was also a performance issue where inactive screenshots/file
attachments weren't being cached, causing a lookup per comment
referencing an inactive one. Now we cache these, but only when we
encounter a case where we need them.

Unit tests were added to cover these cases.

Fixes bug #2685
Optimize the screenshot, file attachment, and no-repository code paths.

The screenshot page was quite slow still, as it didn't take advantage of
the new caching abilities in the models. We now have the query count
down pretty extensively.

File attachments on the review request page were pretty costly too, due
to a special template tag we have that serializes all the file attachment
comments. The problem there was that we weren't accessing the right
caches. Primarily, they were accessing comments directly. FileAttachment
and Screenshot both have get_comments() functions that both return from
the cache and sets it, which solves this.

Review requests without repositories were still trying to compute diffs,
which was a waste of effort. This happened on the review request page,
screenshot page, and on the Last Updated check. Now we skip these if
there are no repositories. This skipping is done in a new convenience
method, ReviewRequest.get_diffsets.
Require Django 1.3.2.

The Django project released 1.3.2 to fix some security vulnerabilities.
We now depend on this release for 1.6.10.
Release Review Board 1.6.11.
Merge branch 'release-1.6.x'
Improve the issue summary table.

This improves the summary table in the following ways:

* Clicking the issue ID or name jumps straight to the issue in question.
* Added a filter to sort by reviewers.
* Added a message when there are no results given the current filters.
* Improved the style of the "Back to summary table" button. It now has
  an icon and just says "Issues".
* If the review box is collapsed when jumping to it, it will uncollapse.

Reviewed at http://reviews.reviewboard.org/r/3167/
Show uploaded file caption changes in changedesc boxes.

If the user modified the caption of an uploaded file, only the
submission description (if any) was displayed in the box corresponding
to the change description. This small change fixes it.

Reviewed at http://reviews.reviewboard.org/r/3248/
Make the draft banner accessible to the upload dialogs.

The draft banner wasn't visible outside of reviews.js. The upload
dialogs needed access to it, though.

Now RB.draftBanner can be used to access the draft banner.

Reviewed at http://reviews.reviewboard.org/r/3182/
Update unit tests from the 1.6.x merge to pass on master.

The unit tests added in 1.6.x since the last merge were specific to the
1.6.x branch. They referenced old-style media and weren't updated for
some changes made to the review detail page. This makes all tests pass.
Use the new location for humanize_list.

This updates calls to humanize_list to use the new location. This is
particularly important for the scmtools code path, so that rbssh doesn't
end up importing a module requiring a Django settings environment.
Merge branch 'release-1.6.x'
Don't bundle static/djblets in the egg.

This can exist in development setups, but we don't want it appearing in
the egg file.
Change the Djblets requirements to handle nightly builds.

The requirement of 0.6.23.dev wasn't good enough to handle nightlies.
Now we require anything newer than 0.6.22 and less than 0.7alpha0.dev.
Fix issue summary tables not updating properly when modifying issues.

The code handling visibility for issues was referencing the 'status'
variable, which was undefined. It now references 'new_status' instead.

Reviewed at http://reviews.reviewboard.org/r/3256/
Fix review draft when screenshot comments are included

There was a JavaScript error that was caused by commenting on a
screenshot, due to a missing "issue opened" checkbox on the review page.
This introduces the checkbox.

Reviewed at http://reviews.reviewboard.org/r/3257/
Add a manual update check for static media configuration.

Review Board 1.7 requires new static media configuration in the web
server config files. As things currently stand, anyone who upgrades will
see their media broken.

Now, any new upgrades from a database prior to 1.7 final that hasn't had
this already resolved will cause a flag to be set in the database
indicating that static media needs to be fixed. rb-site will output
instructions, and the manual updates page will list instructions as
well. Both sets of instructions will say what to type to resolve this.

Resolving the manual update check is done by using the new resolve-check
management command.

This should ensure that all users who upgrade to any release post-1.6.x
will see instructions and have to act to make things work again.
Require Djblets 0.7.0.
Fix several pyflakes warnings and errors.

Most of theses are unused imports, but there are a few undefined symbols
that would be hit in error cases. These will be needed for the next
release.