~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-07-18 20:24:56 UTC
  • mfrom: (1864.2.1 one-ms-timestamp)
  • Revision ID: pqm@pqm.ubuntu.com-20060718202456-fc3ad12fe5b7abd0
(jam) set timestamp resolution as 1ms

Show diffs side-by-side

added added

removed removed

Lines of Context:
2014
2014
            self._revprops.update(revprops)
2015
2015
 
2016
2016
        if timestamp is None:
2017
 
            self._timestamp = time.time()
2018
 
        else:
2019
 
            self._timestamp = long(timestamp)
 
2017
            timestamp = time.time()
 
2018
        # Restrict resolution to 1ms
 
2019
        self._timestamp = round(timestamp, 3)
2020
2020
 
2021
2021
        if timezone is None:
2022
2022
            self._timezone = local_time_offset()