Check that an svn repository url does not exist

后端 未结 6 1201
别那么骄傲
别那么骄傲 2021-02-01 12:47

I am writing a script which will add a new project in the repository, based on the name supplied by the user. Part of this involves checking that an url with the same name does

6条回答
  •  灰色年华
    2021-02-01 13:27

    You can just use

    svn ls https://developernetwork.repo.net/svn/Projects/Calculator/
    

    It will tell you if the repository(directory) exist or not.

    Update

    for directories with many files use:

    svn ls http://server/svn/foo --depth empty
    

提交回复
热议问题