diff --git a/pylons_app/lib/utils.py b/pylons_app/lib/utils.py --- a/pylons_app/lib/utils.py +++ b/pylons_app/lib/utils.py @@ -90,5 +90,17 @@ def make_ui(path='hgwebdir.config', chec return baseui +from vcs.backends.base import BaseChangeset +from vcs.utils.lazy import LazyProperty +class EmptyChangeset(BaseChangeset): + + revision = -1 + @LazyProperty + def raw_id(self): + """ + Returns raw string identifing this changeset, useful for web + representation. + """ + return '0' * 12