tortoisesvn

Remove file from SVN repository without deleting local copy

烈酒焚心 提交于 2019-11-26 22:28:52
问题 How can I "delete" a file which is already in the SVN repository without deleting it from my file system? TortoiseSVN or command line instructions are welcome. The following works, but I am hoping for something nicer: Copy the file to some other location outside the repository. SVN Delete the file. Commit Copy the files back and make sure to ignore them on future commits. 回答1: svn delete --keep-local the_file 回答2: Deleting files and folders If you want to delete an item from the repository,

Remove unnecessary svn:mergeinfo properties

半腔热情 提交于 2019-11-26 22:14:28
问题 When I merge stuff in my repository Subversion wants to add/change a lot of svn:mergeinfo properties to files that are totally unrelated to the things that I want to merge. Questions about this behaviour have been asked before here on Stack Overflow: SVN Mergeinfo properties on paths other than the working copy root Is there a way to turn TortoiseSVN using svn:mergeinfo off? From what I understand from the topics mentioned above it looks like a lot of files in my repository have explicit svn

How to checkout a specific Subversion revision from the command line?

只愿长相守 提交于 2019-11-26 21:11:09
I want to checkout a specific revision of a folder in Subversion using the command line. I don't see an option for specifying the revision number in TortoiseProc.exe , TortoiseProc.exe /command:checkout <url> How do I get the revision I want? Is TortoiseProc.exe the right tool for what I want to do? rogerdpack If you already have it checked out locally then you can cd to where it is checked out, then use this syntax: $ svn up -rXXXX ref: Checkout a specific revision from subversion from command line Either svn checkout url://repository/path@1234 or svn checkout -r 1234 url://repository/path

In SVN how do I override automatic Windows domain authentication

限于喜欢 提交于 2019-11-26 21:03:35
问题 I have a build server that is not part of a Windows domain trying to connect to a VisualSVN server running HTTPS via apache with domain login via Active Directory. When I try to connect to the server using specifying a domain username I observe a client hang: svn ls --username=domainuser https://subversion.mydomain/svn/repo1/ The logs on the server show Windows authentication failures using the login-name for the build-machine, and the build-machine's hostname in the Domain name field. The

Find files not added to subversion

倾然丶 夕夏残阳落幕 提交于 2019-11-26 20:53:34
问题 The following issue is becoming increasing common: There are several developers working on a project which includes new files (usually images) Everyone says that everything is checked in and we freeze development. Unbeknownst to us, there are images which were not checked in. The user doesn't notice the missing files because they're new, not check-outs, so svn looks fine The code is compiled and deployed (sorry, no QA team) The next day the client tells us about the missing images The CTO

How can I branch in SVN and have it branch my svn:external folders as well?

梦想与她 提交于 2019-11-26 20:10:20
问题 I'm using tortoise svn in Windows. How can I branch in SVN and have it branch my svn:external folders as well? 回答1: You should use svn:externals as external references from different repositories. So svn:externals should refer to components, modules, 3rd party tools, etc. You should not use svn:externals to emulate a "symbolic link"-behaviour by using externals to point into the same repository. You can solve such issues most of the time by modifying your build-structure, or use checkout

SVN keeps corrupting files with “<<<<<<< .mine”, how to fix?

谁都会走 提交于 2019-11-26 19:22:45
问题 I've got a Visual Studio C# project which is under version control (SVN). I've always commited and updated the project without any problems. But a couple of hours ago Visual Studio throws the following error when I try to launch/rebuild the project: Files has invalid value "<<<<<<< .mine". Illegal characters in path. I don't know how to fix this problem. What should I do? 回答1: That happens when svn encounters a conflict: You changed a file, the file on the server was changed and it cannot

Is there a way to turn TortoiseSVN using svn:mergeinfo off?

断了今生、忘了曾经 提交于 2019-11-26 19:05:08
问题 When I'm doing a TortoiseSVN merge, it includes a bunch of directories, and some files into the modified files, even though there are no actual changes. It changes the property svn:mergeinfo . Is there any reason why these properties set on the directory/files are needed? Is there any way to get around not doing these changes to svn:mergeinfo ? I usually just revert the items then commit, but this wastes extra time. 回答1: That is happening, very likely, because those files and directories have

Undoing a commit in TortoiseSVN

柔情痞子 提交于 2019-11-26 18:50:48
问题 I committed a bunch of files (dozens of files in different folders) by accident. What is the easiest, cleanest (and safest!) way to 'undo' that commit without having to delete the files from my working directory? 回答1: Go to Show Log Screen, select the revision that you want to undo, right click it and select Revert changes from this revision , this will do a reverse-merge. 回答2: You may need to use the command line, but you can use the SVN merge command and specify the revisions in reverse to

What is the correct way to restore a deleted file from SVN?

家住魔仙堡 提交于 2019-11-26 18:47:59
问题 I deleted a file from a repo and now want to put it back. The best I can figure out is to: update to the revision before the delete copy the files elsewhere update to head copy the files back add them commit That just smells bad and it looses all history to boot. There has got to be a better way to do this. I have already looked in The SVN Book but didn't find anything and am now looking down the SVN tag list. 回答1: Use svn merge: svn merge -c -[rev num that deleted the file] http://<path to