Mercurial > hg
comparison mercurial/context.py @ 19700:8f48f5969b47
commitablectx: move dirs from workingctx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Wed, 14 Aug 2013 16:40:34 -0500 |
parents | 9fbc193b2358 |
children | f0f8380ec516 |
comparison
equal
deleted
inserted
replaced
19699:9fbc193b2358 | 19700:8f48f5969b47 |
---|---|
1057 self._repo.dirstate.normal(f) | 1057 self._repo.dirstate.normal(f) |
1058 for f in self.removed(): | 1058 for f in self.removed(): |
1059 self._repo.dirstate.drop(f) | 1059 self._repo.dirstate.drop(f) |
1060 self._repo.dirstate.setparents(node) | 1060 self._repo.dirstate.setparents(node) |
1061 | 1061 |
1062 def dirs(self): | |
1063 return self._repo.dirstate.dirs() | |
1064 | |
1062 class workingctx(commitablectx): | 1065 class workingctx(commitablectx): |
1063 """A workingctx object makes access to data related to | 1066 """A workingctx object makes access to data related to |
1064 the current working directory convenient. | 1067 the current working directory convenient. |
1065 date - any valid date string or (unixtime, offset), or None. | 1068 date - any valid date string or (unixtime, offset), or None. |
1066 user - username string, or None. | 1069 user - username string, or None. |
1183 self._repo.dirstate.add(dest) | 1186 self._repo.dirstate.add(dest) |
1184 self._repo.dirstate.copy(source, dest) | 1187 self._repo.dirstate.copy(source, dest) |
1185 finally: | 1188 finally: |
1186 wlock.release() | 1189 wlock.release() |
1187 | 1190 |
1188 def dirs(self): | |
1189 return self._repo.dirstate.dirs() | |
1190 | |
1191 class workingfilectx(basefilectx): | 1191 class workingfilectx(basefilectx): |
1192 """A workingfilectx object makes access to data related to a particular | 1192 """A workingfilectx object makes access to data related to a particular |
1193 file in the working directory convenient.""" | 1193 file in the working directory convenient.""" |
1194 def __init__(self, repo, path, filelog=None, workingctx=None): | 1194 def __init__(self, repo, path, filelog=None, workingctx=None): |
1195 self._repo = repo | 1195 self._repo = repo |