Mercurial > public > src > rhodecode
comparison pylons_app/lib/utils.py @ 136:36102488d634
Added empty changeset to use in newly created repository, and used this inside a hg model in repos list
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 09 May 2010 14:13:20 +0200 |
parents | 2811259dc12d |
children | b5e59e2b5cfe |
comparison
equal
deleted
inserted
replaced
135:28f28d423268 | 136:36102488d634 |
---|---|
88 for k, v in cfg.items(section): | 88 for k, v in cfg.items(section): |
89 baseui.setconfig(section, k, v) | 89 baseui.setconfig(section, k, v) |
90 | 90 |
91 return baseui | 91 return baseui |
92 | 92 |
93 from vcs.backends.base import BaseChangeset | |
94 from vcs.utils.lazy import LazyProperty | |
95 class EmptyChangeset(BaseChangeset): | |
96 | |
97 revision = -1 | |
93 | 98 |
99 @LazyProperty | |
100 def raw_id(self): | |
101 """ | |
102 Returns raw string identifing this changeset, useful for web | |
103 representation. | |
104 """ | |
105 return '0' * 12 | |
94 | 106 |