Re: svnversion documentation bug in the redbook?
Markus Schaber wrote on Tue, Jan 10, 2012 at 11:16:21 +: Hi, http://svnbook.red-bean.com/en/1.7/svn.ref.svnversion.re.html states: Send this to svnbook-...@red-bean.com please.
files from subversion repo mounted as webDAV, get zeroed out shortly after writing
I have a subversion repo exposed through mod_dav_svn and the option SVNAutoversioning on and am using fusefs with davfs2 to mount the repo on my linux desktop fedora 15. This usually allows webDAV clients to make changes to files without a checkout-edit-commit cycle, and this works well for some subset of the repository for convenience. In this instance I am using subversion for centralized versioning rather than source control. The server intermittently zeroes out the files, either geany/gedit offers a reload (which I have learned is a no-no) and the file reloaded is empty. I thought it might be something to do with gtk temp files, but it is replicable with vi or kate. If I edit a file in vi, here is the example of the success confirmation; mnt/here/bootstrap.d/edited-file 110L, 4077C written and listing confirms that the file has non-zero size; ls -la mnt/here/bootstrap.d/edited-file -rw-r--r-- 1 me me 4.0K Jan 11 07:42 mnt/here/bootstrap.d/edited-file however a couple of seconds later the listing is changed showing the zeroing of the file ls -la mnt/here/bootstrap.d/edited-file -rw-r--r-- 1 me me 0 Jan 11 07:42 mnt/here/bootstrap.d/edited-file/chef-client The svn repo log shows a couple of transactions that are presumably responsible. == svn.limepepper.co.uk-error.log == [Wed Jan 11 01:47:06 2012] [info] [client 87.194.yyy.xxx] Access granted: 'service' MOVE projects:/some/path/in/repo/this-file-gets-zeroed projects:/some/path/in/repo/this-file-gets-zeroed~ [Wed Jan 11 01:47:06 2012] [info] [client 87.194.yyy.xxx] Access granted: 'service' MOVE projects:/some/path/in/repo/this-file-gets-zeroed~ projects:/some/path/in/repo/this-file-gets-zeroed~ [Wed Jan 11 01:47:06 2012] [info] [client 87.194.yyy.xxx] Access granted: 'service' GET projects:/some/path/in/repo [Wed Jan 11 01:47:06 2012] [info] [client 87.194.yyy.xxx] Access granted: 'service' GET projects:/some/path/in/repo [Wed Jan 11 01:47:06 2012] [info] [client 87.194.yyy.xxx] Access granted: 'service' GET projects:/some/path/in/repo [Wed Jan 11 01:47:06 2012] [info] [client 87.194.yyy.xxx] Access granted: 'service' HEAD projects:/some/path/in/repo/this-file-gets-zeroed~ [Wed Jan 11 01:47:07 2012] [info] [client 87.194.yyy.xxx] Access granted: 'service' LOCK projects:/some/path/in/repo/this-file-gets-zeroed == svn_logfile == [11/Jan/2012:01:47:07 -0600] service lock (/some/path/in/repo/this-file-gets-zeroed) == svn.limepepper.co.uk-error.log == [Wed Jan 11 01:47:07 2012] [info] [client 87.194.yyy.xxx] Access granted: 'service' DELETE projects:/some/path/in/repo/this-file-gets-zeroed~ [Wed Jan 11 01:47:07 2012] [info] [client 87.194.yyy.xxx] Access granted: 'service' GET projects:/some/path/in/repo [Wed Jan 11 01:47:19 2012] [info] [client 87.194.yyy.xxx] Access granted: 'service' PUT projects:/some/path/in/repo/this-file-gets-zeroed [Wed Jan 11 01:47:20 2012] [info] [client 87.194.yyy.xxx] Access granted: 'service' UNLOCK projects:/some/path/in/repo/this-file-gets-zeroed == svn_logfile == [11/Jan/2012:01:47:20 -0600] service unlock (/some/path/in/repo/this-file-gets-zeroed) The svn repo DAV is mounted as; http://myserver/pathtorepo on /home/me/mnt/mountedhere type fuse (rw,nosuid,nodev,noexec,relatime,user_id=500,group_id=500,allow_other,max_read=16384) The server details are; # rpm -qa | egrep httpd|mod_|subversion|dav|neon httpd-tools-2.2.17-1.fc14.i686 httpd-2.2.17-1.fc14.i686 mod_auth_mysql-3.0.0-12.fc14.i686 mod_perl-2.0.4-11.fc14.i686 mod_python-3.3.1-14.fc14.i686 httpd-manual-2.2.17-1.fc14.noarch subversion-libs-1.6.17-1.fc14.i686 subversion-1.6.17-1.fc14.i686 mod_dav_svn-1.6.17-1.fc14.i686 neon-0.29.5-1.fc14.i686 mod_ssl-2.2.17-1.fc14.i686 Any suggestions on what might be the problem. (I dont see this setup as a long term development environment, but it is convenient -except when it trashes the config files ... ) Thanks Tom
RE: Setting up domain and work-group-Pl help
-Original Message- From: Michael Diers [mailto:mdi...@elegosoft.com] Sent: 10 January 2012 22:04 To: chandrakanth alahari Cc: users@subversion.apache.org Subject: Re: Setting up domain and work-group-Pl help On 2012-01-10 17:40, chandrakanth alahari wrote: Hello, I am desperately looking for the answer. My company has Domain group and the repository should be made accessible to domain users. [...] Chandu, are you going to host the repositories on Windows? If so, please have a look at VisualSVN Server. The product can handle authentication and authorization using domain group information, and it should be very easy to set up for someone familiar with the Windows platform. http://en.wikipedia.org/wiki/VisualSVN#VisualSVN_Server Note: No repository would be accessed using weblinks. I am pure windows developer. [...] I'm not sure what you mean here. Subversion provides a number of access methods, and choosing http(s) is quite common. http://svnbook.red-bean.com/en/1.7/svn.serverconfig.html http://stackoverflow.com/questions/2140954/which-protocol-svn-or-https -- Michael Diers, elego Software Solutions GmbH, http://www.elego.de I am a pure windoze developer too but still decided to use apache on windows server to host subversion. It was not too difficult to setup (even though I had no experience of apache before), the hardest bit was getting to grips with LDAP so I could use mod_ldap for authentication against our Active Directory forest... VisualSVN does it all for you but I wanted to learn and understand. Don't give up, try it out and learn new stuff! Make sure you read the subversion book at red-bean and the TortoiseSVN help file which is also very good. ~ mark c
Re: How to get all contribs from a specific person?
Some heavy weight alternative may be to index your repository with viewvc (using svndbadmin) and using the query backend of the tool, to find all revisions done by author XXX. regards Torsten smime.p7s Description: S/MIME cryptographic signature
'svnadmin verify' failed after hotcopy with 'svnadmin: E160004: Revision file (r2255) lacks trailing newline'
Hi, My svn backup script calls: - svnadmin hotcopy - svnadmin verify (on the copy) Once (for now) the verify call failed with 'svnadmin: E160004: Revision file (r2255) lacks trailing newline' The copy of the repository is still available and I can reproduce the problem. The subsequent hot copies of the same repository are ok (for now). Is it ok to file this as a hotcopy bug, please? The server is VisualSVN 2.5.2 (Subversion 1.7.2) on WinXP SP3. Thanks, Dmitry
Re: changing DIR structure of SVN dump
Hello Ryan Thank you for your informative reply. I have managed to overcome the initial problem, however I do have a new problem. Basically, this is the current path to my repos: svn list file:///var/svn/repos/hb/trunk/chi I want to change it to conform to the 'standardised' structure. At the moment it is a complete mess. /var/svn/repos/hb has a tonne of obselete files, then you have a trunk within a trunk which is basically a different project and should be in its own directory instead of being a sub directory of an obselete project. So to clean up the structure I have done the following: Ive created a new directory: svn mkdir file:///var/svn/repos/chi and moved the other repos to the new directory: svn move file:///var/svn/repos/hb/trunk/chi file:///var/svn/repos/chi/trunk now I take a dump of the repos which will be taken to the new server svnadmin dump /var/svn/repos/ svn.dump Now I try to filter and extract *only* the chi project (file:///var/svn/repos/chi). svndumpfilter include chi dump dump.filtered Doing this however, gives me the following error: svndumpfilter: Invalid copy source path '/trunk/chi' Help on resolving this issue will be greatly appreciated. Shaaa On 10/01/2012, Ryan Schmidt subversion-20...@ryandesign.com wrote: On Jan 10, 2012, at 08:39, Shaaa wrote: So I am trying to move my repos to a new server. Problem is the old guy did a really strange setup. Basically, in order to access the repos I would have to use the following uri file:///var/svn/repos/mysite/trunk/project1/trunk On the new server I want to change it to file:///var/svn/repos/project1/trunk but I dont want to show the changes in the revs. I have tried the following: svnadmin dump /var/svn/repos mydump svnadminfilter include trunk mydump newdump svnadmin mkdir file:///var/svn/repos/myproject1 svnadmin load /var/svn/repos --parent-dir myproject1 newdump but it gives me the following URI: file:///var/svn/repos/myproject1/trunk/myproject1 You need to distinguish between: 1. the path of the repository on the old server's disk 2. the path of the repository on the new server's disk 3. the url through which the repository is accessed on the old server 4. the url through which the repository is accessed on the new server 5. the path of things inside the repository Hopefully you are not actually accessing repositories via the file:/// protocol over for example a file share, and are instead running an apache server and accessing it over the http:// or https:// protocol, or an svnserve server and accessing it over the svn:// protocol, or have ssh access and are accessing it over the svn+ssh:// protocol. When making any change to your setup, you should change as few things at a time as possible. For example, change the paths within the repository (by doing svn mv, or a dump/filter/load cycle), without changing where the repository is on disk or the URL used to access it. Or, move the repository to a new server, without changing its contents. Though I understand that the new server might have a different disk layout than the old server. So, let's take a look at your situation: svnadmin dump /var/svn/repos mydump This says the repository was on disk at /var/svn/repos. svnadminfilter include trunk mydump newdump There is no command svnadminfilter; perhaps you meant svndumpfilter? Based on the URLs you showed above, the repository doesn't contain a directory trunk; it contains a directory mysite which contains a directory trunk. So the newdump shouldn't contain anything. svnadmin mkdir file:///var/svn/repos/myproject1 There is no such command svnadmin mkdir; did you mean svnadmin create? That would be odd though since you showed earlier that /var/svn/repos is a repository; you don't create repositories inside other repositories. So perhaps you meant svn mkdir instead? svnadmin load /var/svn/repos --parent-dir myproject1 newdump You are loading a new dumpfile into the same old /var/svn/repos repository? There appears to be significant confusion. Some of what I wrote above may be wrong, since it is based on what you said, and we already know two lines of your transcript cannot be correct. Perhaps we should start with: 1. Do you have one repository or multiple repositories? Do you want to change that? 2. What is the path of the repository or repositories on disk? Do you want to change that? 3. What is the path of the items inside the repository? I presume you at least want to change that, to remove the doubled trunk directories. Finally, note that if you really want to dump/filter/load and thus not change the revision numbers, what that means is that you are rewriting the repository's history (i.e. changing the contents of (at least some of) those revisions). As a consequence, you must ensure that you assign the new repository a new UUID, and thus everybody who has a working copy will have to throw it away and check out a new one. Of
Re: possible bug when building a diff of a subset of a comparison between a tag and branch
Le mardi 10 janvier 2012 13:55:52, dcz a écrit : Hello, I already posted this on the tortoise ML (http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061dsMessageId=2906737) and the only answer I got was that this should be reported here. I've been reading you all since a while now, and actually registered on the tortoise ML to post this bug report, so I am aware that this may be (and as far as I can tell really looks like) a pure tortoise bug, but just in case this rings a bell here, I take the risk. Also, since this may be usefull, the SVN server is 1.7.2 using TortoiseSVN 1.7.3, Build 22386 - 64 Bit. Here the original message : I was comparing a tag with trunk, this worked when I asked for the entire diff (~10mo), but got this when I only selected a subset of the files (I just selected all files listed in revision comparison and dropped two directories with their content in the list). Surprisingly, the diff continued to build after I clicked Ok on the error message, the exact same error poped up 6 more times, and the operation continued after I clicked ok again. It resulted in a ~3Mo diff file, which looks incomplete (the last working one was bigger). And even more surprising, I just do not have any D:\Development\ directory on my local win7x64, and the remote SVN is installed on free bsd so I really doubt that this path could come from there. --- Subversion Exception! --- Subversion encountered a serious problem. Please take the time to report this on the Subversion mailing list with as much information as possible about what you were trying to do. But please first search the mailing list archives for the error message to avoid reporting the same problem repeatedly. You can find the mailing list archives at http://subversion.apache.org/mailing-lists.html Subversion reported the following (you can copy the content of this dialog to the clipboard using Ctrl-C): In file 'D:\Development\SVN\Releases\TortoiseSVN-1.7.3\ext\subversion\subversion\libsvn_client\diff.c' line 1651: assertion failed (*target1 *target2) --- OK --- Update : Tortoise participant seems pretty convinced that this is an svn bug (check the link in my previous mail).
Re: changing DIR structure of SVN dump
On Jan 11, 2012, at 07:11, Shaaa wrote: Thank you for your informative reply. I have managed to overcome the initial problem, however I do have a new problem. Basically, this is the current path to my repos: svn list file:///var/svn/repos/hb/trunk/chi I want to change it to conform to the 'standardised' structure. At the moment it is a complete mess. /var/svn/repos/hb has a tonne of obselete files, then you have a trunk within a trunk which is basically a different project and should be in its own directory instead of being a sub directory of an obselete project. So to clean up the structure I have done the following: Ive created a new directory: svn mkdir file:///var/svn/repos/chi and moved the other repos to the new directory: svn move file:///var/svn/repos/hb/trunk/chi file:///var/svn/repos/chi/trunk I think where you're saying repos above you mean project or directory. It still seems that your repository is just /var/svn/repos. now I take a dump of the repos which will be taken to the new server svnadmin dump /var/svn/repos/ svn.dump Now I try to filter and extract *only* the chi project (file:///var/svn/repos/chi). svndumpfilter include chi dump dump.filtered Doing this however, gives me the following error: svndumpfilter: Invalid copy source path '/trunk/chi' You will need to include every path chi was ever known as, not just the path it's at in the HEAD revision.
Re: 'svnadmin verify' failed after hotcopy with 'svnadmin: E160004: Revision file (r2255) lacks trailing newline'
D D wrote on Wed, Jan 11, 2012 at 15:51:32 +0400: Once (for now) the verify call failed with 'svnadmin: E160004: Revision file (r2255) lacks trailing newline' The copy of the repository is still available and I can reproduce the problem. The subsequent hot copies of the same repository are ok (for now). Is it ok to file this as a hotcopy bug, please? No. All 'hotcopy' does is copy the revisions files using the same means cp(1) uses. I'd check the health of your disks or replace them.
path based authorization
Hello All! We use Subversion 1.6.16 on MS Windows Server 2008. We have a set of 22 repositories and use path based authorization for restricting user access. Apache is configured to accept user information via LDAP (MS Active Directory) and also local defined user. For some repositories shall all user get read/write access (* = rw) and for some other repositories shall all but not a group of user shall have access (that group shall not even read). How can I do that? I tried something with the ~ charcter but it doesn't work. Regards Hartmut
Re: changing DIR structure of SVN dump
I think where you're saying repos above you mean project or directory. It still seems tht your repository is just /var/svn/repos. The repos is /var/svn/repos but it has a hb folder, which holds all the obsolete files and that dir holds another dir with the new project. Which two of the below would be ideal method of managing several projects: method 1: /var/svn/repos/project1 /var/svn/repos/project2 /var/svn/repos/project3 method 2: /var/svn/project1 /var/svn/project2 /var/svn/project3 The former are directories/projects within the main repository and in the case of the latter, each project is its own repository On 11/01/2012, Ryan Schmidt subversion-20...@ryandesign.com wrote: On Jan 11, 2012, at 07:11, Shaaa wrote: Thank you for your informative reply. I have managed to overcome the initial problem, however I do have a new problem. Basically, this is the current path to my repos: svn list file:///var/svn/repos/hb/trunk/chi I want to change it to conform to the 'standardised' structure. At the moment it is a complete mess. /var/svn/repos/hb has a tonne of obselete files, then you have a trunk within a trunk which is basically a different project and should be in its own directory instead of being a sub directory of an obselete project. So to clean up the structure I have done the following: Ive created a new directory: svn mkdir file:///var/svn/repos/chi and moved the other repos to the new directory: svn move file:///var/svn/repos/hb/trunk/chi file:///var/svn/repos/chi/trunk I think where you're saying repos above you mean project or directory. It still seems that your repository is just /var/svn/repos. now I take a dump of the repos which will be taken to the new server svnadmin dump /var/svn/repos/ svn.dump Now I try to filter and extract *only* the chi project (file:///var/svn/repos/chi). svndumpfilter include chi dump dump.filtered Doing this however, gives me the following error: svndumpfilter: Invalid copy source path '/trunk/chi' You will need to include every path chi was ever known as, not just the path it's at in the HEAD revision.
E000021 on merge when replacing a symlink with a directory in subversion-1.7.2 on linux.
subversion-1.7.2 gives an error when merging in a feature branch that replaces a symlink with a directory on linux: svn: E21: Can't read file '/home/duncan/svn/co/trunk/symlink': Is a directory I tried using --reintegrate and also the equivalent traditional merge. I have a pretty small formula to reproduce this that I've included below. Please let me know whether I'm doing something wrong, or if I should go ahead and post this to the issue tracker. svnadmin create repo svn co file://$PWD/repo co # Checked out revision 0. svn mkdir co/trunk # A co/trunk svn mkdir co/trunk/directory # A co/trunk/directory ln -s directory co/trunk/symlink svn add co/trunk/symlink # A co/trunk/symlink svn commit co/ -m 'Adding trunk.' # Adding co/trunk # Adding co/trunk/directory # Adding co/trunk/symlink # Transmitting file data . # Committed revision 1. svn cp co/trunk/ co/branch # A co/branch svn commit co/ -m Branching. # Adding co/branch # # Committed revision 2. svn rm co/branch/symlink # D co/branch/symlink svn cp co/branch/directory/ co/branch/symlink # A co/branch/symlink svn commit co/ -m 'Replacing symlink with copy.' # Replacing co/branch/symlink # # Committed revision 3. svn update co/trunk/ # Updating 'co/trunk': # At revision 3. svn merge --reintegrate '^/branch' co/trunk # svn: E21: Can't read file '/home/duncan/svn/co/trunk/symlink': Is a directory
Re: path based authorization
Am Mittwoch, den 11.01.2012, 15:00 + schrieb Schroeder, Hartmut: Hello All! We use Subversion 1.6.16 on MS Windows Server 2008. We have a set of 22 repositories and use path based authorization for restricting user access. Apache is configured to accept user information via LDAP (MS Active Directory) and also local defined user. For some repositories shall all user get read/write access (* = rw) and for some other repositories shall all but not a group of user shall have access (that group shall not even read). How can I do that? I tried something with the ~ charcter but it doesn't work. Try this one, e.g. if the group which should not have access is called mygroup for a path called /path in repository dev: [dev:/path] @dev = rw @readers = r @mygroup = regards smime.p7s Description: S/MIME cryptographic signature
Re: changing DIR structure of SVN dump
On Jan 11, 2012, at 09:07, Shaaa wrote: The repos is /var/svn/repos but it has a hb folder, which holds all the obsolete files and that dir holds another dir with the new project. Which two of the below would be ideal method of managing several projects: method 1: /var/svn/repos/project1 /var/svn/repos/project2 /var/svn/repos/project3 method 2: /var/svn/project1 /var/svn/project2 /var/svn/project3 The former are directories/projects within the main repository and in the case of the latter, each project is its own repository Both organizational methods have advantages and disadvantages. There's lots of discussion on the topic in the mailing list archives over the years.
Re: files from subversion repo mounted as webDAV, get zeroed out shortly after writing
On Wed, Jan 11, 2012 at 2:17 AM, Tom t...@limepepper.co.uk wrote: The server intermittently zeroes out the files, either geany/gedit offers a reload (which I have learned is a no-no) and the file reloaded is empty. I thought it might be something to do with gtk temp files, but it is replicable with vi or kate. I can't help with what is going wrong, but vi will do your edit in a tmp file copy, then truncate and overwrite your original file so as to keep the original owner/modes which you might not be able to reproduce. So the truncate is normal but it should be followed by writing new contents. -- Les Mikesell lesmikes...@gmail.com
Re: files from subversion repo mounted as webDAV, get zeroed out shortly after writing
On Jan 11, 2012, at 02:17, Tom wrote: I have a subversion repo exposed through mod_dav_svn and the option SVNAutoversioning on and am using fusefs with davfs2 to mount the repo on my linux desktop fedora 15. This usually allows webDAV clients to make changes to files without a checkout-edit-commit cycle, and this works well for some subset of the repository for convenience. In this instance I am using subversion for centralized versioning rather than source control. The server intermittently zeroes out the files, either geany/gedit offers a reload (which I have learned is a no-no) and the file reloaded is empty. [snip] Well something zeroes the files. I don't think it's the server. When this happens, is the last good version of the file, before it was zeroed, still in the repository history? I mean: if the file contains A and you save it and all is well (file contains A in the repository), and then you change the file contents to B and save again and then notice the file has been zeroed, does the file in the repository contain B or still A? Different editors probably employ different methods of saving files. Some might write a temporary file, then move it on top of the old file. Some might just zero the original file, then write the new one. Perhaps you would see different behavior (perhaps no failure) if you used a different editor.
Re: changing DIR structure of SVN dump
On Wed, Jan 11, 2012 at 10:00 AM, Ryan Schmidt subversion-20...@ryandesign.com wrote: The repos is /var/svn/repos but it has a hb folder, which holds all the obsolete files and that dir holds another dir with the new project. Which two of the below would be ideal method of managing several projects: method 1: /var/svn/repos/project1 /var/svn/repos/project2 /var/svn/repos/project3 method 2: /var/svn/project1 /var/svn/project2 /var/svn/project3 The former are directories/projects within the main repository and in the case of the latter, each project is its own repository Both organizational methods have advantages and disadvantages. There's lots of discussion on the topic in the mailing list archives over the years. A couple of practical points: You probably want to configure your service (whether svnserve or http) to access a directory where you have the option to create more repositories transparently whether or not you use them initially. Eventually you may need to do maintenance like removing a DVD iso image someone accidentally committed or something that for legal reasons should not be there. The only way to actually remove anything from a repository is to use svnadmin dump on the whole thing. If you have combined many large projects in one repository, this can become very cumbersome due to the time and space requirements. -- Les Mikesell lesmikes...@gmail.com
Re: E000021 on merge when replacing a symlink with a directory in subversion-1.7.2 on linux.
Duncan Exon Smith duncanphilipnor...@gmail.com writes: Please let me know whether I'm doing something wrong, or if I should go ahead and post this to the issue tracker. Yes, please raise an issue. A shorter recipe: svnadmin create repo svn co file://`pwd`/repo wc svn mkdir wc/A ln -s A wc/B svn add wc/B svn ci -mm wc svn rm wc/B svn mkdir wc/B svn ci -mm wc svn up -r1 wc svn merge -c2 wc wc ../src/subversion/svn/util.c:913: (apr_err=21) ../src/subversion/libsvn_client/merge.c:10827: (apr_err=21) ../src/subversion/libsvn_client/merge.c:10791: (apr_err=21) ../src/subversion/libsvn_client/merge.c:10791: (apr_err=21) ../src/subversion/libsvn_client/merge.c:8972: (apr_err=21) ../src/subversion/libsvn_client/merge.c:8591: (apr_err=21) ../src/subversion/libsvn_client/merge.c:5052: (apr_err=21) ../src/subversion/libsvn_client/ra.c:248: (apr_err=21) ../src/subversion/libsvn_client/ra.c:248: (apr_err=21) ../src/subversion/libsvn_repos/reporter.c:1278: (apr_err=21) ../src/subversion/libsvn_repos/reporter.c:1214: (apr_err=21) ../src/subversion/libsvn_repos/reporter.c:902: (apr_err=21) ../src/subversion/libsvn_client/repos_diff.c:619: (apr_err=21) ../src/subversion/libsvn_client/repos_diff.c:511: (apr_err=21) ../src/subversion/libsvn_client/merge.c:2077: (apr_err=21) ../src/subversion/libsvn_client/merge.c:2007: (apr_err=21) ../src/subversion/libsvn_subr/io.c:3081: (apr_err=21) svn: E21: Can't read file '/home/pm/sw/subversion/obj/wc/B': Is a directory -- Philip
Re: E000021 on merge when replacing a symlink with a directory in subversion-1.7.2 on linux.
On 11 January 2012 11:59, Philip Martin philip.mar...@wandisco.com wrote: Duncan Exon Smith duncanphilipnor...@gmail.com writes: Please let me know whether I'm doing something wrong, or if I should go ahead and post this to the issue tracker. Yes, please raise an issue. http://subversion.tigris.org/issues/show_bug.cgi?id=4096
test for whether a file has been checked in?
Is there a subversion command that I can use in a shell or Perl script to test whether a file or directory has been checked in? Steve
switch to ignore files that have not been checked in?
I'm trying to add properties to a bunch of files that have a common file extension, but are not the only files in the directory/directories. I would like to run something like: svn propset svn:needs-lock '*' *.png *.jpg *.vsd The problem is that I have a number of temporary files in the working directory that match the pattern but are not and should not be checked in. The problem with using the convenience of shell patterns is that subversion aborts as soon as it processes a file that is not already checked in. It also aborts even if a file or directory has the svn:ignore property set. I don't know of an easy way to match all the files that match a shell pattern and are also already checked in. (Which would be a clunky workaround for not having the following:) I'd like to use a switch such as: svn --ignore-non-checked-in-files propset svn:needs-lock '*' *.png *.jpg *.vsd Does such a switch already exist? Such a switch would tell subversion commands to silently ignore files and directories that have not been checked in. The opposite already exists. If I run svn add *.png, the svn add command runs, but complains harmlessly if a file has already been checked in. svn add does not halt if it encounters a file that has already been checked in. Thanks for your help, Steve
Re: switch to ignore files that have not been checked in?
On Wed, Jan 11, 2012 at 6:45 PM, Andy Levy andy.l...@gmail.com wrote: On Wed, Jan 11, 2012 at 18:49, Steve Kelem st...@kelem.net wrote: I'm trying to add properties to a bunch of files that have a common file extension, but are not the only files in the directory/directories. I would like to run something like: svn propset svn:needs-lock '*' *.png *.jpg *.vsd The problem is that I have a number of temporary files in the working directory that match the pattern but are not and should not be checked in. The problem with using the convenience of shell patterns is that subversion aborts as soon as it processes a file that is not already checked in. It also aborts even if a file or directory has the svn:ignore property set. I don't know of an easy way to match all the files that match a shell pattern and are also already checked in. (Which would be a clunky workaround for not having the following:) I'd like to use a switch such as: svn --ignore-non-checked-in-files propset svn:needs-lock '*' *.png *.jpg *.vsd Does such a switch already exist? Such a switch would tell subversion commands to silently ignore files and directories that have not been checked in. The opposite already exists. If I run svn add *.png, the svn add command runs, but complains harmlessly if a file has already been checked in. svn add does not halt if it encounters a file that has already been checked in. Try the --force switch. If I'm reading your post/question correctly you may need to (via your own bash script) grep/sed/awk the output of svn status (for M's) and only svn propset the ones matching your pattern.
Help on Subversion Windows Installer
Hi there, I got the resource from this website: http://alagazam.net/ I am hoping that I am writing to David Darj. I am not a new user to svn but it's my first time to compile it. I want to run it on my computer to learn about the algorithms and see what I can do from there. I am strongly interested in contributing something to this community. I have been working on it for 4 days but the compile still fails. I followed the INSTALLATION file with minimum requirement. Later I found this resource win32Svn from David. I tried to use your binary files to make my compile pass. But it still fails. Now I am wondering if you have a VS 2008 project, which is running with proper configuration so I can start from there? I am using VS 2010 on Windows 7. Or could you give me some steps that I can follow to do the compiling? Thanks, Jay
Space Constrain
Dear Expert Our Subversion server is RedHat Linux. We have lot of repositories which is maintaining in Linux server. Each repositories taking huge size in our server. Our Maximum size limit is 100GB, but the size almost reached 98%. We are in trouble when we are using repository in Tortoise SVN. We are getting space constrain issues. For temporary purpose we deleting unused repositories in Server. Even though the size in increasing daily basis. Can anyone suggest me, how to save space. Is that any good way to keep it SVN server without space constrain? Is that any way to compress and reduce the repositories size without any impact? Please advise me with good practice. Your suggestion is more use to me.
Permanent removal
Dear Expert, Our repository size are increasing on daily basis, we were planed and removed unused tags in SVN. But still the size is not increased. And also whatever I have removed all those files are still persist in earlier version. Then there is no use of my removal. Suppose, I would like to do permanent removal in SVN, how can it possible and how to do permanent removal in SVN? If I do permanent removal, how I can take those files in case if it is require for future reference. Please advise me with good practice. Your suggestion is more use to me.
Re: Space Constrain
On 1/11/2012 10:57 PM, sureshkumar nandakumar wrote: Dear Expert Our Subversion server is RedHat Linux. We have lot of repositories which is maintaining in Linux server. Each repositories taking huge size in our server. Our Maximum size limit is 100GB, but the size almost reached 98%. We are in trouble when we are using repository in Tortoise SVN. We are getting space constrain issues. For temporary purpose we deleting unused repositories in Server. Even though the size in increasing daily basis. Can anyone suggest me, how to save space. Is that any good way to keep it SVN server without space constrain? Is that any way to compress and reduce the repositories size without any impact? Please advise me with good practice. Your suggestion is more use to me. What are you storing that is so big? Can you store only the inputs and methods used to generate each version of these large file, rather than the large files themselves? -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com
RE: Permanent removal
Hello, -Original Message- From: sureshkumar nandakumar [mailto:suresh1256...@gmail.com] Sent: 12 January 2012 06:58 Subject: Permanent removal Dear Expert, I'm not an expert, just another user... Our repository size are increasing on daily basis, we were planed and removed unused tags in SVN. Tags are very cheap copies that take hardly any space: http://svnbook.red-bean.com/en/1.7/svn.branchmerge.tags.html But still the size is not increased. And also whatever I have removed all those files are still persist in earlier version. Then there is no use of my removal. Correct. deleteing stuff in subversion does not remove the data, just removes the items from subsequent revisions. That is one of the main features of source code control... Suppose, I would like to do permanent removal in SVN, how can it possible and how to do permanent removal in SVN? You can dump the repository, run it through svndumpfilter and then reload the filtered dump into a new repository. http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.tk.svndumpfilter http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.filtering If I do permanent removal, how I can take those files in case if it is require for future reference. Whilst filtering your dump, also create a different dump file with the stuff you don't want, then you can load it somewhere else in future if you want to. Please advise me with good practice. Your suggestion is more use to me. Personally I chose to go the multiple-repository route from the start, creating new repos under a parent path for all new projects. This makes it a lot easier to move stuff around (so long as the projects are not too intimately related, of course)... I have to say that I do not consider 100GB to be hugh these days (although disk prices have gone up somewhat recently due to the flooding in Thailand) but 1000GB disks are still relativley cheap? Hope that helps, ~ mark c
RE: Help on Subversion Windows Installer
[Note: this list prefers plain text email, not html] -Original Message- From: Jie Long [mailto:may...@gmail.com] Sent: 11 January 2012 23:14 To: users@subversion.apache.org Subject: Help on Subversion Windows Installer Hi there, I got the resource from this website: http://alagazam.net/ I am hoping that I am writing to David Darj. I am not a new user to svn but it's my first time to compile it. I want to run it on my computer to learn about the algorithms and see what I can do from there. I am strongly interested in contributing something to this community. I'm not David but... I have been working on it for 4 days but the compile still fails. I followed the INSTALLATION file with minimum requirement. Later I found this resource win32Svn from David. I tried to use your binary files to make my compile pass. But it still fails. Now I am wondering if you have a VS 2008 project, which is running with proper configuration so I can start from there? I believe that David uses Visual C++ 6 as that is what is used to compile the official apache releases (or it was when I last looked into trying to compile them myself). There are a ton of differences from VC++6 to VS2008+ (I've been porting other code between the two). Have a look at collabnet or wandisco, I'm sure I read one of them uses VS2010. I am using VS 2010 on Windows 7. Or could you give me some steps that I can follow to do the compiling? ~ mark c
Re: Space Constrain
Guten Tag sureshkumar nandakumar, am Donnerstag, 12. Januar 2012 um 07:57 schrieben Sie: We have lot of repositories which is maintaining in Linux server. Each repositories taking huge size in our server. Our Maximum size limit is 100GB, but the size almost reached 98%. We are in trouble when we are using repository in Tortoise SVN. Who enforces space limit and what does it has to do with TortoiseSVN? What is saved in your repository, which files types with which average sizes? Which subversion version are your running as a server and in which format are your current repositories? Is that any good way to keep it SVN server without space constrain? It mainly depends on your hardware. What impact has the increasing size on your users? Do they have to wait forever for any operation? Or what is your real problem with the increasing sizes, just backup problems? Is that any way to compress and reduce the repositories size without any impact? Depending on your current repository format, the repository can be packed and repository sharing can be used, some kind of deduplication which can reduce repository sizes if a lot of comparable or even identical files are checked in. To get maximum benefit of this a complete dump and load cycle of your repository is needed. http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.diskspace Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning E-Mail:thorsten.schoen...@am-soft.de AM-SoFT IT-Systeme http://www.AM-SoFT.de/ Telefon.030-2 1001-310 Fax...05151- 9468- 88 Mobil..0178-8 9468- 04 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hanover HRB 207 694 - Geschäftsführer: Andreas Muchow