diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 | """ |