Hello,
Recently, I downloaded revision 5274 of OFBiz. 268 files had the svn:keyword LastChangedRevision in the form $Rev:$ - with the colon, no space and no revision number (rather than the unexpanded $Rev$ or the expanded keyword $Rev: 4555 $). Example: framework\entity\src\org\ofbiz\entity\util\ByteWrapper.java This causes some bizarre problems with some versions of Subversion. I svn exported the OFBiz sources and imported them into our repository as a vendor drop. All the files which had $Rev:$ had the modified status /right after/ checkout from our repository. I described the problem in more detail on the Subversion mailing list: http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=36441 -- Regards/Gruß, Tarlika Elisabeth Schmitz _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
I did a search for a $Rev:$ and replaced with $Rev$, though on commit it didn't expand the keyword... I'm guessing that some SVN flag/ property needs to be changed for these files, does anyone know how to do a bulk change on something like that? -David On Aug 5, 2005, at 9:28 AM, T E Schmitz wrote: > Hello, > > Recently, I downloaded revision 5274 of OFBiz. 268 files had the > svn:keyword LastChangedRevision in the form $Rev:$ - with the > colon, no space and no revision number (rather than the unexpanded > $Rev$ or the expanded keyword $Rev: 4555 $). > Example: framework\entity\src\org\ofbiz\entity\util\ByteWrapper.java > > This causes some bizarre problems with some versions of Subversion. > > I svn exported the OFBiz sources and imported them into our > repository as a vendor drop. All the files which had $Rev:$ had the > modified status /right after/ checkout from our repository. > > I described the problem in more detail on the Subversion mailing list: > http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=36441 > > -- > > > Regards/Gruß, > > Tarlika Elisabeth Schmitz > _______________________________________________ > Users mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/users > _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users smime.p7s (3K) Download Attachment |
This must be the quickest fix ever!
David E. Jones wrote: > > I did a search for a $Rev:$ and replaced with $Rev$, though on commit > it didn't expand the keyword... I'm guessing that some SVN flag/ > property needs to be changed for these files, does anyone know how to either in the Subversion config file (on Unix ~/.subversion/config): * = svn:keywords=LastChangedDate Revision Author or just * = svn:keywords=Revision or svn propset svn:keywords Revision > do a bulk change on something like that? Presuming you are on a Linux box, grep for $Rev:$, produce a file list from that and from that a script that executes svn propset on every file. Maybe not very elegant, but that's how I did it. Apparently svn propset can also be executed directly on the repository. > On Aug 5, 2005, at 9:28 AM, T E Schmitz wrote: > >> Recently, I downloaded revision 5274 of OFBiz. 268 files had the >> svn:keyword LastChangedRevision in the form $Rev:$ - with the colon, >> no space and no revision number (rather than the unexpanded $Rev$ or >> the expanded keyword $Rev: 4555 $). >> Example: framework\entity\src\org\ofbiz\entity\util\ByteWrapper.java >> >> This causes some bizarre problems with some versions of Subversion. >> >> I svn exported the OFBiz sources and imported them into our >> repository as a vendor drop. All the files which had $Rev:$ had the >> modified status /right after/ checkout from our repository. >> >> I described the problem in more detail on the Subversion mailing list: >> http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=36441 _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
Thanks Tarlika, I've set the svn:keywords property for pretty much everything now. On committing those it looked like the keywords were expanding, so I think we're good. For all committers: I have updated the SVN config file (in ofbiz/ website/svn/config) which should be put (or updated) in the .subervsion directory under your home directory. -David On Aug 5, 2005, at 11:23 AM, T E Schmitz wrote: > This must be the quickest fix ever! > > > David E. Jones wrote: > >> I did a search for a $Rev:$ and replaced with $Rev$, though on >> commit it didn't expand the keyword... I'm guessing that some SVN >> flag/ property needs to be changed for these files, does anyone >> know how to >> > > either in the Subversion config file (on Unix ~/.subversion/config): > * = svn:keywords=LastChangedDate Revision Author > or just > * = svn:keywords=Revision > > > or > > svn propset svn:keywords Revision > > >> do a bulk change on something like that? >> > > Presuming you are on a Linux box, grep for $Rev:$, produce a file > list from that and from that a script that executes svn propset on > every file. Maybe not very elegant, but that's how I did it. > > Apparently svn propset can also be executed directly on the > repository. > > > >> On Aug 5, 2005, at 9:28 AM, T E Schmitz wrote: >> >>> Recently, I downloaded revision 5274 of OFBiz. 268 files had the >>> svn:keyword LastChangedRevision in the form $Rev:$ - with the >>> colon, no space and no revision number (rather than the >>> unexpanded $Rev$ or the expanded keyword $Rev: 4555 $). >>> Example: framework\entity\src\org\ofbiz\entity\util\ByteWrapper.java >>> >>> This causes some bizarre problems with some versions of Subversion. >>> >>> I svn exported the OFBiz sources and imported them into our >>> repository as a vendor drop. All the files which had $Rev:$ had >>> the modified status /right after/ checkout from our repository. >>> >>> I described the problem in more detail on the Subversion mailing >>> list: >>> http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=36441 >>> > _______________________________________________ > Users mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/users > _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users smime.p7s (3K) Download Attachment |
In reply to this post by T E Schmitz
Hello David,
T E Schmitz wrote: > David E. Jones wrote: > >> >> I did a search for a $Rev:$ and replaced with $Rev$, though on commit >> it didn't expand the keyword... I'm guessing that some SVN flag/ >> property needs to be changed for these files, does anyone know how to > > > either in the Subversion config file (on Unix ~/.subversion/config): > * = svn:keywords=LastChangedDate Revision Author > or just > * = svn:keywords=Revision > Just be aware of one pitfall - i just made that stupid mistake myself: DO NOT enable keyword expansion on all files as I did above (* = svn:keywords=Revision), just on text files!!!! svn:keyword allows Subversion to change the file if it finds keyword placeholders in it. When I checked out OFBiz from my repository the build failed because the worldpay jar had got "corrupted" upon import and was no longer a valid archive. As I know now that was my own stupid fault trying to save myself spelling out dozens of extensions. -- Regards/Gruß, Tarlika Elisabeth Schmitz _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
Free forum by Nabble | Edit this page |