| ... | ... |
@@ -3,12 +3,16 @@ |
| 3 | 3 |
YEAR=`date +%Y` |
| 4 | 4 |
HGROOT=`hg root` |
| 5 | 5 |
|
| 6 | 6 |
function hg_year() {
|
| 7 | 7 |
if [ -n "$(hg st $1)" ]; then |
| 8 | 8 |
echo $YEAR |
| 9 |
else |
|
| 10 |
hg log -l 1 --template='{date|isodate}\n' $1 |
|
|
| 11 |
cut -d '-' -f 1 |
|
| 12 |
fi |
|
| 9 | 13 |
} |
| 10 | 14 |
|
| 11 | 15 |
# file enumaration modes |
| 12 | 16 |
|
| 13 | 17 |
function all_files() {
|
| 14 | 18 |
hg status -a -m -c | |
0 comments (0 inline)