/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: John Arbash Meinel
  • Date: 2006-10-11 22:43:03 UTC
  • mto: This revision was merged to the branch mainline in revision 2126.
  • Revision ID: john@arbash-meinel.com-20061011224303-917597a4ade5429c
code and doc cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
474
474
          value can be 'yesterday', 'today', 'tomorrow' or a YYYY-MM-DD string.
475
475
          matches the first entry after a given date (either at midnight or
476
476
          at a specified time).
477
 
 
478
 
          XXX: This doesn't actually work
479
 
          So the proper way of saying 'give me all entries for today' is:
480
 
              -r date:yesterday..date:today
481
477
        """
 
478
        #  XXX: This doesn't actually work
 
479
        #  So the proper way of saying 'give me all entries for today' is:
 
480
        #      -r date:yesterday..date:today
482
481
        today = datetime.datetime.fromordinal(datetime.date.today().toordinal())
483
482
        if self.spec.lower() == 'yesterday':
484
483
            dt = today - datetime.timedelta(days=1)