~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/bundle_data.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-10 15:15:40 UTC
  • mto: This revision was merged to the branch mainline in revision 1850.
  • Revision ID: john@arbash-meinel.com-20060710151540-81ad659edf6391c0
Removed duplicated highres date code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        split up, based on the assumptions that can be made
110
110
        when information is missing.
111
111
        """
112
 
        from bzrlib.bundle.common import unpack_highres_date
 
112
        from bzrlib.bundle.serializer import unpack_highres_date
113
113
        # Put in all of the guessable information.
114
114
        if not self.timestamp and self.date:
115
115
            self.timestamp, self.timezone = unpack_highres_date(self.date)
 
116
            mutter('bundle date %s => %s, %s', self.date, self.timestamp, self.timezone)
116
117
 
117
118
        self.real_revisions = []
118
119
        for rev in self.revisions:
120
121
                if rev.date is not None:
121
122
                    rev.timestamp, rev.timezone = \
122
123
                            unpack_highres_date(rev.date)
 
124
                    mutter('date %s => %s, %s', rev.date, rev.timestamp, rev.timezone)
123
125
                else:
124
126
                    rev.timestamp = self.timestamp
125
127
                    rev.timezone = self.timezone