arandomurl.com

One of the goals of this site is to be an open journal. Quite how this is going to be useful to the wider internet I haven't yet figured out however for me it means I get to post those annoying little workflows that I do irregularly enough to forget between forgetting every time.

Today was the first time in months I had to commit a patch to Gecko. Gecko uses mercurial and since it took me months to figure out git which I use daily I dont really have a hope of ever knowing mercurial. I am just hoping to post enough snippets that I don't need to remove and do a full clone of the 2.9GB repo every time I have a patch (seriously I used to do this).

So for next time:

  1. Push a patch to try server

    $ hg pull -u 
    $ hg qimport -P ~/src/Patches/900638.patch
    $ hg qref --message "try: -b o -p all -u all -t none"
    $ hg push ssh://dharvey%40mozilla.com@hg.mozilla.org/try/
  2. Push a patch to inbound

    $ hg pull -u 
    $ hg qimport -P ~/src/Patches/900638.patch
    $ hg qfinish -a
    $ hg push ssh://dharvey%40mozilla.com@hg.mozilla.org/integration/b2g-inbound
  3. To tell a repo to forget about local patches

    $ hg strip 'roots(outgoing())' && rm -rf .hg/patches

Also I am now overdue 5 weeks on a PouchDB release ... maybe tomorrow.

After several failed attempts at blogging, say hello to arandomurl.com. This will be both a blog, a journal and an experiment in building a non SPA website that works well offline.

Only the basic functionality has been built and this will be a long time WIP but I will be documenting the tools and thought processes while building this as well as the various other projects I am working on.

See you soon.