summaryrefslogtreecommitdiff
path: root/scripts
Side-by-side diff
Diffstat (limited to 'scripts') (more/less context) (ignore 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
@@ -10,13 +10,12 @@ def repositoryWithPath (path):
result = HgRepository(repo, path)
except:
try:
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
except:
result = SnapshotRepository('', path)
@@ -86,12 +85,15 @@ class HgRepository(Repository):
# TODO: FIXME: repository.status() does not report 'unknown(?)' files. :(
return not all(map(lambda fileList: len(fileList) == 0, self.repository.status()))
#===================================================================
+
class SnapshotRepository(Repository):
+
def revision (self):
return 'SNAPSHOT'
+
def areTherePendingChanges (self):
return False