Skip to content

Updating pdf.js on Mozilla Central

brendandahl edited this page Aug 17, 2012 · 2 revisions

Initial Setup (hopefully one time)

[ui]
username = YOUR NAME <YOUR_HANDLE@mozilla.com>

[defaults]
qnew = -Ue

[extensions]
hgext.mq =

[diff]
git = 1
showfunc = 1
unified = 8

[paths]
try = ssh://hg.mozilla.org/try
  • Edit ~.ssh/config
Host hg.mozilla.org
        User YOUR_HANDLE@mozilla.com
        IdentityFile ~/.ssh/id_rsa.pub

Updating Steps

  • make sure all patches are popped off your queue
hg qpop -a
  • update moz central
hg pull -u
  • update pdf.js and build extension
node make extension
  • Open new bugzilla bug

    • Copy release notes there
    • Set depends bug ????
  • Create Patch (replace bug number)

hg qnew bug-743264-fix -m "Bug 743264 - Update pdf.js to Version 0.2.537."
  • Update Files
copy updated files into mozilla-central/browser/app/profile/extensions/uriloader\@pdf.js
hg qrefresh
  • Add Try Stuff
hg qnew try --message "try: -b do -p macosx,macosx64,win32,linux,linux32 -u all -t none"
  • Double Check What Your Sending
hg outgoing
  • Push to Try Server
hg push -f try
hg qpop
  • Generate Patch (after successful try run, replace bug number)
hg export qtip > ~/projects/mine/pdf.js/patches~/bug-743264-fix.patch