Show More
@@ -1346,10 +1346,10 b' Age filter:' | |||||
1346 |
|
1346 | |||
1347 | $ hg log --template '{date|age}\n' > /dev/null || exit 1 |
|
1347 | $ hg log --template '{date|age}\n' > /dev/null || exit 1 | |
1348 |
|
1348 | |||
1349 | >>> from datetime import datetime |
|
1349 | >>> from datetime import datetime, timedelta | |
1350 | >>> fp = open('a', 'w') |
|
1350 | >>> fp = open('a', 'w') | |
1351 | >>> n = datetime.now() |
|
1351 | >>> n = datetime.now() + timedelta(366 * 7) | |
1352 |
>>> fp.write('%d-%d-%d 00:00' % ( |
|
1352 | >>> fp.write('%d-%d-%d 00:00' % (n.year, n.month, n.day)) | |
1353 | >>> fp.close() |
|
1353 | >>> fp.close() | |
1354 | $ hg add a |
|
1354 | $ hg add a | |
1355 | $ hg commit -m future -d "`cat a`" |
|
1355 | $ hg commit -m future -d "`cat a`" |
General Comments 0
You need to be logged in to leave comments.
Login now