##// END OF EJS Templates
status: update and move documentation of status types to status class...
Martin von Zweigbergk -
r22915:4d680deb default
parent child Browse files
Show More
@@ -809,28 +809,17 b' class dirstate(object):'
809
809
810 def status(self, match, subrepos, ignored, clean, unknown):
810 def status(self, match, subrepos, ignored, clean, unknown):
811 '''Determine the status of the working copy relative to the
811 '''Determine the status of the working copy relative to the
812 dirstate and return a nested tuple of lists (unsure, (modified, added,
812 dirstate and return a pair of (unsure, status), where status is of type
813 removed, deleted, unknown, ignored, clean)), where:
813 scmutil.status and:
814
814
815 unsure:
815 unsure:
816 files that might have been modified since the dirstate was
816 files that might have been modified since the dirstate was
817 written, but need to be read to be sure (size is the same
817 written, but need to be read to be sure (size is the same
818 but mtime differs)
818 but mtime differs)
819 modified:
819 status.modified:
820 files that have definitely been modified since the dirstate
820 files that have definitely been modified since the dirstate
821 was written (different size or mode)
821 was written (different size or mode)
822 added:
822 status.clean:
823 files that have been explicitly added with hg add
824 removed:
825 files that have been explicitly removed with hg remove
826 deleted:
827 files that have been deleted through other means ("missing")
828 unknown:
829 files not in the dirstate that are not ignored
830 ignored:
831 files not in the dirstate that are ignored
832 (by _dirignore())
833 clean:
834 files that have definitely not been modified since the
823 files that have definitely not been modified since the
835 dirstate was written
824 dirstate was written
836 '''
825 '''
@@ -34,30 +34,39 b' class status(tuple):'
34
34
35 @property
35 @property
36 def modified(self):
36 def modified(self):
37 '''files that have been modified'''
37 return self[0]
38 return self[0]
38
39
39 @property
40 @property
40 def added(self):
41 def added(self):
42 '''files that have been added'''
41 return self[1]
43 return self[1]
42
44
43 @property
45 @property
44 def removed(self):
46 def removed(self):
47 '''files that have been removed'''
45 return self[2]
48 return self[2]
46
49
47 @property
50 @property
48 def deleted(self):
51 def deleted(self):
52 '''files that are in the dirstate, but have been deleted from the
53 working copy (aka "missing")
54 '''
49 return self[3]
55 return self[3]
50
56
51 @property
57 @property
52 def unknown(self):
58 def unknown(self):
59 '''files not in the dirstate that are not ignored'''
53 return self[4]
60 return self[4]
54
61
55 @property
62 @property
56 def ignored(self):
63 def ignored(self):
64 '''files not in the dirstate that are ignored (by _dirignore())'''
57 return self[5]
65 return self[5]
58
66
59 @property
67 @property
60 def clean(self):
68 def clean(self):
69 '''files that have not been modified'''
61 return self[6]
70 return self[6]
62
71
63 def __repr__(self, *args, **kwargs):
72 def __repr__(self, *args, **kwargs):
General Comments 0
You need to be logged in to leave comments. Login now