Thursday, November 05, 2009

Publish javadoc to Google Code via Mercurial

I like Google code more and more the more I use it ... more. Why don't I have a vocabulary ? Anyway, I also like Mercurial, so combine Mercurial with Google Code and you have chocolate with peanut butter.

Here's how I managed to post javadoc to http://code.google.com/p/littleware/.

  • Clone the wiki mercurial repo:
        $ hg clone  https://wiki.littleware.googlecode.com/hg littleWiki
        
  • Copy your javadoc into littleWiki, and add it to the repo
        $ hg add -I 'glob:javadoc/**' 
        $ hg commit
        
  • Push the patch back up to google code
              hg push https://username:hg-password@wiki.littleware.googlecode.com/hg
                

BTW - I just tracked down how to tell blogger not to insert <br /> tags all over my post (http://www.google.com/support/forum/p/blogger/thread?tid=2dae985eba6f8c04&hl=en) in the HTML editor. What a stupid default!

No comments: