Commit to multiple repositories (via externals) at once
Daniel Sahlberg via TortoiseSVN-dev <[email protected]> Fri, 21 Mar 2025 04:12:05 -0700 (PDT)
| Newsgroups | gmane.comp.version-control.subversion.tortoisesvn.devel |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_56262_734486969.1742555525703 Content-Type: multipart/alternative; boundary="----=_Part_56263_1165220612.1742555525703" ------=_Part_56263_1165220612.1742555525703 Content-Type: text/plain; charset="UTF-8" Hi, We have a design pattern where our customer repos pull in some directories from other repositories (much like the layout of TortoiseSVN's own repository). We sometimes makes changes that affect both repos. We'd like to commit this "at once" from the Commit dialog. I understand this is not possible in Subversion itself (svn_client_commit6 will not accept paths coming from different repos). I'm investigating if it would be possible to change TortoiseSVN to do several calls to svn_client_commit(). It would probably mean changing the way CCommitDlg returns the pathlist (so CommitCommand::Execute() can figure out if a path is an external) and doing several calls to SVN::Commit()), but it seems doable. This will of course generate several separate commits, but it is how we do it today although we have to navigate to the external directory and commit manually (keeping track of the commit msg etc). Before starting to code, I'd like to check the general feedback on the above plan. I'll do the coding in a separate branch to avoid fouling /trunk and then get consensus before merging back to trunk. Kind regards, Daniel -- You received this message because you are subscribed to the Google Groups "TortoiseSVN-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/tortoisesvn-dev/da598cee-f65f-4d45-b338-f8cbb1e3eda0n%40googlegroups.com. ------=_Part_56263_1165220612.1742555525703 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi,<div><br /></div><div>We have a design pattern where our customer repos = pull in some directories from other repositories (much like the layout of T= ortoiseSVN's own repository).</div><div><br /></div><div>We sometimes makes= changes that affect both repos. We'd like to commit this "at once" from th= e Commit dialog. I understand this is not possible in Subversion itself (sv= n_client_commit6 will not accept paths coming from different repos). I'm in= vestigating if it would be possible to change TortoiseSVN to do several cal= ls to svn_client_commit(). It would probably mean changing the way CCommitD= lg returns the pathlist (so CommitCommand::Execute() can figure out if a pa= th is an external) and doing several calls to SVN::Commit()), but it seems = doable.</div><div><br /></div><div>This will of course generate several sep= arate commits, but it is how we do it today although we have to navigate to= the external directory and commit manually (keeping track of the commit ms= g etc).</div><div><br /></div><div>Before starting to code, I'd like to che= ck the general feedback on the above plan. I'll do the coding in a separate= branch to avoid fouling /trunk and then get consensus before merging back = to trunk.</div><div><br /></div><div>Kind regards,</div><div>Daniel</div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;TortoiseSVN-dev" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">tor= [email protected]</a>.<br /> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/= tortoisesvn-dev/da598cee-f65f-4d45-b338-f8cbb1e3eda0n%40googlegroups.com?ut= m_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/tor= toisesvn-dev/da598cee-f65f-4d45-b338-f8cbb1e3eda0n%40googlegroups.com</a>.<= br /> ------=_Part_56263_1165220612.1742555525703-- ------=_Part_56262_734486969.1742555525703--