Show More
@@ -768,6 +768,23 b' class filecachesubentry(object):' | |||
|
768 | 768 | if e.errno != errno.ENOENT: |
|
769 | 769 | raise |
|
770 | 770 | |
|
771 | class filecacheentry(object): | |
|
772 | def __init__(self, paths, stat=True): | |
|
773 | self._entries = [] | |
|
774 | for path in paths: | |
|
775 | self._entries.append(filecachesubentry(path, stat)) | |
|
776 | ||
|
777 | def changed(self): | |
|
778 | '''true if any entry has changed''' | |
|
779 | for entry in self._entries: | |
|
780 | if entry.changed(): | |
|
781 | return True | |
|
782 | return False | |
|
783 | ||
|
784 | def refresh(self): | |
|
785 | for entry in self._entries: | |
|
786 | entry.refresh() | |
|
787 | ||
|
771 | 788 | class filecache(object): |
|
772 | 789 | '''A property like decorator that tracks a file under .hg/ for updates. |
|
773 | 790 |
General Comments 0
You need to be logged in to leave comments.
Login now