svn

Svn log - svn: '.' is not a working copy

荒凉一梦 提交于 2019-12-22 04:42:15
问题 I'm getting "svn: '.' is not a working copy" when i use the svn log command. I know that i need a working copy for the log command to work but can this be done directly on a repository? My goal is to display the information (change history) of a repository. I think updating the working copy whenever i need the log information is not a good solution. Is there an alternative solution to this or updating a working copy every time i need to log is the only way to go? Thanks in advance. 回答1: Try

Jenkins svn commit post-build

别等时光非礼了梦想. 提交于 2019-12-22 04:36:13
问题 I'm trying to make a post-build commit in Jenkins CI when it's succeeded. Is there a way to make this? My problem is that when i build it generates some dll's in the workspace that i need to commit to the svn. 回答1: It depends on the build technology (e.g. Ant, Maven, MSBuild or FianlBuilder) you use for building your source code. To check-in your build results into your svn, you should add some new steps at the end of your build scripts. This step will simply add your build results to svn.

How can I use gvim for svn commit messages under Windows?

拈花ヽ惹草 提交于 2019-12-22 04:31:14
问题 Under *nix I can set SVN_EDITOR to gvim --nofork to do the trick, but that doesn't seem to work under Windows. Is there any solution for that? 回答1: If you have installed the batch files (c:\windows\gvim.bat), just set EDITOR to gvim -f , the batch file processes the -f argument and sets the no-fork option. The trick in the batch file is running START /WAIT path\to\gvim.exe %* (see the /WAIT argument). If you don't have the batch files, just create a new one with the command above, and set

How can I use gvim for svn commit messages under Windows?

时光毁灭记忆、已成空白 提交于 2019-12-22 04:31:07
问题 Under *nix I can set SVN_EDITOR to gvim --nofork to do the trick, but that doesn't seem to work under Windows. Is there any solution for that? 回答1: If you have installed the batch files (c:\windows\gvim.bat), just set EDITOR to gvim -f , the batch file processes the -f argument and sets the no-fork option. The trick in the batch file is running START /WAIT path\to\gvim.exe %* (see the /WAIT argument). If you don't have the batch files, just create a new one with the command above, and set

How do we keep track of our working copy's branch?

一世执手 提交于 2019-12-22 04:24:10
问题 Are there any good techniques to help us know which branch (or trunk) our working copy is from? We recently converted to Subversion and we're using release branches. I had two developers commit changes to the release branch that should have been committed to the trunk. We're using CI (TeamCity), so I recognized the problem right away and was able to revert the changes but I'd like to prevent it from happening again. From within Visual Studio, especially, it's easy to make a mistake and commit

SVN merge reintegrate missing ranges but nothing to merge

感情迁移 提交于 2019-12-22 04:22:09
问题 Here is the riddle: C:\code\trunk> svn merge --reintegrate http://svn.e.com/repos/branches/lih --accept postpone --dry-run svn: E195016: Reintegrate can only be used if revisions 11430 through 12384 were previously merged from http://svn.e.com/repos/trunk to the reintegrate source, but this is not the case: branches/lih Missing ranges: /trunk:11902 But then if I go into the branch's directory and try to merge that range, there is nothing to merge! C:\code\branches\branch> svn merge -r 11901

How do I do an exclusive checkout in SVN?

╄→尐↘猪︶ㄣ 提交于 2019-12-22 04:19:09
问题 I'm looking for a way to make an exclusive checkout from SVN. Is there a way to automatically lock a file when it's being checked out ? If one user makes an exclusive checkout, and then another user makes a checkout to the same file, how do I generate some sort of notification or an instant message to the 2nd user that the file is locked? 回答1: If I understand your follow-up posts, what I think you really want is to make sure that people know about locks. I'm imagining a case where users A and

Incompatible JavaHl library loaded

江枫思渺然 提交于 2019-12-22 04:06:02
问题 I'm having a problem with Subclipse and the JavaHL library. Subclipse it gives the error: Incompatible JavaHL library loaded. 1.8.x or later required. I am using Ubuntu desktop 12.04 32 bit. 回答1: Subclipse 1.10.x requires SVN 1.8.x libraries. This Wiki page explains it. http://subclipse.tigris.org/wiki/JavaHL I think Ubuntu 12.04 comes with SVN 1.6.x. So you probably want Subclipse 1.8.x and SVNKit, or else get Subversion and JavaHL from someone other than Ubuntu. See here: http://subversion

How to get the SVN revision number in certain Date or date range

前提是你 提交于 2019-12-22 04:05:01
问题 How can I get the revision number of a branch on certain date. I have tried : svn checkout -r {2006-02-17} but can't get any output. 回答1: svn co -r {2011-11-28} svn://location/of/my/repository/branch works for me. May be you are missing URL. however if I try to checkout a revision of a time when repo did not exist, I get svn co -r {2006-11-28} svn://location/of/my/repository/branch svn: Unable to find repository location for 'svn://location/of/my/repository/branch' in revision 0 Update After

How can I change the svn diff patch number of context lines?

可紊 提交于 2019-12-22 04:04:02
问题 What I'm exactly looking for is: using svn diff , how to print more lines above and below the new code which is being added? By default it will print some lines which are unchanged (both below/above the new code which is changed). Is there any way to do it? 回答1: If you are on linux, tell your diff tool how many lines to include into result, for example 10: svn diff --diff-cmd=diff -x -U10 来源: https://stackoverflow.com/questions/31291513/how-can-i-change-the-svn-diff-patch-number-of-context