summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/project.py b/project.py
index 9f4512f6..f2825028 100644
--- a/project.py
+++ b/project.py
@@ -1350,6 +1350,14 @@ class MetaProject(Project):
1350 self.revision = base 1350 self.revision = base
1351 1351
1352 @property 1352 @property
1353 def LastFetch(self):
1354 try:
1355 fh = os.path.join(self.gitdir, 'FETCH_HEAD')
1356 return os.path.getmtime(fh)
1357 except OSError:
1358 return 0
1359
1360 @property
1353 def HasChanges(self): 1361 def HasChanges(self):
1354 """Has the remote received new commits not yet checked out? 1362 """Has the remote received new commits not yet checked out?
1355 """ 1363 """