Mercurial > public > src > rhodecode
comparison pylons_app/lib/utils.py @ 593:d8778cde98f0
added limits to single file diffs
changed changeset to use .size for cut off
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 05 Oct 2010 18:25:08 +0200 |
parents | 48be953851fc |
children |
comparison
equal
deleted
inserted
replaced
592:a99e23e6c1e8 | 593:d8778cde98f0 |
---|---|
249 if name == 'full_changelog': | 249 if name == 'full_changelog': |
250 from pylons_app.model.hg_model import _full_changelog_cached | 250 from pylons_app.model.hg_model import _full_changelog_cached |
251 region_invalidate(_full_changelog_cached, None, *args) | 251 region_invalidate(_full_changelog_cached, None, *args) |
252 | 252 |
253 class EmptyChangeset(BaseChangeset): | 253 class EmptyChangeset(BaseChangeset): |
254 """ | |
255 An dummy empty changeset. | |
256 """ | |
254 | 257 |
255 revision = -1 | 258 revision = -1 |
256 message = '' | 259 message = '' |
257 author = '' | 260 author = '' |
258 | 261 date = '' |
259 @LazyProperty | 262 @LazyProperty |
260 def raw_id(self): | 263 def raw_id(self): |
261 """ | 264 """ |
262 Returns raw string identifing this changeset, useful for web | 265 Returns raw string identifing this changeset, useful for web |
263 representation. | 266 representation. |
266 | 269 |
267 @LazyProperty | 270 @LazyProperty |
268 def short_id(self): | 271 def short_id(self): |
269 return self.raw_id[:12] | 272 return self.raw_id[:12] |
270 | 273 |
274 def get_file_changeset(self, path): | |
275 return self | |
276 | |
277 def get_file_content(self, path): | |
278 return u'' | |
279 | |
280 def get_file_size(self, path): | |
281 return 0 | |
282 | |
271 def repo2db_mapper(initial_repo_list, remove_obsolete=False): | 283 def repo2db_mapper(initial_repo_list, remove_obsolete=False): |
272 """ | 284 """ |
273 maps all found repositories into db | 285 maps all found repositories into db |
274 """ | 286 """ |
275 from pylons_app.model.repo_model import RepoModel | 287 from pylons_app.model.repo_model import RepoModel |