Mercurial > hg > config
changeset 568:bb6e21338c5c
hgrc notes
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 12 Jan 2014 21:48:06 -0800 |
parents | 67e5137b1476 |
children | 38fc390b4e5d |
files | .hgrc python/hgrc.py |
diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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