TortoiseSVN+7zip integration

38 views
Skip to first unread message

Pierre Chatelier

unread,
Oct 29, 2020, 12:29:02 PM10/29/20
to TortoiseSVN

I often have to make a 7zip archive of a versioned directory (for instance a source code tree)
To avoid archiving non-essential files, I can first SVN>cleanup>Delete unversiond files
However, it means that I have to regenerate those files after making the archive (i.e. rebuild my project).

Is there some trick to directly send the versioned files list to 7-zip for archiving ? Or could there be some 7-zip integration in the TortsoiseSVN menus ?

Of course, I am asking that in the context of a GUI, this is very different on a CLI.

Pavel Lyalyakin

unread,
Oct 29, 2020, 1:14:01 PM10/29/20
to TortoiseSVN
Hello Pierre,

You can right-click your working copy and select TortoiseSVN | Export. Export to an empty directory, then archive it. Does this work for you?

--
You received this message because you are subscribed to the Google Groups "TortoiseSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tortoisesvn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tortoisesvn/c52d52b4-df67-4ab5-b343-b984dd8afac8n%40googlegroups.com.


--
With best regards,
Pavel Lyalyakin
VisualSVN Team

Pierre Chatelier

unread,
Oct 30, 2020, 5:52:49 AM10/30/20
to TortoiseSVN
Indeed, exporting is a solution.
This is not optimal since it requires to "duplicate everything through export">"archiving with compressor">"delete the export". This is not a major inconvenience, and it does the job, but I feel like it could be better.

Stefan

unread,
Oct 30, 2020, 2:55:41 PM10/30/20
to TortoiseSVN
you could try a powershell script which parses either 'svn list -R' for the file list (svn list gets the list from the repo), or the list from 'svn st -v -q'. The list from the status command needs cleaning up first though.
And then go through that list like this:
[string]$Zip = "C:\path to 7zip\7-zip\7z.exe";
[array]$args = "a", "-tzip", "-y", "-r", "$arcPath ";
ForEach ( $file in $filesToBackUP ) 
{
  $Zip $args $file;


Tony Rietwyk

unread,
Oct 30, 2020, 10:54:21 PM10/30/20
to TortoiseSVN
Hi Pierre,  I think most people direct the build outputs to a folder outside the source tree.  Then you don't have to do anything.  Regards, Tony.
Reply all
Reply to author
Forward
0 new messages