tortoisesvn

Force user to lock file in SVN before editing

对着背影说爱祢 提交于 2019-11-27 01:30:54
问题 We have some files in our project that can't be merged and hence the files must be locked by the users before editing them. Is there a way to force the user to lock a file before editing? We are using Subversion and TortoiseSVN / VisualSVN. 回答1: Two steps: put the svn:needs-lock property on those files. That way they are check out read-only when such a file must be modified, use the svn lock command and commit as usual links: http://svnbook.red-bean.com/nightly/en/svn.advanced.locking.html

Where is svn.exe in my machine?

自闭症网瘾萝莉.ら 提交于 2019-11-27 00:43:07
I have Tortoise svn installed on my desktop. I want to perform some tasks using commandline svn.exe? But I am not able to find svn.exe on my machine. Do we have to install something else to get the svn.exe commands? Amardeep AC9MF The subversion program code is linked into the TortoiseSVN binary. You can install a compatible discrete version if you need to access the repository from the command line. UPDATE: Recent versions of the TortoiseSVN package can install a discrete svn.exe in addition to the one linked into the GUI binary. It is located in the same bin directory where the main program

Unable to do an SVN dump — Error E720002 and format errors

筅森魡賤 提交于 2019-11-27 00:41:18
问题 I'm new to SVN, so forgive the possible straightforward problem. I'm trying to do an Subversion dump of one of my projects: svnadmin dump C:\code\project1 -r 9 > repo.dmp Unfortunately I'm getting this error: svnadmin: E720002: Can't open file 'project1\format': The system cannot find the file specified. It appears to be looking for the format file which is actually located at project1\.svn\format . This has me puzzled as I'd expect it to look in the .svn subdirectory of project1, but instead

How to get started with svn:externals?

狂风中的少年 提交于 2019-11-27 00:07:40
I'm looking for a succinct and well-written tutorial on using svn:externals. I already know how to use them in a basic way myself, but I want a good article that I can link to when answering questions like this one that come up recently: What to do with multiple projects depending on the same source? I'd do it myself, but I don't use them often enough to want to stick my neck out and write a tutorial on it. Google was surprisingly unhelpful with this topic. Ole Lynge Here are some sections about it in the svnbook / TortoiseSVN manual: This is the svnbook page on svn:externals. It is the most

svn cleanup: sqlite: database disk image is malformed

て烟熏妆下的殇ゞ 提交于 2019-11-26 23:55:42
问题 I was trying to do a svn cleanup because I can't commit the changes in my working copy, and I got the following error: sqllite: database disk image is malformed What can I do right now? 回答1: I had the same problem. The following blog post helped me resolve it: http://www.polak.ro/svn-e200030-sqlite-database-disk-image-is-malformed.html You do an integrity check on the sqlite database that keeps track of the repository (/.svn/wc.db): sqlite3 .svn/wc.db "pragma integrity_check" That should

How do I create a new branch?

北战南征 提交于 2019-11-26 23:49:26
问题 How do I create a new branch with my working copy using TortoiseSVN? I see the branch option, but I don't see a way to name it somehow. 回答1: Branches in SVN are essentially directories; you don't name the branch so much as choose the name of the directory to branch into. The common way of 'naming' a branch is to place it under a directory called branches in your repository. In the "To URL:" portion of TortoiseSVN's Branch dialog, you would therefore enter something like: (svn/http)://path-to

Update Item to Revision vs Revert to Revision

这一生的挚爱 提交于 2019-11-26 23:47:32
问题 I've started to use Subversion with TortoiseSVN. If I open up the log and right click on an old revision I see two options that sound like they roll back to an older version: "Update item to revision" and "Revert to this revision". I understand that updating to an older revision is used when you only want to look back at an old version but not really change the repository. Revert is when you actually screwed up and want the latest revision in the repository to be the same as an older version.

Using TortoiseSVN how do I merge changes from the trunk to a branch and vice versa?

醉酒当歌 提交于 2019-11-26 23:46:28
问题 I've been reading up on branching/merging with Subversion 1.5 using the excellent and free Version Control with Subversion book. I think that I understand how to use the Subversion command line client to perform the actions that I need most often, which are: Update Branch with Changes from Trunk From the branch's working directory run: svn merge http://svn.myurl.com/proj/trunk Merge Branch into Trunk From the trunk's working directory run: svn merge --reintegrate http://svn.myurl.com/proj

How can I delete all unversioned/ignored files/folders in my working copy?

我怕爱的太早我们不能终老 提交于 2019-11-26 23:29:32
If I have a working copy of a Subversion repository, is there a way to delete all unversioned or ignored files in that working copy with a single command or tool? Essentially, I'm looking for the SVN analogue to git clean . Either a command line or GUI solution (for TortoiseSVN) would be acceptable. Stefan Using TortoiseSVN: right-click on working copy folder, while holding the shift-key down choose "delete unversioned items" svn status --no-ignore | grep '^[I?]' | cut -c 9- | while IFS= read -r f; do rm -rf "$f"; done This has the following features: Both ignored and untracked files are

How to use svn+ssh with Tortoise SVN from the command line

那年仲夏 提交于 2019-11-26 23:20:54
问题 I'm having trouble trying to checkout a repo using the following syntax on a Windows 7 workstation with TortoiseSvn: svn co svn+ssh://user@ip/repo . What I've done to test this issue: Modified the network settings of TortoiseSvn to point to ..\TortoisePlink.exe Successfully established an ssh connection to the target machine with no issues Successfully checked out repos from workstations running Ubuntu with OpenSsh When I try to do the above syntax from the command line on the Windows 7