Closed Bug 1574977 Opened 2 years ago Closed 2 years ago

Revive `mach pastebin` for use with the new paste tool

Categories

(Firefox Build System :: General, task)

task
Not set
normal

Tracking

(firefox70 fixed)

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: sheehan, Assigned: sheehan)

References

Details

Attachments

(1 file)

In bug 1480362 we killed mach pastebin, since the service it pasted to was being decommissioned. Now that paste.mozilla.org is around, we should bring it back.

I've got a patch to do this, but I found a bug with the API endpoint for the new service.

Depends on: 1574978

This commit re-implements mach pastebin for use with the new Mozilla
pastebin tool (paste.mozilla.org). As with the old implementation, the
tool supports passing a file for upload as well as reading content to
paste from stdin.

dpaste (the software that runs paste.mo) is supposed to support
sniffing the correct syntax highlighter from the given filename, but
this feature does not seem to work (both on paste.mo nor dpaste.de).
Instead we have a mapping of known filename extensions to known available
highlighters on paste.mo. mach paste will attempt to guess a
highlighter from the file extension or the basename of the file if none
is available.

Pushed by cosheehan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2120cea83d4c
restore `mach pastebin` and port to new service r=nalexander
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.