diff 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
line wrap: on
line diff
--- a/pylons_app/lib/utils.py	Sun May 09 13:20:52 2010 +0200
+++ b/pylons_app/lib/utils.py	Sun May 09 14:13:20 2010 +0200
@@ -90,5 +90,17 @@
     
     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