tests/test-parse-date.t
changeset 38080 0a10f142299d
parent 36234 48783333f45c
child 45895 fc4fb2f17dd4
equal deleted inserted replaced
38079:ce307af030a2 38080:0a10f142299d
   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