# HG changeset patch # User Jeff Hammel # Date 1389592086 28800 # Node ID bb6e21338c5c705c7e59bbfd8c32dfaba6853a60 # Parent 67e5137b1476e4df25b998dbf80d3798d44de737 hgrc notes diff -r 67e5137b1476 -r bb6e21338c5c .hgrc --- a/.hgrc Mon Dec 30 23:05:30 2013 -0800 +++ b/.hgrc Sun Jan 12 21:48:06 2014 -0800 @@ -32,9 +32,9 @@ [web] allow_archive = atom, rss, zip, bz2 -contact = jhammel at mozilla dot com +contact = k0scist @ gmail [alias] -blind-push = !($HG st -q | python -c "import sys, subprocess; print ' '.join([line[2:].rstrip() for line in sys.stdin.readlines() if len(line) > 2])" > blind_commit_message) && $HG commit -l blind_commit_message && $HG push && rm blind_commit_message +blind-push = !($HG st -q | python -c "import sys, subprocess; print 'STUB: %s' % '.join([line[2:].rstrip() for line in sys.stdin.readlines() if len(line) > 2])" > blind_commit_message) && $HG commit -l blind_commit_message && $HG push && rm blind_commit_message reset = !$HG revert --no-backup --all && $HG purge sync = !$HG pull && $HG push \ No newline at end of file diff -r 67e5137b1476 -r bb6e21338c5c python/hgrc.py --- a/python/hgrc.py Mon Dec 30 23:05:30 2013 -0800 +++ b/python/hgrc.py Sun Jan 12 21:48:06 2014 -0800 @@ -5,9 +5,16 @@ If no arguments specified, the repository given by `hg root` is used. -[WIP] If http(s):// arguments are given, create hgrc file from such a thing +If http(s):// arguments are given, create hgrc file from such a thing """ +## TODO: +# - functionality to populate [web]-> description in hgrc file from +# setup.py, e.g. +# http://stackoverflow.com/questions/1541778/mercurial-how-do-i-populate-repository-descriptions-for-hgwebdir-cgi +# Could also loop over a directory; e.g. +# `hgrc --setup-web . # loop over all .hg repos in this directory` + # imports import optparse import os