mercurial/subrepo.py
branchstable
changeset 14898 95ced9f5bf29
parent 14820 7ef125fa9b35
child 14963 c035f1c53e39
child 14994 a115b5ee9c63
equal deleted inserted replaced
14897:b9daa5b7a3af 14898:95ced9f5bf29
   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)