equal
deleted
inserted
replaced
241 $ echo "hello" >> a |
241 $ echo "hello" >> a |
242 >>> import datetime |
242 >>> import datetime |
243 >>> today = datetime.date.today().strftime("%b %d") |
243 >>> today = datetime.date.today().strftime("%b %d") |
244 >>> yesterday = (datetime.date.today() - datetime.timedelta(days=1)).strftime("%b %d") |
244 >>> yesterday = (datetime.date.today() - datetime.timedelta(days=1)).strftime("%b %d") |
245 >>> dates = open('dates', 'w') |
245 >>> dates = open('dates', 'w') |
246 >>> dates.write(today + '\n') |
246 >>> dates.write(today + '\n') and None |
247 >>> dates.write(yesterday + '\n') |
247 >>> dates.write(yesterday + '\n') and None |
248 >>> dates.close() |
248 >>> dates.close() |
249 $ hg ci -d "`sed -n '1p' dates`" -m "today is a good day to code" |
249 $ hg ci -d "`sed -n '1p' dates`" -m "today is a good day to code" |
250 $ hg log -d today --template '{desc}\n' |
250 $ hg log -d today --template '{desc}\n' |
251 today is a good day to code |
251 today is a good day to code |
252 $ echo "goodbye" >> a |
252 $ echo "goodbye" >> a |