Re: Query regarding complete backup of a repository with revision history.
On Nov 8, 2010, at 01:50, Rajnish Kumar Singh wrote: I have to copy the entire repository to a new server with revision history. According to my knowledge there are 2 ways: 1) We can use svnadmin dump command to create the dump and again reload it by svnadmin load. Yes, this is a good method that many people use. Note that there are several possibilities, from dumping the entire repository, to just dumping selected revisions, and either dumping each revision's contents in its entirety or incrementally using deltas. 2) Or else can I copy the entire repository from the SVN server( located at D:\repositories\OR1221) and save it on other location. And after sometime if I want the repository again then I will place it back to the SVN server. So will it give the same results (i.e with complete revision). Instead of copying the repository manually, you should use svnadmin hotcopy; it will do so in the correct order that will yield a consistent valid repository. A third option is to use svnsync. svnsync and using dump and load will not copy the repository configuration files or hook scripts or preserve locks. I believe a hotcopy will preserve those. You may want to test all three methods to see which is right for you.
Re: Use of kdiff3
I use the svndiffwrapper[1] script to use SVN cli in combination with kdiff3. Save the script to ~/bin/ and make it executable. (And make sure ~/bin is on the path) Then change ~/.subversion/config to include the lines: # diff3-has-program-arg = [true | false] diff-cmd = svndiffwrapper diff3-cmd = svndiffwrapper Then it will use the script to execute kdiff3. [1] http://www.yolinux.com/TUTORIALS/src/svndiffwrapper.txt Hth, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Mon, Nov 8, 2010 at 12:52 PM, Giulio Troccoli giulio.trocc...@uk.linedata.com wrote: Lots of people here use either TortoiseMerge or WinMerge for conflict resolution. But now I have a requirement to provide something similar for a Linux platform and I thought of kdiff3. I there anyone else that uses as well? I have install it but I would like some advice on how to call it. I know it can take two or three files, but I'm not sure why (i.e. what's the difference) and which files to feed it with and in what order. Thanks Giulio Linedata Limited Registered Office: 85 Gracechurch St., London, EC3V 0AA Registered in England and Wales No 3475006 VAT Reg No 710 3140 03
Problem with running minimal_client.c built in Visual C++ 2008 EE
Hi all. I’m trying to build simple client application in Visual C++ 2008 EE. I get code from minimal_client.c, libraries from svn-win32-1.6.6.zip. I set up include path, library path, and in “Additional dependencies” I set up the following: libapr-1.lib libsvn_subr-1.lib libsvn_client-1.lib libsvn_fs-1.lib Also I copy DLL files into Debug and Release folder in my project. Application builds successfully, but when I start it, it crashes. In debug mode I can see that it crashes on calling svn_cmdline_init and in output are the following information: First-chance exception at 0x7c91b21a in SvnTest.exe: 0xC005: Access violation writing location 0x0010. Unhandled exception at 0x7c91b21a in SvnTest.exe: 0xC005: Access violation writing location 0x0010. Thanks in advance for any suggestions what I’m doing wrong. Best regards
Re: Use of kdiff3
On Monday 08 Nov 2010, Giulio Troccoli wrote: Lots of people here use either TortoiseMerge or WinMerge for conflict resolution. But now I have a requirement to provide something similar for a Linux platform and I thought of kdiff3. I there anyone else that uses as well? I have install it but I would like some advice on how to call it. I know it can take two or three files, but I'm not sure why (i.e. what's the difference) and which files to feed it with and in what order. Thanks Giulio I've used it from the command line but found I had to fiddle with the file options a bit to get them in the right order for a 3 way diff. I recall having to explicitly set the merge output file but that may be because I messed with the order of files. I also use kdiff3 from Kate as an external tool and bound to shift+F12 so I can diff the current file in a quick and easy way. The following is the script. cd %directory if [ -e .svn/text-base/%filename.svn-base ]; then tmpfile=/tmp/svndiff-$$.tmp svn cat %filename $tmpfile kdiff3 --L1 '%filename base' $tmpfile %filename rm $tmpfile else kdialog --title Error --msgbox The file '%filename' is not in Subversion. fi Not sure if you still need this but for completeness and the list archives. Two files is usually used to compare current changes against the base revision, ie. what have I changed. A three file comparison is for conflict resolution where another developer has committed a newer version of the file than you are working from and will allow you to easily merge the changes in as you can your changes and the other developers changes at the same time. It's better to think of it like this, the left file is the original version of the file before any changes are made. The right file is the updated file in version control and the middle file has your changes but needs to include those from the right. -- __ Sword Ciboodle is the trading name of ciboodle Limited (a company registered in Scotland with registered number SC143434 and whose registered office is at India of Inchinnan, Renfrewshire, UK, PA4 9LH) which is part of the Sword Group of companies. This email (and any attachments) is intended for the named recipient(s) and is private and confidential. If it is not for you, please inform us and then delete it. If you are not the intended recipient(s), the use, disclosure, copying or distribution of any information contained within this email is prohibited. Messages to and from us may be monitored. If the content is not about the business of the Sword Group then the message is neither from nor sanctioned by us. Internet communications are not secure. You should scan this message and any attachments for viruses. Under no circumstances do we accept liability for any loss or damage which may result from your receipt of this email or any attachment. __
RE: Promoting a mirror repository as a source repository
-Original Message- From: Giulio Troccoli [mailto:giulio.trocc...@uk.linedata.com] Sent: 8. november 2010 12:13 To: Engebakken Geir; 'Gingko'; 'Subversion User List' Subject: RE: Promoting a mirror repository as a source repository -Original Message- From: Engebakken Geir [mailto:geir.engebak...@edb.com] Sent: 08 November 2010 11:08 To: Giulio Troccoli; 'Gingko'; 'Subversion User List' Subject: RE: Promoting a mirror repository as a source repository Sounds great, but I have the notion that the UUID must be identical for the two repositories for this to work, how do you achieve that? Is this done by svnsync? Or isn't this necessary at all? Please do not top-post. My reply at the bottom. Geir Note : All inquiries regarding Subversion, MKS and general Development servers should be directed to EDB SourceControl System -Original Message- From: Giulio Troccoli [mailto:giulio.trocc...@uk.linedata.com] Sent: 8. november 2010 10:14 To: 'Gingko'; 'Subversion User List' Subject: RE: Promoting a mirror repository as a source repository Linedata Limited Registered Office: 85 Gracechurch St., London, EC3V 0AA Registered in England and Wales No 3475006 VAT Reg No 710 3140 03 -Original Message- From: Gingko [mailto:from_tig...@nospam.homelinux.org] Sent: 05 November 2010 23:50 To: Subversion User List Subject: Promoting a mirror repository as a source repository Hello again, I have a (now theoretical) question : Suppose I have a repository that is a mirror repository of a remote source repository, regularly synced using svnsync. Suppose now that the source repository become broken or deleted for any reason (server breakdown, fire, etc) So the only available copy of the repository is now the synced mirror repository. How could I promote my mirror repository in order to have it becoming the new source repository on the mirror server or on another server ? (I think that just using the mirror repository without change is not enough as it contains somewhere inside it information about the old source repository, given at the beginning by svnsync initialize, which would certainly need to be removed) Hi, We use svnsync to keep our DR repositories ready, and the procedure I have to switch to these repositories is something like the following (for each repository): - delete the svn:sync-* revision property for revision 0 - modify the hooks and/or access file to allow read-write access for all normal users - change the DNS for the URL of the production server to point to the DR server Hope this helps Giulio That's true, the UUID must be identical. Svnsync does not do that. I did it when I set up the repository, before even issuing the svnsync init. I just grabbed the UUID from the production repository, then create the DR repository, set it's UUID as the same as the production repository, issue svnsync init and start synchronising. FYI Just found out that from Svn 1.5 on, one can use this command to set the uuid, so that makes it possible to easily switch to a synced repository: svnadmin setuuid
restored deleted data on subversion
Hello, Our subversion (1.4.3-r23084 on windows 2003) was holding around 1.6 TB of data and one user has accidentally deleted a directory of 1 TB. I have done a svn export from the previous version and have the data. Do I have to add and again commit this data ? Will it use up 1 TB of disk space on the svn server ? Is there any way i can restore the data from the previous version without using up 1 TB of disk space ? Thanks in advance. wrodrigues
Re: Svn externals question
On Mon, Nov 08, 2010 at 10:24:03AM -, Hutchinson, Steve (UK) wrote: Do it the other way: Store your component configuration in a versioned file or even a database, and write a script to configure svn:externals properties based on that data. Maybe even add an automated check into the mix that makes sure the svn:externals in the repository's HEAD revision are in sync with your primary externals configuration source. I think unfortunately this is where you lose me :) I am not too sure why this is too different from the other way. In both situations I end up with a set of project folders with svn:externals on them. but the latter I say have one top level externals.lst and associated script file that is used to apply them. Probably a reflection of my knowledge level but not clear where the gain has come from ? It depends on what you need to do with information about your modules. It also depends on scale. If svn propget -R output is sufficient and fast enough for you, then you don't need a separate database of externals information. In this case you simply haven't scaled up your usage of externals to the point where propget -R becomes inhibiting. E.g. if you need tool support to configure and compose your modules or variants because you have a lot of them (say, various kinds of embedded devices built from common parts), having the configuration data in svn properties means that an application has to crawl the repository to figure out which components are used where. Also consider that you need might to crawl more than one revision to find an answer you're looking for. A database can instantly tell you things like this component is no longer used, and was last used in devices A, B and C. if fed a proper query. If such information is hidden in externals in past revisions, you're putting unnecessary load on your Subversion server by trying to track down the right properties. Stefan
Re: Update and Status in large working copy causes Windows to hang
On Fri, Sep 10, 2010 at 08:14:24AM +, ullrich.j...@elektrobit.com wrote: TortoiseSVN works on both machines. (1.6.8, svn libs 1.6.11) Command line svn client creates the issue on machine B, not on machine A. Version of the command line client: 1.6.12, was also tested with 1.6.1 The compiled command line binary was downloaded from http://alagazam.net/ Have you tried to reproduce the issue with command line clients provided by other vendors? See http://subversion.apache.org/packages.html#windows Please also try with version 1.6.13, if possible. Thanks, Stefan
Re: restored deleted data on subversion
On Nov 8, 2010, at 09:20, wrodrigues201 wrote: Our subversion (1.4.3-r23084 on windows 2003) was holding around 1.6 TB of data and one user has accidentally deleted a directory of 1 TB. I have done a svn export from the previous version and have the data. Do I have to add and again commit this data ? Will it use up 1 TB of disk space on the svn server ? Is there any way i can restore the data from the previous version without using up 1 TB of disk space ? You may want to review the sections of the book dealing with Undoing Changes and Resurrecting Deleted Items, starting here: http://svnbook.red-bean.com/nightly/en/svn.branchmerge.basicmerging.html#svn.branchmerge.basicmerging.undo If done correctly, this should not end up taking a lot of space in the repository. You may also want to upgrade to the current version of Subversion, 1.6.13; Subversion 1.4.x and earlier aren't supported anymore.
RE: Svn externals question
Stefan, Your point well understood now. Thanks for the clarification, appreciated. Steve H -Original Message- From: Stefan Sperling [mailto:s...@elego.de] Sent: 08 November 2010 17:01 To: Hutchinson, Steve (UK) Cc: users@subversion.apache.org Subject: Re: Svn externals question SPECIAL MBDA ALERT - SECURITY INCREASED FOR WEEK COMMENCING 08/11/10 PLEASE TAKE EXTRA CARE NOT TO CLICK ON HYPERLINKS WHERE YOU DO NOT KNOW THE SENDER ANY SUSPICIOUS EMAIL, PLEASE FORWARD TO ftn.VIRUS CONTROL *** WARNING *** This mail has originated outside your organization, either from an external partner or the Global Internet. Keep this in mind if you answer this message. On Mon, Nov 08, 2010 at 10:24:03AM -, Hutchinson, Steve (UK) wrote: Do it the other way: Store your component configuration in a versioned file or even a database, and write a script to configure svn:externals properties based on that data. Maybe even add an automated check into the mix that makes sure the svn:externals in the repository's HEAD revision are in sync with your primary externals configuration source. I think unfortunately this is where you lose me :) I am not too sure why this is too different from the other way. In both situations I end up with a set of project folders with svn:externals on them. but the latter I say have one top level externals.lst and associated script file that is used to apply them. Probably a reflection of my knowledge level but not clear where the gain has come from ? It depends on what you need to do with information about your modules. It also depends on scale. If svn propget -R output is sufficient and fast enough for you, then you don't need a separate database of externals information. In this case you simply haven't scaled up your usage of externals to the point where propget -R becomes inhibiting. E.g. if you need tool support to configure and compose your modules or variants because you have a lot of them (say, various kinds of embedded devices built from common parts), having the configuration data in svn properties means that an application has to crawl the repository to figure out which components are used where. Also consider that you need might to crawl more than one revision to find an answer you're looking for. A database can instantly tell you things like this component is no longer used, and was last used in devices A, B and C. if fed a proper query. If such information is hidden in externals in past revisions, you're putting unnecessary load on your Subversion server by trying to track down the right properties. Stefan This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. MBDA UK Limited, a company registered in England and Wales, registration number 3144919 whose registered office is at Six Hills Way, Stevenage, Hertfordshire, SG1 2DA, England. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: Inaccurate Updated to revision when updating multiple targets
On Nov 3, 2010, at 08:16, Daniel Shahaf wrote: Bottom line: agreed that there is a bug here. If you (or anyone else) wants to file an issue or send a patch for that, go ahead. :-) No patch, but I filed an issue: http://subversion.tigris.org/issues/show_bug.cgi?id=3746
Re: Use of kdiff3
Mon, 8 Nov 2010 11:52:27 +, /Giulio Troccoli/: Lots of people here use either TortoiseMerge or WinMerge for conflict resolution. But now I have a requirement to provide something similar for a Linux platform and I thought of kdiff3. I there anyone else that uses as well? I have install it but I would like some advice on how to call it. I know it can take two or three files, but I'm not sure why (i.e. what's the difference) and which files to feed it with and in what order. I use KDiff3 to resolve conflicts in conjunction with the command-line svn client on Windows (it works really well), by specifying a batch (shell) script to the 'merge-tool-cmd' option in the config file: http://svnbook.red-bean.com/nightly/en/svn.advanced.confarea.html#svn.advanced.confarea.opts.config The script takes care to launch KDiff3 with the appropriate arguments which are made available to this wrapper script in some predefined order. See also: Using External Differencing and Merge Tools http://svnbook.red-bean.com/nightly/en/svn.advanced.externaldifftools.html Resolving conflict differences interactively http://svnbook.red-bean.com/nightly/en/svn.tour.cycle.html#svn.tour.cycle.resolve.resolve: To use a merge tool, you need to either set the SVN_MERGE environment variable or define the merge-tool-cmd option in your Subversion configuration file (see the section called “Configuration Options” for more details). Subversion will pass four arguments to the merge tool: the BASE revision of the file, the revision of the file received from the server as part of the update, the copy of the file containing your local edits, and the merged copy of the file (which contains conflict markers). If your merge tool is expecting arguments in a different order or format, you'll need to write a wrapper script for Subversion to invoke. -- Stanimir
Unable to access Excel 2007 - Missing of jars
Hi, I am working in a project, which requires to access the Excel 2007 spreadsheet, for that I do not know which jars to be downloaded, some how i have managed right now by downloading some builds which throws error as Exception in thread main java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/AutoFilter Kindly help me to access Excel 2007 for my Java project. Thanks Regards, Udaya C
Re: Unable to access Excel 2007 - Missing of jars
On Tue, Nov 9, 2010 at 11:24 AM, Udaya Chinnathambi uchin...@in.ibm.comwrote: Hi, I am working in a project, which requires to access the Excel 2007 spreadsheet, for that I do not know which jars to be downloaded, some how i have managed right now by downloading some builds which throws error as Exception in thread main java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/AutoFilter Kindly help me to access Excel 2007 for my Java project. Please consult POI mailing list, this is subversion mailing and people here might not be able to help much in regards of POI. Thanks Regards, Udaya C -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet