On Tue, 24 Sep 2024 06:42:15 +0000, "Lorenz via users"
<users@subversion.apache.org> wrote:

>Bo Berglund wrote:
>
>>I used the following command to import a folder with files into Subversion
>>without having to create a checked out copy of the new server side folder.
>>All of this on a single line in Windows cmd:
>>
>>
>>svn import LocalFolderName
>>https://oursvnservername/svn/pc/Name_of_project/tags/Name_of_project_6-3-3 -m
>>"Importing Name_of_project 6.3.3 for use when building the installers"
>>
>>After it completed I discovered that a few files that were *not* part of the
>>project to import were accidentally present in the local source folder...
>>
>>So now I wonder how I can delete these files *on the server* without first
>>checking out the project and svn remove them?
>>
>>Is there a corresponding server side delete that does not require a local copy
>>first?
>>
>>In the SvnBook I found this example, which I do not really understand:
>>----------------
>>Deleting a URL, however, is immediate, so you have to supply a log message:
>>
>>$ svn delete -m "Deleting file 'yourfile'" \
>>             file:///var/svn/repos/test/yourfile
>>
>>Committed revision 15.
>>----------------
>>
>>I don't understand how the syntax should be especially the use of the 
>>backslash.
>>Why is that there?
>>
>>And my server target is *not* a file: rather it is an https URL as shown above
>>in my import command.
>>
>>Please explain.....
>
>- regarding repo access URLs:
>https://svnbook.red-bean.com/nightly/en/svn.basic.in-action.html#svn.basic.in-action.wc.tbl-1
>
>- are you aware that svn delete removes its target from HEAD revision?
>The file/folder will still be in the repo and accessable going back in
>history.

I know that but I wanted to remove these files because they are not really part
of the fileset I need to be there. So in order to get a clean checkout/export I
needed to delete them.
Does not matter if they still remain in the repo in an earlier revision because
HEAD is what will always be used. They are support files for a build process.

I looked in my bookmarked version of the svnbook:
https://svnbook.red-bean.com/en/1.8/svn.ref.svn.c.delete.html

Here the URL delete command is described as follows:

$ svn delete -m "Deleting file 'yourfile'" \
             file:///var/svn/repos/test/yourfile

And that did not make sense to me because file: is NOT in my view an URL and
also because they had entered a \ in the middle of the command, which also does
not make sense to me...

But I tested with this instead (as I wrote in my next post):

svn delete -m "Deleting file xxx"
https://svnserver/svn/repo/tags/nameofproject/filetodelete

And this dis the job.


-- 
Bo Berglund
Developer in Sweden

Reply via email to