equal
deleted
inserted
replaced
418 |
418 |
419 def checknested(self, path): |
419 def checknested(self, path): |
420 return self._repo._checknested(self._repo.wjoin(path)) |
420 return self._repo._checknested(self._repo.wjoin(path)) |
421 |
421 |
422 def commit(self, text, user, date): |
422 def commit(self, text, user, date): |
|
423 # don't bother committing in the subrepo if it's only been |
|
424 # updated |
|
425 if not self.dirty(True): |
|
426 return self._repo['.'].hex() |
423 self._repo.ui.debug("committing subrepo %s\n" % subrelpath(self)) |
427 self._repo.ui.debug("committing subrepo %s\n" % subrelpath(self)) |
424 n = self._repo.commit(text, user, date) |
428 n = self._repo.commit(text, user, date) |
425 if not n: |
429 if not n: |
426 return self._repo['.'].hex() # different version checked out |
430 return self._repo['.'].hex() # different version checked out |
427 return node.hex(n) |
431 return node.hex(n) |