diff --git a/Updating-pdf.js-on-Mozilla-Central.md b/Updating-pdf.js-on-Mozilla-Central.md index a9321ed..6164242 100644 --- a/Updating-pdf.js-on-Mozilla-Central.md +++ b/Updating-pdf.js-on-Mozilla-Central.md @@ -85,4 +85,27 @@ hg qpop + Generate Patch (after successful try run, replace bug number) ``` hg export qtip > ~/projects/mine/pdf.js/patches~/bug-743264-fix.patch +``` + +### If Uplift is Needed ++ Find what version of pdf.js is in the branch by looking at the pdf.js file and PDFJS.build variable e.g. PDFJS.build = 'f8e70dc'; + ++ Check out that version +``` +git checkout -b tt-aurora-fix +``` + ++ Cherry Pick the commit you need to uplift +``` +git cherry-pick +``` + ++ Build the patch +``` +BASELINE= node make mozcentralbaseline; node make mozcentraldiff +``` + ++ Apply that to the branch +``` +qimport -n cherry-pick /mozcentral.diff; qpush; ``` \ No newline at end of file