Show More
@@ -901,19 +901,6 class commitablectx(basectx): | |||||
901 | def _flagfunc(self): |
|
901 | def _flagfunc(self): | |
902 | return self._repo.dirstate.flagfunc(self._buildflagfunc) |
|
902 | return self._repo.dirstate.flagfunc(self._buildflagfunc) | |
903 |
|
903 | |||
904 | class workingctx(commitablectx): |
|
|||
905 | """A workingctx object makes access to data related to |
|
|||
906 | the current working directory convenient. |
|
|||
907 | date - any valid date string or (unixtime, offset), or None. |
|
|||
908 | user - username string, or None. |
|
|||
909 | extra - a dictionary of extra values, or None. |
|
|||
910 | changes - a list of file lists as returned by localrepo.status() |
|
|||
911 | or None to use the repository status. |
|
|||
912 | """ |
|
|||
913 | def __init__(self, repo, text="", user=None, date=None, extra=None, |
|
|||
914 | changes=None): |
|
|||
915 | super(workingctx, self).__init__(repo, text, user, date, extra, changes) |
|
|||
916 |
|
||||
917 | @propertycache |
|
904 | @propertycache | |
918 | def _manifest(self): |
|
905 | def _manifest(self): | |
919 | """generate a manifest corresponding to the working directory""" |
|
906 | """generate a manifest corresponding to the working directory""" | |
@@ -946,6 +933,19 class workingctx(commitablectx): | |||||
946 |
|
933 | |||
947 | return man |
|
934 | return man | |
948 |
|
935 | |||
|
936 | class workingctx(commitablectx): | |||
|
937 | """A workingctx object makes access to data related to | |||
|
938 | the current working directory convenient. | |||
|
939 | date - any valid date string or (unixtime, offset), or None. | |||
|
940 | user - username string, or None. | |||
|
941 | extra - a dictionary of extra values, or None. | |||
|
942 | changes - a list of file lists as returned by localrepo.status() | |||
|
943 | or None to use the repository status. | |||
|
944 | """ | |||
|
945 | def __init__(self, repo, text="", user=None, date=None, extra=None, | |||
|
946 | changes=None): | |||
|
947 | super(workingctx, self).__init__(repo, text, user, date, extra, changes) | |||
|
948 | ||||
949 | def __iter__(self): |
|
949 | def __iter__(self): | |
950 | d = self._repo.dirstate |
|
950 | d = self._repo.dirstate | |
951 | for f in d: |
|
951 | for f in d: |
General Comments 0
You need to be logged in to leave comments.
Login now