equal
deleted
inserted
replaced
865 |
865 |
866 # commit subs |
866 # commit subs |
867 if subs or removedsubs: |
867 if subs or removedsubs: |
868 state = wctx.substate.copy() |
868 state = wctx.substate.copy() |
869 for s in subs: |
869 for s in subs: |
870 self.ui.status(_('committing subrepository %s\n') % s) |
870 sub = wctx.sub(s) |
871 sr = wctx.sub(s).commit(cctx._text, user, date) |
871 self.ui.status(_('committing subrepository %s\n') % |
|
872 subrepo.relpath(sub)) |
|
873 sr = sub.commit(cctx._text, user, date) |
872 state[s] = (state[s][0], sr) |
874 state[s] = (state[s][0], sr) |
873 subrepo.writestate(self, state) |
875 subrepo.writestate(self, state) |
874 |
876 |
875 # Save commit message in case this transaction gets rolled back |
877 # Save commit message in case this transaction gets rolled back |
876 # (e.g. by a pretxncommit hook). Leave the content alone on |
878 # (e.g. by a pretxncommit hook). Leave the content alone on |