Closed Bug 598556 Opened 15 years ago Closed 15 years ago

Ability to filter the pushlog by rev id

Categories

(Tree Management Graveyard :: TBPL, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mounir, Assigned: mounir)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch v1 (obsolete) — Splinter Review
It would be nice to be able to filter the pushlog to show only a push containing a specific revision. The attached patch let the user specify "rev=" in the URL to filter the pushlog to a specific revision.
Attachment #477404 - Flags: review?(arpad.borsos)
Comment on attachment 477404 [details] [diff] [review] Patch v1 >+++ b/js/PushlogJSONParser.js >+ // Look at the 12 first nodes characters when filtering by revision. >+ if (rev && patch.node.substring(0, 12) == rev) { >+ revFound = true; >+ }> patches.unshift({rev: patch.node.substr(0,12), author: author, > desc: Controller.stripTags(patch.desc), tags: tags}); Just for consistency, we should use the same function in both places (substr vs substring, I don’t care which one). You can also make it a var in the function so we avoid that redundancy alltogether.
Attachment #477404 - Flags: review?(arpad.borsos) → review-
Attached patch Patch v1.1Splinter Review
Attachment #477404 - Attachment is obsolete: true
Attachment #477422 - Flags: review?(arpad.borsos)
Attachment #477422 - Flags: review?(arpad.borsos) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Deployed. Thanks Mounir!
Blocks: 576544
This doesn't actually seem to work -- e.g. http://tests.themasta.com/tinderboxpushlog/?tree=MozillaTry&rev=15e65c1f91da doesn't show any results, even though the push certainly happened.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
This has been broken by another commit and should be fixed by this one according to Arpad: http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/rev/58f485db128d
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
(In reply to comment #6) > This doesn't actually seem to work -- e.g. > > http://tests.themasta.com/tinderboxpushlog/?tree=MozillaTry&rev=15e65c1f91da > doesn't show any results, even though the push certainly happened. It only shows the push if it's in the time range that would be displayed without the rev argument. Automatically going back into time isn't implemented yet.
Product: Webtools → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: