summaryrefslogtreecommitdiff
path: root/scripts
Side-by-side diff
Diffstat (limited to 'scripts') (more/less context) (show whitespace changes)
-rw-r--r--scripts/builder/repository.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/builder/repository.py b/scripts/builder/repository.py
index 7ac2324..7a44e47 100644
--- a/scripts/builder/repository.py
+++ b/scripts/builder/repository.py
@@ -13,7 +13,6 @@ def repositoryWithPath (path):
from git import Repo
repo = Repo(path)
result = GitRepository(repo, path)
-
except ImportError, exception:
print "Failed to import git, please install http://gitorious.org/git-python"
raise exception
@@ -89,9 +88,12 @@ class HgRepository(Repository):
#===================================================================
+
class SnapshotRepository(Repository):
+
def revision (self):
return 'SNAPSHOT'
+
def areTherePendingChanges (self):
return False