Questions
G'day. I'm a noobie trying to program in C. 1. Is svn resolved foo the same as svn resolve --accept working foo ? 2. Someone suggested creating a repository by installing DropBox on every computer and doing: svnadmin create ~/DropBox Does this seem like a workable idea (for those of us who do not know how to set up an svnserver or apache httpd)? 3. Are there any moves to incorporate a keyword such as $GlobalRev$? 4. I've managed to get keyword substitution working. But once it's working, how do I turn it off for that file type? eg Create myfile, containing $Id$ svn add myfile svn propset svn:keywords "Id" myfile svn ci -m "Turn on Id keyword" myfile svn up cat myfile # Id is replaced Now, how do I turn it off? TIA, Richard
Re: Questions
On Jun 13, 2011, at 03:55, Richard Cavell wrote: > 1. Is svn resolved foo the same as svn resolve --accept working foo ? "svn help resolved" says yes: Note: this subcommand does not semantically resolve conflicts or remove conflict markers; it merely removes the conflict-related artifact files and allows PATH to be committed again. It has been deprecated in favor of running 'svn resolve --accept working'. > 2. Someone suggested creating a repository by installing DropBox on every > computer and doing: > > svnadmin create ~/DropBox > > Does this seem like a workable idea (for those of us who do not know how to > set up an svnserver or apache httpd)? I would suggest you not do that. That would allow any user to do anything to your repository (bypassing any security restrictions or hooks you may want to use) -- even delete the entire repository with one or two keystrokes (intentionally or accidentally). Set up svnserve or httpd instead. The book explains how. http://svnbook.org/ > 3. Are there any moves to incorporate a keyword such as $GlobalRev$? Not that I know of. This explains why: http://subversion.apache.org/faq.html#version-value-in-source > 4. I've managed to get keyword substitution working. But once it's working, > how do I turn it off for that file type? eg > > Create myfile, containing $Id$ > svn add myfile > svn propset svn:keywords "Id" myfile > svn ci -m "Turn on Id keyword" myfile > svn up > cat myfile # Id is replaced > > Now, how do I turn it off? svn propdel svn:keywords myfile svn ci -m "Turn off Id keyword" myfile
Re: Questions
Thanks for your reply, but... > 4. I've managed to get keyword substitution working. But once it's working, > how do I turn it off for that file type? eg > > Create myfile, containing > $Id$ > svn add myfile > svn propset svn:keywords "Id" myfile > svn ci -m > "Turn on Id keyword" myfile > svn up > cat myfile # Id is replaced > > Now, > how do I turn it off? > svn propdel svn:keywords myfile > svn ci -m "Turn > off Id keyword" myfile cat myfile gives: $Id: myfile 102 2011-06-13 08:54:02Z richardcav...@mail.com $ How do I get my "$Id$" back? Richard
Using SVN to develop a website
Hi, I need help on a setup for SVN. I want to use SVN to develop a website, in a way that when one of our remote developers commit a change, the files is copied on a specific folder, located on the svn server (like /var/www/site). Is there any page/faq indicating how to do this? I understand that the best way would be to add it at the post-commit hook, but I don't know exactly what to add to the script. Any help would be appreciated. Thanks, Roberto PS: I'm using svn version 1.5.1(r32289), installed from debian packages, on a Debian 5.0 (somewhat old Debian, I know, but for now I need to use this version to make sure there are no compatibility problems between the development, approval and production servers). -- - Marcos Roberto Greiner Os otimistas acham que estamos no melhor dos mundos Os pessimistas tem medo de que isto seja verdade James Branch Cabell -
Re: Using SVN to develop a website
On Mon, Jun 13, 2011 at 10:08, Roberto wrote: > Hi, > > I need help on a setup for SVN. I want to use SVN to develop a website, in a > way that when one of our remote developers commit a change, the files is > copied on a specific folder, located on the svn server (like /var/www/site). > Is there any page/faq indicating how to do this? I understand that the best > way would be to add it at the post-commit hook, but I don't know exactly > what to add to the script. http://subversion.apache.org/faq.html#website-auto-update You could also set up a continuous integration server if your project is more complex than "copy files to the right directory." > PS: I'm using svn version 1.5.1(r32289), installed from debian packages, on > a Debian 5.0 (somewhat old Debian, I know, but for now I need to use this > version to make sure there are no compatibility problems between the > development, approval and production servers). Be advised that there are security fixes included in later 1.5.x releases in addition to the usual bug fixes, and when Subversion 1.7 is released (the first alpha came out a few days ago) support for 1.5.x will end.
Re: SVN Best Practices
The site has very useful information and basically the core part of my document. I do appreciate the posts. Just curious if there is anything else that is normally seen in the industry that wasn't applied to that site. Seeing how this is the SVN user group I would hope that the site is updated, but wanted to verify. Again thank you Andreas and Daniel. I'm rather new to SVN and very happy with the direction it's going and support from the community. On Sat, Jun 11, 2011 at 2:32 PM, Daniel Shahaf wrote: > Andreas Tscharner wrote on Fri, Jun 10, 2011 at 07:34:14 +0200: > > > I'm working on a document that states the industry's best > > > practices for SVN and would appreciate some guidance. Can > > > anyone share or direct me to a good site that has useful > > > information that engineers have discovered while working with > > > SVN? I know I can read the SVN manual and did, but looking > > > for real life experiences. I did a google search for some > > > information but a helping hand to further my research would > > > be appreciated. > > > > Did you see: > http://svn.apache.org/repos/asf/subversion/trunk/doc/user/svn-best-practices.html > > > > Did you check the last modification date of that file? > > > Best regards > > Andreas > > -- > > Andreas Tscharner > > -- > > "Intruder on level one. All Aliens please proceed to level one." > > -- Call in "Alien: Resurrection" > > > > > > CT-Dienstleistungen neu bei Wenzel Metromec > > === > > > > Haben Sie einen Prototyp ohne Zeichnung oder Konstruktionsmodell? > > Suchen Sie in Ihren Bauteilen Materialschäden, Risse und Poren? > > Dann sind unsere neuen Dienstleistungen im Bereich der > Computertomographie die perfekte Lösung für Ihre Anforderungen! > > > > Testen Sie uns und unsere neue WENZEL exaCT Anlage. > > Zögern Sie nicht und nehmen Sie noch heute mit uns Kontakt auf. > > mailto:c...@metromec.ch?subject=CT-Dienstleistungen > > > -- Phillip Montgomery | Motorola Mobility Homes IT Support | Ph: 480-440-1706
Re: Questions
Ryan Schmidt wrote on Mon, Jun 13, 2011 at 04:06:21 -0500: > On Jun 13, 2011, at 03:55, Richard Cavell wrote: > > 2. Someone suggested creating a repository by installing DropBox on every > > computer and doing: > > > > svnadmin create ~/DropBox > > > > Does this seem like a workable idea (for those of us who do not know how to > > set up an svnserver or apache httpd)? > > I would suggest you not do that. This amounts to rsync'ing $REPOS_DIR, which we don't support (and in fact may cause the duplicated copy to be corrupt). > That would allow any user to do anything to your repository (bypassing any > security restrictions or hooks you may want to use) -- even delete the entire > repository with one or two keystrokes (intentionally or accidentally). Set up > svnserve or httpd instead. The book explains how. > > http://svnbook.org/
RE: Index of Subversion add-on projects and products
I checked out the Resourcey web site that Itamar suggested. Couple of issues: 1) The site is still in "beta", and 2) It doesn't seem to be heavily used. There are only 6 attached resources and only 2 of them (TortoiseSVN and AnkhSVN) are project/product add-ons; the other links are to mailing lists, CollabNet, and the Subversion book. I was thinking about starting a community server for Subversion and wanted to see how much interest there would be, or if something already existed, before I started. As for Googling, I was thinking it would be nice to help with the discovery process. It's fine to Google if you know exactly what you're looking for, but what if you don't know exactly what you're looking for and just want to browse around and see what's available. Maybe you'll find something that looks interesting, that you never heard of, and you want to check it out. Google wouldn't help you with that. What do you think? Would people on this mailing list find something like that valuable? Thanks. - Kevin From: Itamar O [mailto:itamar...@gmail.com] Sent: Sunday, June 12, 2011 1:06 AM To: Mark Phippard Cc: Daniel Shahaf; Ryan Schmidt; k...@timpanisoftware.com; users@subversion.apache.org Subject: Re: Index of Subversion add-on projects and products On Sun, Jun 12, 2011 at 12:44 AM, Mark Phippard wrote: I recall there was at least one Wikipedia page that was fairly accurate. Sent from my iPhone On Jun 11, 2011, at 5:34 PM, Daniel Shahaf wrote: > Ryan Schmidt wrote on Fri, Jun 10, 2011 at 18:37:24 -0500: >> >> On Jun 10, 2011, at 17:09, wrote: >> >>> I was wondering if there is some sort of global list of Subversion plug-ins, etc., including both open source projects and commercial products. >>> >>> For example, it would be nice if there was a unified list of all the different svn clients, integrations with build systems, etc. >> >> The Subversion project used to maintain such a list but it became >> unwieldy and was deleted. They now recommend you use Google to find >> such things. > > Or, you know, if someone in the community wants to maintain such a list > themselves, there's no way (or want) for us to stop them from doing so... > > How much does 10KB of web space cost these days again? > >> You can still find the last version of this list in the >> 1.6.x branch but it is gone from trunk: >> >> http://svn.apache.org/repos/asf/subversion/branches/1.6.x/www/links.html >> >> >> >> >> >> This page was supposed to be something of that sort: http://resourcey.com/site_details/17/subversion.apache.org/ Anyone may add and rank resources.
Re: Index of Subversion add-on projects and products
I would find something that you're mentioning and that Ryan sent useful. Would be nice to resurrect the space from the subversion project and have a few people such as yourself maintain it. On Mon, Jun 13, 2011 at 8:23 AM, wrote: > I checked out the Resourcey web site that Itamar suggested. Couple of > issues: 1) The site is still in “beta”, and 2) It doesn’t seem to be heavily > used. There are only 6 attached resources and only 2 of them (TortoiseSVN > and AnkhSVN) are project/product add-ons; the other links are to mailing > lists, CollabNet, and the Subversion book. > > > > I was thinking about starting a community server for Subversion and wanted > to see how much interest there would be, or if something already existed, > before I started. > > > > As for Googling, I was thinking it would be nice to help with the discovery > process. It’s fine to Google if you know exactly what you’re looking for, > but what if you don’t know exactly what you’re looking for and just want to > browse around and see what’s available. Maybe you’ll find something that > looks interesting, that you never heard of, and you want to check it out. > Google wouldn’t help you with that. > > > > What do you think? Would people on this mailing list find something like > that valuable? > > > > Thanks. > > > > - Kevin > > > > *From:* Itamar O [mailto:itamar...@gmail.com] > *Sent:* Sunday, June 12, 2011 1:06 AM > *To:* Mark Phippard > *Cc:* Daniel Shahaf; Ryan Schmidt; k...@timpanisoftware.com; > users@subversion.apache.org > *Subject:* Re: Index of Subversion add-on projects and products > > > > > > On Sun, Jun 12, 2011 at 12:44 AM, Mark Phippard > wrote: > > I recall there was at least one Wikipedia page that was fairly accurate. > > Sent from my iPhone > > > On Jun 11, 2011, at 5:34 PM, Daniel Shahaf wrote: > > > Ryan Schmidt wrote on Fri, Jun 10, 2011 at 18:37:24 -0500: > >> > >> On Jun 10, 2011, at 17:09, < > k...@timpanisoftware.com> wrote: > >> > >>> I was wondering if there is some sort of global list of Subversion > plug-ins, etc., including both open source projects and commercial products. > >>> > >>> For example, it would be nice if there was a unified list of all the > different svn clients, integrations with build systems, etc. > >> > >> The Subversion project used to maintain such a list but it became > >> unwieldy and was deleted. They now recommend you use Google to find > >> such things. > > > > Or, you know, if someone in the community wants to maintain such a list > > themselves, there's no way (or want) for us to stop them from doing so... > > > > How much does 10KB of web space cost these days again? > > > >> You can still find the last version of this list in the > >> 1.6.x branch but it is gone from trunk: > >> > >> > http://svn.apache.org/repos/asf/subversion/branches/1.6.x/www/links.html > >> > >> > >> > >> > >> > >> > > > > This page was supposed to be something of that sort: > http://resourcey.com/site_details/17/subversion.apache.org/ > > Anyone may add and rank resources. > -- Phillip Montgomery | Motorola Mobility Homes IT Support | Ph: 480-440-1706
Re: Index of Subversion add-on projects and products
There is {c,}wiki.apache.org. If the PMC is willing to request a wiki, such a list could be maintained there. (I say "If" because the PMC has to accept the oversight duty. A dev@ thread would be needed to determine that.) Phil Montgomery wrote on Mon, Jun 13, 2011 at 10:13:21 -0700: > I would find something that you're mentioning and that Ryan sent useful. > Would be nice to resurrect the space from the subversion project and have a > few people such as yourself maintain it. > > > On Mon, Jun 13, 2011 at 8:23 AM, wrote: > > > I checked out the Resourcey web site that Itamar suggested. Couple of > > issues: 1) The site is still in “beta”, and 2) It doesn’t seem to be heavily > > used. There are only 6 attached resources and only 2 of them (TortoiseSVN > > and AnkhSVN) are project/product add-ons; the other links are to mailing > > lists, CollabNet, and the Subversion book. > > > > > > > > I was thinking about starting a community server for Subversion and wanted > > to see how much interest there would be, or if something already existed, > > before I started. > > > > > > > > As for Googling, I was thinking it would be nice to help with the discovery > > process. It’s fine to Google if you know exactly what you’re looking for, > > but what if you don’t know exactly what you’re looking for and just want to > > browse around and see what’s available. Maybe you’ll find something that > > looks interesting, that you never heard of, and you want to check it out. > > Google wouldn’t help you with that. > > > > > > > > What do you think? Would people on this mailing list find something like > > that valuable? > > > > > > > > Thanks. > > > > > > > > - Kevin > > > > > > > > *From:* Itamar O [mailto:itamar...@gmail.com] > > *Sent:* Sunday, June 12, 2011 1:06 AM > > *To:* Mark Phippard > > *Cc:* Daniel Shahaf; Ryan Schmidt; k...@timpanisoftware.com; > > users@subversion.apache.org > > *Subject:* Re: Index of Subversion add-on projects and products > > > > > > > > > > > > On Sun, Jun 12, 2011 at 12:44 AM, Mark Phippard > > wrote: > > > > I recall there was at least one Wikipedia page that was fairly accurate. > > > > Sent from my iPhone > > > > > > On Jun 11, 2011, at 5:34 PM, Daniel Shahaf wrote: > > > > > Ryan Schmidt wrote on Fri, Jun 10, 2011 at 18:37:24 -0500: > > >> > > >> On Jun 10, 2011, at 17:09, < > > k...@timpanisoftware.com> wrote: > > >> > > >>> I was wondering if there is some sort of global list of Subversion > > plug-ins, etc., including both open source projects and commercial products. > > >>> > > >>> For example, it would be nice if there was a unified list of all the > > different svn clients, integrations with build systems, etc. > > >> > > >> The Subversion project used to maintain such a list but it became > > >> unwieldy and was deleted. They now recommend you use Google to find > > >> such things. > > > > > > Or, you know, if someone in the community wants to maintain such a list > > > themselves, there's no way (or want) for us to stop them from doing so... > > > > > > How much does 10KB of web space cost these days again? > > > > > >> You can still find the last version of this list in the > > >> 1.6.x branch but it is gone from trunk: > > >> > > >> > > http://svn.apache.org/repos/asf/subversion/branches/1.6.x/www/links.html > > >> > > >> > > >> > > >> > > >> > > >> > > > > > > > > This page was supposed to be something of that sort: > > http://resourcey.com/site_details/17/subversion.apache.org/ > > > > Anyone may add and rank resources. > > > > > > -- > Phillip Montgomery | Motorola Mobility Homes IT Support | Ph: 480-440-1706
Re: Sparse check outs
On Sat, Jun 11, 2011 at 11:35 PM, Daniel Shahaf wrote: > Stuempfig, Thomas wrote on Fri, Jun 10, 2011 at 10:08:23 +: >> We use svn as a document management system. >> In our case we have different Roles in the same Project. We have Roles like >> Project Manager, Business Consultants and Technical Consultants. >> >> Each of them have their own kind of files they are interested in. >> My colleagues would like to sparse check out things based on some Rules like >> "*pptx" in a folder and its sub folders. Would like to ignore specific >> extensions like "*c,*cpp,*txt". Much the same way as the ignore list for non >> versioned files, but just for co. >> >> Did somebody come along such a requirement? >> >> Regards >> Thomas > > There is svn-viewspec.py (somewhere under tools/ in the source tree), > I'm not sure if it can do what you ask for but it might be a starting > point. Also interesting in this context: in svn <= 1.6 one can only make things sparse with directory granularity (i.e. you have to include/exclude entire directories, you cannot do this with individual files). In the upcoming 1.7 version, I believe it will be possible to exclude individual files. I'm not sure this will help you accomplish what you want, but somehow it sounds relevant :-). -- Johan
Re: Index of Subversion add-on projects and products
On Mon, Jun 13, 2011 at 11:23 AM, wrote: > I checked out the Resourcey web site that Itamar suggested. Couple of > issues: 1) The site is still in “beta”, and 2) It doesn’t seem to be heavily > used. There are only 6 attached resources and only 2 of them (TortoiseSVN > and AnkhSVN) are project/product add-ons; the other links are to mailing > lists, CollabNet, and the Subversion book. > > I was thinking about starting a community server for Subversion and wanted > to see how much interest there would be, or if something already existed, > before I started. > > As for Googling, I was thinking it would be nice to help with the discovery > process. It’s fine to Google if you know exactly what you’re looking for, > but what if you don’t know exactly what you’re looking for and just want to > browse around and see what’s available. Maybe you’ll find something that > looks interesting, that you never heard of, and you want to check it out. > Google wouldn’t help you with that. > > What do you think? Would people on this mailing list find something like > that valuable? The wikipedia page for Subversion has some info in it: http://en.wikipedia.org/wiki/Apache_Subversion More importantly, it links to this page that has even more info: http://en.wikipedia.org/wiki/Comparison_of_Subversion_clients Why not just use these pages and possibly even create additional pages on Wikipedia that list the various tools that work with Subversion (assuming we do not want to cram everything on the page devoted to clients)? -- Thanks Mark Phippard http://markphip.blogspot.com/
Re: Questions
On Jun 13, 2011, at 10:00, Daniel Shahaf wrote: > Ryan Schmidt wrote on Mon, Jun 13, 2011 at 04:06:21 -0500: >> On Jun 13, 2011, at 03:55, Richard Cavell wrote: >>> 2. Someone suggested creating a repository by installing DropBox on every >>> computer and doing: >>> >>> svnadmin create ~/DropBox >>> >>> Does this seem like a workable idea (for those of us who do not know how to >>> set up an svnserver or apache httpd)? >> >> I would suggest you not do that. > > This amounts to rsync'ing $REPOS_DIR, which we don't support (and in > fact may cause the duplicated copy to be corrupt). Oh. In that case, definitely don't do that. Great way to get everything out of sync very quickly. I was thinking that it would be more like a SMB or NFS file share, which is what my previous reply was addressing.
Re: Questions
On Jun 13, 2011, at 05:12, Richard Cavell wrote: >>> Now, how do I turn it off? >> > >> svn propdel svn:keywords myfile >> svn ci -m "Turn off Id keyword" myfile >> > > cat myfile gives: > > > $Id: myfile 102 2011-06-13 08:54:02Z richardcav...@mail.com $ > > How do I get my "$Id$" back? You would manually edit the file and put "$Id$" back into it, if that's what you want. If you anticipate needing this often, you could write a script to do so. (But why do you want "$Id$" in your files but not expanded?)
RE: Index of Subversion add-on projects and products
I can see why the Subversion organizers stopped maintaining the list internally. I wonder if there would be any interest in a community server and/or wiki where various projects and vendors could post their information, and a forums server where people could discuss tools individually. I think it would be nice to have all the information in one place instead of having to Google all over for it. -Original Message- From: Ryan Schmidt [mailto:subversion-20...@ryandesign.com] Sent: Friday, June 10, 2011 5:37 PM To: k...@timpanisoftware.com Cc: users@subversion.apache.org Subject: Re: Index of Subversion add-on projects and products On Jun 10, 2011, at 17:09, wrote: > I was wondering if there is some sort of global list of Subversion plug-ins, etc., including both open source projects and commercial products. > > For example, it would be nice if there was a unified list of all the different svn clients, integrations with build systems, etc. The Subversion project used to maintain such a list but it became unwieldy and was deleted. They now recommend you use Google to find such things. You can still find the last version of this list in the 1.6.x branch but it is gone from trunk: http://svn.apache.org/repos/asf/subversion/branches/1.6.x/www/links.html
SVN 1.7.0. alpha source code
Attempting to download SVN 1.7.0. alpha source code from http://apache.mirror.anlx.net/subversion/subversion-1.7.0-alpha1.zip I get this error. Forbidden You don't have permission to access /subversion/subversion-1.7.0-alpha1.zip on this server. -- Apache/2.2.9 (Debian) PHP/5.2.6-5 with Suhosin-Patch Server at apache.mirror.anlx.net Port 80 please help
Re: Questions
Richard Cavell wrote: >[...] > How do I get my "$Id$" back? if there are no local changes to the file, you can just remove the svn:keywords property, delete the file and then perform an update on the wc. That will give you the state of the $Id$ keyword as it was initialy committed. -- Lorenz
Re: Questions
Why remove the Id keyword? Just delete the file (not svn delete, OS level delete) then svn up. On Mon, Jun 13, 2011 at 11:08 PM, Lorenz wrote: > Richard Cavell wrote: > >[...] > > How do I get my "$Id$" back? > > if there are no local changes to the file, you can just remove the > svn:keywords property, delete the file and then perform an update on > the wc. > > That will give you the state of the $Id$ keyword as it was initialy > committed. > -- > > Lorenz > > -- Geoff Hoffman Solutions Architect & LAMP Engineer Website: www.cardinalpath.com Email: ghoff...@cardinalpath.com Office: (480) 285-1622 x313 Mobile: (480) 231-8323