##// END OF EJS Templates
files: ensure we generate archives with consistent hashing (except for .tar.gz which uses temp files names in header)
marcink -
r3727:48e3ba7a new-ui
parent child Browse files
Show More
@@ -312,7 +312,7 b' class RepoFilesView(RepoAppView):'
312 return Response(_('Empty repository'))
312 return Response(_('Empty repository'))
313
313
314 try:
314 try:
315 at_path = commit.get_node(at_path).path
315 at_path = commit.get_node(at_path).path or default_at_path
316 except Exception:
316 except Exception:
317 return Response(_('No node at path {} for this repository').format(at_path))
317 return Response(_('No node at path {} for this repository').format(at_path))
318
318
@@ -1119,7 +1119,7 b' class BaseCommit(object):'
1119
1119
1120 prefix = self._validate_archive_prefix(prefix)
1120 prefix = self._validate_archive_prefix(prefix)
1121
1121
1122 mtime = mtime or time.mktime(self.date.timetuple())
1122 mtime = mtime is not None or time.mktime(self.date.timetuple())
1123
1123
1124 file_info = []
1124 file_info = []
1125 cur_rev = self.repository.get_commit(commit_id=self.raw_id)
1125 cur_rev = self.repository.get_commit(commit_id=self.raw_id)
@@ -1132,8 +1132,8 b' class BaseCommit(object):'
1132 if write_metadata:
1132 if write_metadata:
1133 metadata = [
1133 metadata = [
1134 ('repo_name', self.repository.name),
1134 ('repo_name', self.repository.name),
1135 ('rev', self.raw_id),
1135 ('commit_id', self.raw_id),
1136 ('create_time', mtime),
1136 ('mtime', mtime),
1137 ('branch', self.branch),
1137 ('branch', self.branch),
1138 ('tags', ','.join(self.tags)),
1138 ('tags', ','.join(self.tags)),
1139 ]
1139 ]
General Comments 0
You need to be logged in to leave comments. Login now