Commits

fh103424  committed 2721ee3

Fix for illegal HTTP request with THG and some command-line cases

  • Participants
  • Parent commits 7bdafe4

Comments (0)

Files changed (1)

File mercurial_reviewboard/reviewboard.py

             delta = datetime.timedelta(days=7)
             today = datetime.datetime.today()
             sevenDaysAgo = today - delta
-            rsp = self._api_request('GET', '/api/review-requests/' +
-                                           '?from-user=%s' % usr +
+            rsp = self._api_request('GET', '/api/review-requests/?' +
+                                           urllib.quote('from-user=%s' % usr +
                                            '&status=pending' +
                                            '&max-results=50' +
-                                           '&last-updated-from=%s' % sevenDaysAgo)
+                                           '&last-updated-from=%s' % sevenDaysAgo))
             self._pending_user_requests = []
             for r in rsp['review_requests']:
                 self._pending_user_requests += [Request(r['id'], r['summary'].strip())]