diff --git a/contrib/tools/svn-hook-postcommit-review b/contrib/tools/svn-hook-postcommit-review
--- a/contrib/tools/svn-hook-postcommit-review
+++ b/contrib/tools/svn-hook-postcommit-review
@@ -212,15 +212,21 @@ def main():
     description     = "--description=(In [%s]) %s" % (rev, log)
     submitas        = '--submit-as=' + author
     revision        = '--revision-range=%s:%s' % (prevrev, rev)
+    http_username	= '--http-username=%s' % USERNAME
+    http_password	= '--http-password=%s' % PASSWORD
 
     # common arguments
     args = [repository_url, username, password, publish,
-            submitas, revision, base_path, reviewid]
+            submitas, revision, base_path, reviewid,
+            http_username, http_password]
 
     # if not updating an existing review, add extra arguments
     if len(reviewid) == 0:
         args += [summary, description, bugs]
 
+    # Filter out blank arguments.
+    args = [elem for elem in args if len(elem) > 1]
+
     if DEBUG:
         args += ['-d', '--output-diff']
         print [os.path.join(POSTREVIEW_PATH, 'post-review')] + args
