mercurial/subrepo.py
branchstable
changeset 16196 8ae7626d8bf1
parent 16022 04604d1a9fc3
child 16197 0196c437ca9f
child 16450 c9c8c9053119
equal deleted inserted replaced
16195:40cc20042fb4 16196:8ae7626d8bf1
   498         cur = self._repo['.']
   498         cur = self._repo['.']
   499         dst = self._repo[state[1]]
   499         dst = self._repo[state[1]]
   500         anc = dst.ancestor(cur)
   500         anc = dst.ancestor(cur)
   501 
   501 
   502         def mergefunc():
   502         def mergefunc():
   503             if anc == cur:
   503             if anc == cur and dst.branch() == cur.branch():
   504                 self._repo.ui.debug("updating subrepo %s\n" % subrelpath(self))
   504                 self._repo.ui.debug("updating subrepo %s\n" % subrelpath(self))
   505                 hg.update(self._repo, state[1])
   505                 hg.update(self._repo, state[1])
   506             elif anc == dst:
   506             elif anc == dst:
   507                 self._repo.ui.debug("skipping subrepo %s\n" % subrelpath(self))
   507                 self._repo.ui.debug("skipping subrepo %s\n" % subrelpath(self))
   508             else:
   508             else: