Closed Bug 1091318 Opened 12 years ago Closed 12 years ago

"Pull down this review" message should reference full repository URL

Categories

(MozReview Graveyard :: General, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gps, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

The Bugzilla comment to "pull down this review" says to `hg pull reviews`. This relies on the user having the "reviews" path configured, which may not always hold. Specifying the full repository URL is guaranteed to work.
Attached file MozReview Request: bz://1091318/gps (obsolete) —
Attachment #8516265 - Flags: review?(smacleod)
/r/149 - reviewboard: print full repo URL when telling how to pull (bug 1091318) Pull down this commit: hg pull review -r e14cbb1ec859d4fb0cd01263428ca78e587d3df9
https://reviewboard.mozilla.org/r/149/#review135 ::: pylib/reviewboardmods/reviewboardmods/pushhooks.py (Diff revision 1) > + 'hg pull -r %s %s' % (commits['individual'][-1]['id'], repo_url), Why the choice to move the url to the end of the command? I kind of like it before the -r, but I don't care too much. ::: pylib/reviewboardmods/reviewboardmods/pushhooks.py (Diff revision 1) > + repo = api_root.get_repository(repository_id=repoid) > + repo_url = repo.path This breaks the fact that Review Board could be pointed at the main hg repo, not the review repo. It's not a huge issue for us to do this (Our production instance points at the review repo anyways), but it's a decision we're making and should be aware of. There are ways we could track the review repos url, but still have Review Board use the mainline for fetching file contents (store the review repo path in mirror_path or something). Not blocking the patch based on this, just wanted to make sure you're aware (feel free to drop this issue).
Attachment #8516265 - Flags: review?(smacleod) → review+
https://reviewboard.mozilla.org/r/147/#review139 Ship-It! (After addressing my previous review comment)
https://reviewboard.mozilla.org/r/149/#review249 > Why the choice to move the url to the end of the command? I kind of like it before the -r, but I don't care too much. Generally speaking, positional arguments belong *after* named arguments. That's commonly how command line parsers work. I think Python and Mercurial's behavior of accepting positional arguments before named arguments is still uncommon. Personally, I like this attribute. But I think we should print convention. > This breaks the fact that Review Board could be pointed at the main hg repo, not the review repo. It's not a huge issue for us to do this (Our production instance points at the review repo anyways), but it's a decision we're making and should be aware of. > > There are ways we could track the review repos url, but still have Review Board use the mainline for fetching file contents (store the review repo path in mirror_path or something). > > Not blocking the patch based on this, just wanted to make sure you're aware (feel free to drop this issue). I'll add an inline comment before landing.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Attachment #8516265 - Attachment is obsolete: true
Attachment #8618503 - Flags: review+
Product: Developer Services → MozReview
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: