Mercurial > hg > config
comparison .bashrc @ 110:bf567a0e8fef
add a hg-qcommit that does the right thing
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Tue, 30 Nov 2010 15:49:33 -0800 |
| parents | e841c419199e |
| children | 2db73718f645 |
comparison
equal
deleted
inserted
replaced
| 109:e83b7dd50461 | 110:bf567a0e8fef |
|---|---|
| 273 hg pull | 273 hg pull |
| 274 hg update | 274 hg update |
| 275 cd - | 275 cd - |
| 276 fi | 276 fi |
| 277 done | 277 done |
| 278 } | |
| 279 | |
| 280 hg-qcommit() { | |
| 281 message=$1 | |
| 282 hg qrefresh | |
| 283 if [ -z "${message}" ] | |
| 284 then | |
| 285 hg qcommit | |
| 286 else | |
| 287 hg qcommit -m "${message}" | |
| 288 fi | |
| 289 hgroot=$(hg root) | |
| 290 patches=${hgroot}/.hg/patches/ | |
| 291 if [ -e ${patches}.hg ] | |
| 292 then | |
| 293 cd ${patches} | |
| 294 hg push | |
| 295 fi | |
| 278 } | 296 } |
| 279 | 297 |
| 280 blog-file() { | 298 blog-file() { |
| 281 | 299 |
| 282 echo "$HOME/web/blog/k0s/entries/public/$1" | 300 echo "$HOME/web/blog/k0s/entries/public/$1" |
