53
53
h = self._branch.get_history()
54
54
util.set_context(kw)
57
revid = h.fix_revid(args[0])
61
file_id = kw.get('file_id', None)
62
sort_type = kw.get('sort', None)
59
revid = h.fix_revid(args[0])
64
inv = h.get_inventory(revid)
66
self.log.exception('Exception fetching changes')
67
raise InternalError('Could not fetch changes')
69
file_id = kw.get('file_id', inv.root.file_id)
70
sort_type = kw.get('sort', None)
72
# no navbar for revisions
73
navigation = util.Container()
75
change = h.get_changes([ revid ])[0]
76
# add parent & merge-point branch-nick info, in case it's useful
77
h.get_branch_nicks([ change ])
79
path = inv.id2path(file_id)
80
if not path.startswith('/'):
82
idpath = inv.get_idpath(file_id)
85
updir_file_id = idpath[-2]
93
'branch': self._branch,
100
'updir_file_id': updir_file_id,
101
'filelist': h.get_filelist(inv, file_id, sort_type),
103
'posixpath': posixpath,
104
'navigation': navigation,
107
self.log.info('/inventory %r: %r secs' % (revid, time.time() - z))
65
revid_list, revid = h.get_file_view(revid, file_id)
66
rev = h.get_revision(revid)
67
inv = h.get_inventory(revid)
69
self.log.error('Exception fetching changes: %s' % (x,))
70
util.log_exception(self.log)
71
raise HTTPRedirect(self._branch.url('/changes'))
73
# no navbar for revisions
74
navigation = util.Container()
76
change = h.get_changes([ revid ])[0]
77
# add parent & merge-point branch-nick info, in case it's useful
78
h.get_branch_nicks([ change ])
80
path = inv.id2path(file_id)
81
if not path.startswith('/'):
83
idpath = inv.get_idpath(file_id)
86
updir_file_id = idpath[-2]
94
'branch': self._branch,
101
'updir_file_id': updir_file_id,
102
'filelist': h.get_filelist(inv, path, sort_type),
104
'posixpath': posixpath,
105
'navigation': navigation,
108
self.log.info('/inventory %r: %r secs' % (revid, time.time() - z))