svn

Using Subversion with DropBox

岁酱吖の 提交于 2019-12-20 08:23:58
问题 Is it a bad idea to use DropBox as a backup system for Subversion repositories? Has anyone tried using Subversion with an an online file sharing utility like DropBox? What's your experiences? My concern is whether this will work - mainly because Subversion maintains locks and it's very specific about it. I'm not sure if DropBox and Subversion can both work together? p.s. I'm thinking of using this for my Xcode projects, and no, i don't want to use github because it's not free - you can't keep

Commit changes to a different branch than the currently checked out branch with subversion

被刻印的时光 ゝ 提交于 2019-12-20 08:21:51
问题 I've been working on code checked out from the development line and discovered that the changes made might be breaking changes and need to be moved to an experimental branch before committing to the main dev tree. However, I don't have the experimental branch checked out and I don't want to lose the changes that have already been made. Is there a way to commit the changes in the working folder to a different branch than originally checked out? 回答1: You should create a branch from a known

Folder is locked and I can't unlock it

落花浮王杯 提交于 2019-12-20 08:15:29
问题 When I'm trying to update or commit code from a project it's telling me that the folder is locked. When I try to "release lock" it says that there's nothing to unlock in this working space. What does that mean? Why I can't update, commit or even clean up the project. 回答1: Right click on your Subversion working directory folder, and select TortoiseSVN->Clean Up from the Context Menu. This will recurse it's way through your working directory and cleanup any incomplete actions, remove the local

Check diff against file on the server

筅森魡賤 提交于 2019-12-20 08:06:03
问题 I have a working copy of a repository on my machine, and I know that it has been updated on the server. I would like to know how to get the difference between the new version and the version in my working copy by using svn command line arguments. Is there a way for me to do this? 回答1: The working copy is revision BASE. The latest copy from the repository is revision HEAD. This will compare your working copy against the HEAD revision: svn diff -r HEAD <file> Actually that'll spit the changes

How to remove all deleted files from repository?

守給你的承諾、 提交于 2019-12-20 08:00:36
问题 I have a script in which I add all new files before to commit my working copy to my repository with this line: svn status | grep ^\? | awk '{print $2}' | xargs svn add I now want to add a line that delete from repository all deleted files in my working copy. In other terms, I cannot specify them one by one, and I need to detect them with svn status and then automatically remove them. However the line doesn't work. svn status | grep ^\! | awk '{print $2}' | xargs svn --force delete As you can

CORS issue with swagger

試著忘記壹切 提交于 2019-12-20 07:49:05
问题 We are trying to host api spec yml file in our svn repository which is hosted on another server. When we are pointing to yml file from this server we are getting cors error in swagger-ui. 回答1: You need to enable CORS on the server that hosts your YAML file. How you do this depends on the server you use. This site has instructions for many server types: https://enable-cors.org/server.html 来源: https://stackoverflow.com/questions/50983373/cors-issue-with-swagger

SVN to GitHub migration

♀尐吖头ヾ 提交于 2019-12-20 07:40:24
问题 I have to migrate multiple directories from SVN trunk to one single GitHub repository. I'm able to clone single directory at a time by using this command: git svn clone "https://svn repo url" How to clone multiple directories with a single command from svn trunk? What is the best way to do migration? 回答1: In the hard way officil svn to git migration you have to run a bunch of command to make the conversion, basically transforming trunk to master, svn revision's in commit's (git style) and svn

svn: How to revert somebody else's commit?

半世苍凉 提交于 2019-12-20 07:13:58
问题 Argh, somebody (OK, my boss) added and commited all the files in his directory, meaning all the svn files: conf/, db/, format, hooks/, locks/... I'm using Tortoise, so I tried clicking on each one and doing revert, it said OK, but I still see all of them under version control after update/commit. We are now several versions past that. How do I clean things up ? Thanks 回答1: In Subversion, "revert" means to undo uncommitted changes to a working copy. What you're looking to do is to (effectively

How to integrate FileMerge with Komodo 6 IDE?

江枫思渺然 提交于 2019-12-20 06:32:13
问题 After reading this post: http://community.activestate.com/forum/subversion-external-diff-tool I've tried using the following command in the "diff options" text box in preferences > source code control > Subversion but it does not work. --diff-cmd /Developer/Applications/Utilities/FileMerge.app 回答1: I figured it out. 1) Download/Install the fmdiff wrapper from here: http://www.defraine.net/~brunod/fmdiff/ 2) In Komodo IDE 6 ( Komodo Edit does not have source code control ): Preferences >

post-commit hook produces error on svn commit but works when run on manually on command line

﹥>﹥吖頭↗ 提交于 2019-12-20 06:10:10
问题 I am currently trying to set up the post-commit hook for my subversion repository to send a email notifications. I am using subversion 1.7.8. My post-commit hook script is as follows: #!/bin/sh REPOS="$1" REV="$2" "$REPOS"/hooks/mailer.py commit $REPOS $REV "$REPOS"/mailer.conf When I make a commit the following error message is produced: Traceback (most recent call last): File "/lib/python2.7/site.py", line 563, in <module> main() File "/lib/python2.7/site.py", line 545, in main known_paths