Is 'hotcopy' enough for SVN backups or should I worry about full and incremental dumps?

For my personal stuff I just use the svnadmin hotcopy command once a week but for more mission critical repositories that include many developers, is that enough? Or should I spend the time to put together a more rigorous backup strategy that includes full backups and incremental backups? hotcopy seems like the easiest way to go, but I want to be able to restore a repo if, for some reason, it becomes corrupted. Will just doing a dump via hotcopy allow me to do this?

Svn Delaying or repeating a prerequisite in GNU make

I'm trying to embed my Subversion revision number in a C++ project and am having problems setting up GNU make to do so. My makefile currently looks something like this: check-svnversion: ../shared/ ../shared/svnversion.h: check-svnversion shared/svnversion.o: ../shared/svnversion.h .PHONY: check-svnversion svnversion.o depends on svnversion.cpp (via a pattern rule) and svnversion.h (listed explicitly because dependency checking isn't picking it up for some reason).

Is there a metadata exclusion filter for the SVN DIFF command?

I use SVN as the source control system, and I wonder how to compare directories while ignoring any metadata differences. Is there a way to tell svn diff to compare only the actual content and ignore any metadata? I mean metadata like SVN properties, etc. that don't affect the file content. Assume file X has an additional property in branch B compared to trunk T. Unfortunately it will show up in 'svn diff T B' even though the actual content of file X is the same. I look for something like this

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

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.

Svn how to subversion AutoCAD

I am new to Subversion. I was trying to subversion AutoCAD files for my projects deparment, however it does'nt seem to work. It works fine with docs and xls files etc., Along with 'subversion', i am using Tortoise SVN client. Would appreciate some clear responses for this ? Sams ps - Any suggestions for AutoDesk Vault workgroup ?

When writing Apache module, popen( svn ) fails with termination status 256

I'd like to write an online SVN repository browser. I've decided to implement it as an Apache module, wrapping around the command line client (for the time being). As I'm getting started, I have the following code: FILE *f; f = popen("/usr/local/bin/svn cat http://myrepo/svn/shell.c", "r"); char buf[1025]; if (f) { ap_rputs("open ok\n", r); } else { ap_rputs("not open ok\n", r); } while (fgets(buf, 1024, f) != NULL) { ap_rprintf(r,"%s<br />", buf ); } ap_rprintf(r, "return: %d\n

SVN or SCP creating .tmp files

So we have two automated processes on our build system. The first performs an svn export which exports a project to directory A. The second performs an scp which scps a project from directory A to a different machine. Sometimes, possibly due to a race condition, a situation arises in which a whole bunch of .tmp files are created, almost as if one of the transfers is stuck in a loop. My question is simple, do either of these processes create .tmp files in their execution? I'm trying to figur

How do I search within svn logs

I want to be able to search within the commit logs of svn. I know you can do that on tortoise, but couldn't find a way using the command line. We are moving to a two-tiered repository approach, so that the stable branch will only get stories fully completed and tested. To achieve that, we would need a way to search within the commit messages for the story code (eg:#s1322) and get a list of the revisions to be used in a subsequent merge command. Ex: searchsvnapp http://[repo location root] #s1

Guide to SVN for Web Development

I'm looking for some help in using svn with web development. Here are my questions. I setup SVN on my webserver, but keep my project files on my PC untill I'm ready to "commit" them correct? How do I get the "pushed" files I've sent to the server in my directory such as /home/site/public_html/ .. basically I'd like to "commit - push" files straight to my web directory. Is this possible? I don't really understand the full concepts of how this can work for web development. I have read at least

Using svn to delete multiple directories at once so then I can replace them with new directories of the same name

I find a lot of svn commands out there to delete directories and files. Unfortunately, every time I run these commands, I get strange errors afterwards like 'not under version control' or 'conflict'. I'm just looking for a straightforward svn command that will allow me to delete all the directories under the MARKT directory below so I can then create new directories with the same nanme as the one I deleted, without any conflict arising: [root@Proxima marketing]# cd MARKT [root@Proxima MARKT]# l

Installing svn: error after restarting apache

I've created my repository this way: sudo svnadmin create /svn After restarting apache i get this error: Syntax error on line 16 of /etc/apache2/mods-enabled/dav_svn.conf: DAV not allowed here # dav_svn.conf - Example Subversion/Apache configuration # # For details and further options see the Apache user manual and # the Subversion book. # # NOTE: for a setup with multiple vhosts, you will want to do this # configuration in /etc/apache2/sites-available/*, not here. # <Locatio

Svn Bash script for iterating through defined set of file names and performing commands

I have a set of folders named for example 10, 12, 13, 14, 18, 24 etc. They don't change numbers in any standard increment. I then need to move repetitively into the folders and then into the next one to perform SVN commands which are the same except for some variable extension, e.g.: /home/boy$ cp /home/files/*Session10.* . ; svn add *Session10.*; svn commit; cd ..; cd 12; Then the next command is analogous: /home/boy$ cp /home/files/*Session12.* . ; svn add *Session12.*; svn commit; cd ..;

How to recover lost svn password?

I just finished reading about passwords in "Version Control with Subversion" but could not find the solution for a lost and forgotten password. Is there a way to recover a lost svn password?

SVN not listed in RAD

I have updated SVN in RAD by the following links "". But it is not listed in RAD. Can you help me how to check whether it is installed correctly?

Svn Automatic authentication with Subversion

I have an SVN server I connect to with ssh+svn. When checking out a particular directory containing a lot of svn:external repositories, I have to enter my password numerous times. How do I set up my Subversion client to automatically authenticate? Where is the documentation for this?

Would you migrate from cvs to svn or directly to git or hg?

I don't know if this is the right forum to ask. My company makes use of CVS as a version control system. We plan to move to a more modern version control system. What would you recommend as the least risky solution? My idea is to use Subversion but I also hear a lot of good things about Git and Mercurial However, we are a small company and we don't need a distributed version control system. What advantages do Git or Mercurial have with respect to Subversion, besides the fact that they are dis

VisualSVN Server: post-commit hook failed. SVN: Unable to make name for 'D:\websites\\tempfile

In VisualSVN Server, I am using a post-commit hook to move files from a directory in the Subversion repository to the proper directory on the file system. I am getting the error shown below. Error: post-commit hook failed (exit code 1) with output: svn: Unable to make name for 'D:\websites\\tempfile' I am using TortoiseSVN to commit the files. I am able to do this just fine with other projects, I don't see a file called tempfile in the directory structure of my lo

Svn Subversion - Merging branch into trunk

I created a branch (revision 9002) out of my trunk and have continued to make changes to it for a few weeks. I have also merged the changes from trunk into the branch regularly and without problems, using svn merge -rXXXX:HEAD where XXXX is the revision after the one that my previous merge created. So far so good. I now have to merge the branch into the trunk and am having major difficulties doing so. I've tried following SVN: Merging a Branch into Trunk, but when using svn merge -r9003:head

Svn Dependent projects being built in Hudson -- how to stop this?

I have a use case where I need to run a Hudson build once for a release to trigger a plugin that we don't want run at any other time and which we don't want to place inside the pom (see: Is it possible to replace the entire Repository Url with a parameterized string in Hudson/Jenkins?). Basically, I take the svn release url for the project and execute a build on it. However, it triggers dependent builds. This, despite the fact that the following options are not checked: Build whenever a SNAPS

Svn not able to checkout files

The client has asked me to checkout the file and the path is given as follows: svn+ssh://company/home/svn/payroll What is the command that would extract the file? The following was tried and did not work. svn co http://company/home/svn/payroll/ Nor did this... svn co localhost://company/home/svn/payroll/ For the first command I got the error... svn: Repository moved temporarily to ''; please relocate So I tried the following command. svn co I got

Svn Source code directly in trunk folder or in trunk/subfolder

Finally I am entering the world of revision control! I don't have any previous knowledge of Subversion, but have read most of the book, and I am currently installing Subversion and Trac. We will be two developers working on a PHP web application. My question concerns the directory structure. Common practice seems to be to put the source code directly into trunk. But how do I handle files that isn't a direct part of the application, for instance: Liquibase changelogs if we choose to have revis

SVN Branching; what happens if we delete

We use SVN for source code versioning, we are a small team of three developers and work using the AGILE methodology. Originally our code was put into trunk and various releases have been branched from it. Each release has been client specific but as the code has been improved we've quite often skipped merging back into the trunk and merged from the current release to another customer specific release, rarely merging back into the trunk. The trunk is totally out of date now and we are of a mind

SVN: Revert commit while preserving local changes

So I have a local build file. It shouldn't be in SVN at all, but, it is. (Thanks, previous maintainer!) But changes have been made to the local copy, which only apply to building on the box it's on. I screw up and do a commit that commits this local build file. Now the SVN repo copy has these local changes; this is bad. How can I get back to status quo ante, where the local changes are in the local copy, not in the SVN repo, and a subsequent svn update won't overwrite the local changes?

Svn Pre-pre production repository?

I'm working with a customer that has set up a repository for me to work on. I work on my computer, and then commit. I'd like to know how can I have something like a pre-pre production; that way, I can have someone help me with coding. The commits of my assistant would go to me, and then, after checking, I would commit to the client's repository. Is this possible? And if so, how? The repository uses SVN.

svn commit changes made on an older revision

This ought to be simple, but somehow I can't figure it out: I updated to the next-to-last revision, let's say revision 100 (HEAD is at 101), like this: svn up -r 100. Then I made various changes, and now I want the modified files to be checked in as revision 102 (just so I can get back to 101 if needs be). How do I do that? If I simply do an svn commit I get an "out of date" error. I can't do svn up either to fix the out-of-date problem because I don't want any of the changes in HEAD (101) to c

Can I change or add a property for my release number to the svn repository?

Svn is generating automatic numbers for revisions. RevNo Date Desc 1 2012-01-01 Initial directories are created 2 2012-01-02 Something added 3 2012-03-10 something changed 4 2012-03-18 Ready for Release_1.0 and tags/Release_1.0 is ok 5 2012-03-19 Bug fixed 6 2012-03-18 Release_1.0.1 Can I change the revNo 4 to 1.0 ? Can I add some property which can carry the Release Number like: ReleaseNo RevNo Date Desc 0 1 2012-0

SVN: A file won't update

Is it possible in SVN to run svn update svn diff and get an output from svn diff, without getting any conflicts in the update stage? In particular, I have an empty file in the svn directory. On the server it's a long and complicated file. svn diff-ing shows me that all the lines in this file were erased; however, svn updating changes nothing. What should I do to restore the file and all the other files like it?

Svn opensource free subversion for personal web site

I am building my personal web site and would like to upload and share my code with others through this web site. What i am looking for is a free subversion, where i will only have commit access but the rest users will have download access. The site will not describe one specific project, doing something specific but i.e. examples of tutorials i will write, code which i commonly re-use, small indemendent modules which can be reused, etc. I looked over web, and found too many free subversion r

Change SVN repository URL

My current SVN structure: Path: . URL: svn:// Repository Root: svn:// Repository UUID: ------------------------------------- Revision: 10297 Node Kind: directory Schedule: normal Last Changed Author: ---- Last Changed Rev: 9812 Last Changed Date: 2010-12-20 17:38:48 +0100 (Mon, 20 Dec 2010) But our project (hence the SVN service) will work over instead of ( will be redirected to somewhere e

Viewing SVN log history incrementally?

Is there any tool which shows the SVN Log history of a file in steps and incremenatlly, like I click a button and it shows next version with the new lines added so that I can browse the history of an entire file from start to end through mere button clicks?. I know there are softwares like Tortoise etc which can do a merge diff, but I wanted a more graphical, and interactive GUI based tool which requires less effort.

Deleting the last few revisions: SVN best practice

A fellow student and I are working on a project and we are both new to Subversion. We realized that the last few revisions of our project have some flaws. So we decided to do away with those revisions and start again from the point where those problems were introduced. What's the most appropriate way to do this in SVN? Should we create a new 'branch' from an old version of the project and then continue working on that branch? or should I use something like this? (Using merge to undo changes)

How to copy sources from one branch to another in SVN?

I need to copy the source from a branch myproduct1/mymodule1/tags/AA.BB.CC.DD to myproduct1/mymodule1/branches/DefectXXX. To do this, I ran following SVN command and got the svn: E200007: Cannot mix repository and working copy sources message. C:\Program Files\SlikSvn\bin>svn cp -m 'Defect XXX' http://myserver/svn/myproduct1/mymodule1/tags/AA.BB.CC.DD http://myserver/svn/myproduct1/mymodule1/branches/DefectXXX How can copy the code from one branch to another on the server?

Svn Configure Subversion in Xcode 5 with @ in user name (e-mail address)

I checked out a project from Subversion with Versions. When I opened it in Xcode 5 it recognised the repository and marked files with an M in the navigator as I modified them. If I try to perform any subversion action Xcode complains that it cannot reach the server. The repository's URL is correctly displayed as as we use out e-mail addresses as user name. If I try to add the repo in Xcode's preferences under the "Accounts" tab I have two options:

Branching 2 folders in SVN?

In my organization, SVN trunk is maintained as follow trunk\Documents trunk\Code trunk\Design trunk\ ..3 more folders. I like to create branch for the Code & Design Folder(2 folders). I am able to branch upto sub-folder, but not able to create branch for 2 or more folder. I have two questions: whether this option is supported in SVN? If no, is there any work around to do this? Or we need to change the repo structure?

How to import an unversioned directory in to local repository in smartsvn?

I'm starting to use SmartSVN and I can't import a directory to a local repository. It gives me the error shown in the figure. I have already configured c:\repo as the local directory but I don't know how to choose it in this step in the Import Into Repository dialog. Could anybody tell me then how to select my local repository to import my projects?

Tortoise SVN 'check for modifications` command showing unmodified files

I'm having a problem with Tortoise SVN 'check for modifications' command, which for some reason has started to display a list of all files, including unmodified ones (those with Status 'normal'). How can I reconfigure Tortoise SVN to show only the modified files (those with Status 'modified')?

cannot access svn://localhost on mac

I started my SVN Server on mac using svnserve -d (in deamon mode) but when I access the repositories via svn://localhost or svn://, it does not work. I have setup my repository in /Projects/SVNRepostiries/MyProject I have tried adding full path to the above but still does not work. If I use http://localhost (note the http not svn) it prompts for username and password and it does not accept my svn username and password. What possibly could cause this. I am using Mountain Lion.

Svn Branch from branch, reintegrate merge and mergeinfo

I have a branch A started from trunk and a branch B started from A. Periodically, a merge from trunk to A is made and later a merge from A to B is also performed. When I want to merge A and B to trunk, I think to follow this way: reintegrate merge from B to A reintegrate merge from A to trunk Is it correct? Or can it cause problem to mergeinfo or other problems? What is the best practice in this case?

SVN Operations from ANT Build Tool Not Working for "svn://" protocol

My build.xml code is below <?xml version="1.0"?> <!-- Sample build file used to retrieve svnant's sources --> <project name="svn-test" basedir="." default="checkoutLatest">> <!-- all properties are in --> <property file="" /> <!-- path to the svnant libraries. Usually they will be located in ANT_HOME/lib --> <path id="svnant.classpath"> <fileset dir="${lib.dir}"> <include name="**/

SVN Branch in sync with trunk

I am using SVN and my repository contains a trunk: trunk | |_____A | |_____B | |_____C I also have 2 branches with the same structure as the trunk: branch | |_____DEV | |_____A | |_____B | |_____C | |_____PROD | |_____A | |_____B | |_____C The trunk is used for ongoing development and the branches have the same structure as in the trunk but for different environments (i.e. DEV and PROD). I have a particular

svn tags keep getting modified during merges

I am running an svn client on Windows 7. I use TortoiseSVN, but rely mostly on the command line client. I made my own branch cr0 from the trunk and made some local changes to the files there. When I merged these files back to the trunk using the command svn merge -r2000:3000 local\path1\cr0 local\path2\trunk as expected, the trunk obtained the correct files. Now I am trying to merge some other changes (which did not touch my files) back into cr0 using svn merge -r2000:4000 local\path2\trunk

SVN - cleaning the project

I am working on a big project. After some updates it totally stopped working on my local machine. Maybe I have failed resolving some conflicts or something but I am not able to fix that anymore. This is why I want to get the clean files from the server. First thing I thought about was deleting all files and just update the project. But there is something called "cleanup" will that work the same way? I tried to read about it but honestly I dont understand everything clearly

Windows 10 Upgrdation effects accessing SVN with NTLM

We were on SVN Server 1.7.1 + apache 2.22 & SVN client on 1.67 .. Users are on Windows 7 OS & were able to authenticate SVN with the below settings on NTLM. 1.Security settings ----- > Local Policies ----- > Security Options --- > Lan Manager authentication level - should be set to the option send NTLM and NTLM responses 2.Security settings ----- > Local Policies ----- > Security Options --- > Minimum session security for NTLM SSP based (including secure RPC) clients – both the options

svn - Revert to an old commit on a different branch

I am working on a project which use svn. I checkout the latest version of it in a directory (using svn checkout http://url /path/to/dest). I've done some modification, so I svn add the modified files, and then svn commit the changes. Unfortunately, I did the change on the wrong branch. Right now what I'm trying to do is to svn update to a specific commit in another branch, using svn update -r 1234, and I get the following error message: svn: E160005: Target path '/dev/branches/project' doe

Is there any advance setting in TortoiseSVN to keep the changelist by default

Based on TortoiseSVN documentation for changelist, If you wish to retain the file in its changelist, use the Keep changelists checkbox at the bottom of the commit dialog. I was wondering if there is an existing flag in Tortoise advance settings to check that options automatically. I would like to keep all my created list after every commit, which this option (checkbox) works perfectly. But in case I forgot to check it, I don't want to recreate them again.

  1    2   3   4   5   6  ... 下一页 最后一页 共 72 页