I am using Tortoise svn client on Windows, and I need to be able to commit changed files from different subfolders all at once - in a single commit. Like adding files to a queue prior to commit or something like that? How can I accomplish this?
Is there another svn client on Windows that can do that?
If your working copy has the root of all these folders, you can go to this root and commit. If you had checked out these subfolders separately without the root, you have to make multiple commits.
Several of the answers already provided give essentially the same (correct) answer--commit from your working copy root. But I think it is useful to give just a couple more details.
First, committing from the root does not imply you have to commit everything (in case you are concerned about not yet committing some unrelated edits). The commit dialog lets you select or deselect from the set of all changed files.
Second, and perhaps most relevant to your question, regardless of how many files you select to commit, the commit operation is atomic, i.e. it commits all the files or, if there was a problem with any one or more of them, it commits none. Thus, Subversion guarantees to keep your changes grouped together as a single change set.
Third, a point to be aware of that relates slightly less directly, but is still worth mentioning here: it is important to be aware that Subversion operations (outside the repo-browser) operate under a two-stage process: first you make a local change, then you commit the change. This seems almost a tautology when it comes to the edit operation: first you edit, then you commit; the act of editing itself does not affect the repository. Obvious, right? This is not nearly so obvious when you consider the add operation: first you add, then you commit; the act of adding also does not affect the repository! So relating this to your question, edit various files, add various files, delete various files, etc., as you build your change set. Once you have done that, open the commit dialog from the root of your working copy and select all the files in your change set and commit them in one atomic operation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With