~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/directory_ui.py

  • Committer: Robert Collins
  • Date: 2012-02-03 01:37:21 UTC
  • mfrom: (466.1.2 bug-728209)
  • Revision ID: robertc@robertcollins.net-20120203013721-5ntnp45xb9in5eo6
    - Avoid crashing when viewing or annotating a non-existent file.
      (William Grant, #728209)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        if branch is not None:
36
36
            # If a branch is empty, bzr raises an exception when trying this
37
37
            try:
38
 
                self.last_change = datetime.datetime.fromtimestamp(
 
38
                self.last_change = datetime.datetime.utcfromtimestamp(
39
39
                    branch.repository.get_revision(
40
40
                        branch.last_revision()).timestamp)
41
41
            except: