equal
deleted
inserted
replaced
208 """returns true if the dirstate of the subrepo does not match |
208 """returns true if the dirstate of the subrepo does not match |
209 current stored state |
209 current stored state |
210 """ |
210 """ |
211 raise NotImplementedError |
211 raise NotImplementedError |
212 |
212 |
|
213 def checknested(path): |
|
214 """check if path is a subrepository within this repository""" |
|
215 return False |
|
216 |
213 def commit(self, text, user, date): |
217 def commit(self, text, user, date): |
214 """commit the current changes to the subrepo with the given |
218 """commit the current changes to the subrepo with the given |
215 log message. Use given user and date if possible. Return the |
219 log message. Use given user and date if possible. Return the |
216 new state of the subrepo. |
220 new state of the subrepo. |
217 """ |
221 """ |
277 return True |
281 return True |
278 w = self._repo[None] |
282 w = self._repo[None] |
279 if w.p1() != self._repo[r]: # version checked out change |
283 if w.p1() != self._repo[r]: # version checked out change |
280 return True |
284 return True |
281 return w.dirty() # working directory changed |
285 return w.dirty() # working directory changed |
|
286 |
|
287 def checknested(self, path): |
|
288 return self._repo._checknested(self._repo.wjoin(path)) |
282 |
289 |
283 def commit(self, text, user, date): |
290 def commit(self, text, user, date): |
284 self._repo.ui.debug("committing subrepo %s\n" % relpath(self)) |
291 self._repo.ui.debug("committing subrepo %s\n" % relpath(self)) |
285 n = self._repo.commit(text, user, date) |
292 n = self._repo.commit(text, user, date) |
286 if not n: |
293 if not n: |