summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-11-05Don't depend on simplejson on Python 2.6 eggs.Christian Hammond
We were requiring the simplejson dependency on Python 2.6, despite the fact that Python 2.6 includes json built-in. We no longer depend on simplejson on this version. Fixes bug #1383
2009-11-04Properly represent binary files in patches when using git-svn.Christian Hammond
When adding/changing binary files against a git-svn repository, the binary files would be filtered out of the diff. We now represent binary files properly by faking the information in a diff. Patch by Anthony Cruz. Reviewed at http://reviews.reviewboard.org/r/1194/
2009-11-03Fix post-review error reporting when using --diff-only.Christian Hammond
Running post-review --diff-only may throw exceptions when encountering errors, instead of gracefully handlin them. A simple case of this is to run with --diff-only without having a post-review login cookie, and instead of a login prompt, post-review will crash with a KeyError. This change fixes this reporting by not special-casing the --diff-only parameter in the error reporting. We were only handling errors if that option was not set. Patch by Eric Huss. Reviewed at http://reviews.reviewboard.org/r/1185/
2009-11-03Improve git parent branch detection in post-review.Christian Hammond
This adds improved logic for determining the parent branch used when generating a diff. It will attempt to detect the merge base of the current head, falling back to defaults if necessary. A tracking branch can be manually specified too. The new code attempts the following: 1) Tries to detect the tracking branch for the current HEAD, if possible. 2) If a tracking branch doesn't exist, or is not remote, it will fall back on 'origin/master'. 3) If the --tracking-branch parameter is specified, this branch will be used instead of 'origin/master'. It also provides unit tests for post-review. Right now, these test only GitClient (in pure Git mode), but new tests can be added down the line for the rest of post-review. Patch by Dan Savilonis Reviewed at http://reviews.reviewboard.org/r/1144/
2009-10-16Update the Review Board server domain name.Christian Hammond
2009-10-13Update all URLs to point to the new site.Christian Hammond
2009-10-10Show syntax errors in .reviewboardrc files.Christian Hammond
If a .reviewboardrc file had a syntax error, we would silently ignore it, which made it hard to debug problems. We now fail on syntax errors and list the error information, including the filename, line number and offset on the line. Patch by Eric Huss
2009-10-10Re-introduce a fix for binary files and versioning for Perforce.Christian Hammond
The fix for bug #585 broke the binary file support. This change brings it back. This also fixes the Perforce server versioning check. Patch by Eric Huss Reviewed at http://reviews.review-board.org/r/1154/
2009-10-05Don't produce broken diff files with files that don't end in a newline.David Trowbridge
Some people have source files that don't end in a newline. In this case, it's possible for us to create a diff file where the end of one file is joined on the same line as the header for the next file. This change adds an extra check to _do_diff to make sure that we don't make broken diffs when people have broken files. Fixes bug 1340.
2009-09-27Support creating diffs with multiple files when using --revision-rangeDavid Trowbridge
When creating an SVN diff for a remote repository using --revision-range and passing in specific filenames, post-review would only get the first file as the diff. This is because it was using the arg as the base path. This change makes it treat the arg as a file list if it's more than one item long. Fixes bug 1162
2009-09-24Support "revision-range" option with gitDavid Trowbridge
Patch from Flavio Castelli. With this patch post-review will support the revision-range option following the syntax explained at http://www.review-board.org/docs/manual/dev/users/tools/post-review/#posting-committed-code Testing done: I have tested this new feature locally and it works fine. I have successfully tested the following commands: post-review --revision-range=rev1:rev2 --guess-summary --guess-description post-review --revision-range=rev1:rev2 --guess-description post-review --revision-range=rev1:rev2 post-review --revision-range=rev --guess-summary --guess-description post-review --revision-range=rev Reviewed at http://reviews.review-board.org/r/1049/
2009-09-22Don't unconditionally publish the draft when setting a field.Christian Hammond
When setting a field (such as target reviewers) from post-review, we were saving the draft, always. This is bad enough, but we were doing this before even updating the diff. This would result is a published draft and an extra change description entry. We no longer save the draft, unless the user uses --publish. Fixes bug #811
2009-09-21Fix the path to the user's appdata directory on Win Vista+.Christian Hammond
We were hard-coding the path to the user's Application Data directory, which changed in Windows Vista. We now use the APPDATA environment variable, which is guaranteed to point to the correct directory. Fixes bug #1279
2009-09-21Support older p4d, pending changelists.David Trowbridge
Patch from Matthew Woehlke. This fixes post-review to work on older p4d (which I am stuck with at $DAYJOB); without this change post-review can only be used on submitted changelists. This also adds support for the default changelist (for all p4/p4d versions). Reviewed at http://reviews.review-board.org/r/1031/ and http://reviews.review-board.org/r/804/ Fixes bug 1020.
2009-09-21Bump to RBTools v0.2 beta 3 dev.Christian Hammond
2009-09-21Release RBTools v0.2 beta 2.release-0.2beta2Christian Hammond
2009-09-21Added release notes for RBTools v0.2 beta 2.Christian Hammond
2009-09-10Add Repository UUID support to git-svn.Christian Hammond
This change introduces Repository UUID support to git-svn, allowing Review Board to match repositories by UUID instead of comparing the repository name directly. Patch by Matthew Woehlke. Reviewed at http://reviews.review-board.org/r/1030/
2009-08-25Add a .reviewboardrc for RBTools.Christian Hammond
2009-08-25Fix an issue in GitClient where local repository configuration is ignored.Christian Hammond
2009-08-22Patch by Dana Lacoste to fix a bug with post-review on Windows where wechipx86
improperly check for the os.uname function. Fixes bug #1280.
2009-08-22Add raw file URL support to the Repository admin page and Git.chipx86
This introduces a new column, raw_file_url, to Repository, and shows it in the admin UI for SCMTools that support it. This URL provides a way for certain SCMTools (right now, Git only) to access files over HTTP, instead of checking the file out through the SCM or accessing it locally (in the case of Git). The raw file URL acts as a URL with fields to be substituted. If <revision> exists in the URL, it will be replaced with the revision of the file. If <filename> exists, it will be replaced with the filename. This also adds a GitHub hosting service and bug tracker to the Repository admin. Using this, it's trivial to add any GitHub project without knowing the raw file URL mask. Reviewed at http://reviews.review-board.org/r/977/
2009-07-27A variety of hgsubversion improvementstrowbrds
Corrected hgsubversion support for more recent versions of hgsubversion and add support for parent branch, guess summary, and guess description. Patch from Augie Fackler. Testing done: Been using it for over a week, haven't seen any major issues. Reviewed at http://reviews.review-board.org/r/842/
2009-07-26Perforce binary file diff corruption fix.trowbrds
When a binary file differed, post-review would miss printing a newline after "Binary Files differ", making the diff invalid for the subsequent file. This would cause that file's diff to be lost silently when parsed by reviewboard on the server side. Patch from Chris Trimble. Reviewed at http://reviews.review-board.org/r/915/
2009-07-26Check for "SunOS" in post-review and use gdiff instead of difftrowbrds
Solaris has BSD "diff" and GNU "gdiff". Since we use things which are only present in the GNU userland, we should account for that. This change checks for SunOS in the output of os.uname and uses gdiff if necessary.
2009-07-18Patch by Chris Clark to define a SCMCLIENTS list containing all knownchipx86
SCMClients, which makes it easier to update and maintain. Reviewed at http://reviews.review-board.org/r/882/
2009-07-18Install post-review as a Python module, with a generated post-review (orchipx86
post-review.exe) wrapping it. The official way to install post-review now is by installing RBTools. Reviewed at http://reviews.review-board.org/r/916/
2009-06-12Use 'json' module if it's available.chipx86
simplejson is now part of the Python standard library, but it's named 'json'. This change alters post-review to use it if it's available, which reduces the amount of stuff people have to install (if they have Python 2.6+) Committing on behalf of David. Reviewed http://reviews.review-board.org/r/887/
2009-06-10Fix a missing space when building a revision string for ClearCase.chipx86
2009-06-02Reintroduce forcing removal of the cookie when cookie-based validation fails ↵chipx86
the first time. This was broken in r1986.
2009-06-02Mark a file as read/write instead of write-only in PerforceClient._write_file.chipx86
Fixes bug #1143.
2009-05-28Patch by Steven Russell to fix working with Perforce file paths containingchipx86
spaces. Fixes bug #840. Reviewed at http://reviews.review-board.org/r/815/
2009-05-28Patch by Raghu Kaippully to normalize files from Perforce with \r\r\nchipx86
newlines, translating them to \r\n. This can happen in some Perforce setups when dealing with a file checked out from one platform and modified on another, for example. Fixes bug #1071. Reviewed at http://reviews.review-board.org/r/826/
2009-05-28Add Chris Clark to the authors list.chipx86
2009-05-28Patch by Chris Clark to set a max number of login retries, so as tochipx86
prevent entering an infinite loop. This can happen when the cookie is assumed to be valid but doesn't work properly on the server. While this won't fix logins in that situation, it will prevent the infinite loop followed by a "maximum recursion deptch" error. Reviewed at http://reviews.review-board.org/r/879/
2009-05-19Check for "hg: unknown command" as well as "abort:" when checking ifchipx86
"hg svn" works. Otherwise it assumes the repository is hg-svn.
2009-05-19Fix the ClearCaseClient to not break post-review if cleartool isn't ↵chipx86
installed. We now properly do a check_install on "clearcase help".
2009-04-23Patch by Jeremy Bettis to properly join a SVN repository base path and a ↵chipx86
file path using a "/" instead of "\" on Windows. This fixes bug #939.
2009-04-14Patch by Eric Huss to support posting paths of files to Review Boardchipx86
when using Perforce. This method doesn't take a change number, but rather a set of files and optional revisions. His documentation states: "We have some use cases where it would be nice to review entire files post-commit in reviewboard. Some examples: - Our documentation needs to be checked in before it is reviewed. If multiple people are working on it, or if it is created as a series of multiple checkins, reviewing specific change numbers is difficult. With this, we can do "post-review //docs/main/some/project/...". - If you work on a side branch for a while, possibly with multiple checkins or with multiple people, reviewing the changes on the side branch before integration to the main branch can be tricky. With this, you can now do "post-review //path/to/my/branch/...@100,@120" where "100" would be the initial revision that created the branch and "120" is the last revision on that branch. This allows you to easily review all changes on a branch in one review request. - If you want to review an old, existing file that has had little or no reviews, you can now do this with "post-review //path/to/some/file" to review the whole thing. The specific path types supported are: post-review //path/to/file # Upload file as a "new" file. post-review //path/to/dir/... # Upload all files as "new" files. post-review //path/to/file[@#]rev # Upload file from that rev as a "new" file. # (Not a very useful scenario, but it works.) post-review //path/to/file[@#]rev,[@#]rev # Upload a diff between revs. post-review //path/to/dir/...[@#]rev,[@#]rev # Upload a diff of all files between revs in that directory. You can specify multiple paths on the command line. I didn't use the range revision option because the Perforce path syntax is a little more flexible, especially if you post multiple paths. Reviewed at http://reviews.review-board.org/r/753/
2009-04-14Patch by Eric Huss to fix an infinite recursion problem when usingchipx86
post-review with invalid cookies. Fixes bug #808. Reviewed at http://reviews.review-board.org/r/813/
2009-03-29Bump the version to 0.2beta2.dev.chipx86
2009-03-29Release rbtools 0.2 beta 1.chipx86
2009-03-29Get the absolute path of the git directory before getting the parentchipx86
directory. Fixes bug #996.
2009-03-27This isn't a release, so don't mark it as such.chipx86
2009-03-27Patch by Raghu Kaippully to fix changesets with binary files in Perforce ↵chipx86
when using post-review. Reviewed at http://reviews.review-board.org/r/787/ Fixes bug #585
2009-03-27Move post-review into a new top-level "rbtools" packagechipx86
Since the dawn of time, post-review has lived in the Review Board tree, despite being a client script and not necessarily being needed on the server. This moves post-review into a new rbtools package, which users will be able to easy_install (easy_install -U RBTools). The simplejson dependency will be fetched, and users won't have to go hunting in SVN for a script. Over time, I'd like to add new scripts into here (such as one to apply a diff from a review request), and further down the road I'd like to create an "rbapi" (or something) package that contains a Python API for talking to a Review Board server, which rbtools (and post-review) will then use. For now, the goal is to just get post-review moved over. Reviewed at http://reviews.review-board.org/r/788/