Show More
@@ -149,6 +149,21 b' def subrepo(ctx, path):' | |||
|
149 | 149 | raise error.Abort('unknown subrepo source %s' % state[0]) |
|
150 | 150 | return hgsubrepo(ctx, path, state) |
|
151 | 151 | |
|
152 | # subrepo classes need to implement the following methods: | |
|
153 | # __init__(self, ctx, path, state) | |
|
154 | # dirty(self): returns true if the dirstate of the subrepo | |
|
155 | # does not match current stored state | |
|
156 | # commit(self, text, user, date): commit the current changes | |
|
157 | # to the subrepo with the given log message. Use given | |
|
158 | # user and date if possible. Return the new state of the subrepo. | |
|
159 | # remove(self): remove the subrepo (should verify the dirstate | |
|
160 | # is not dirty first) | |
|
161 | # get(self, state): run whatever commands are needed to put the | |
|
162 | # subrepo into this state | |
|
163 | # merge(self, state): merge currently-saved state with the new state. | |
|
164 | # push(self, force): perform whatever action is analagous to 'hg push' | |
|
165 | # This may be a no-op on some systems. | |
|
166 | ||
|
152 | 167 | class hgsubrepo(object): |
|
153 | 168 | def __init__(self, ctx, path, state): |
|
154 | 169 | self._path = path |
General Comments 0
You need to be logged in to leave comments.
Login now