Re: SVN based comments

2008-05-18 Thread keymaster

With TortoiseSVN, there is an easier way to set the keyword properties
for existing files than running the above Python script.

1. TortoiseSVN->properties
2. Add
3. In the property name field, type: svn:keywords
4. In the property value field, type:  LastChangedBy Date Revision Id
Author LastChangedDate
5. Check the "Apply Property Recursively" checkbox
6. Click OK

This recursively applies these keyword properties to all existing
folders and files.

After I did this, then committed, the keyword substitution worked for
all existing files.

Going forward, for all new files, the cake SVN config file you
supplied above should take effect.

Thanks very much for your help, Larry.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: SVN based comments

2008-05-18 Thread Larry E. Masters aka PhpNut
keymaster,
The props are only set on newly added files, to scan your repo and set the
props, you either have to do it by hand or use this file. You must have
python installed for this to work. And your .subversion/config must be
updated with the changes outlined above.

http://svn.collab.net/viewvc/*checkout*/svn/trunk/contrib/client-side/svn_apply_autoprops.py?revision=20787&content-type=text%2Fplain

Hope it helps,

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Sun, May 18, 2008 at 12:31 PM, keymaster <[EMAIL PROTECTED]> wrote:

>
> The subversion.config file can be found by going to TortoiseSVN-
> >Settings, and clicking Edit.
>
> I appended the cake SVN config info from above onto the end of the
> original file, taking care to first comment out the orignal SVN
> [miscellany] and [auto-props] sections, as the cake svn config file
> replaces them.
>
> I put a cake style file header template into one of my code files,
> like this:
>
> /*
>  * @package className
>  * @subpackage   subclassName
>  * @author$Author$
>  * @version   $Revision$
>  * @modifiedby $LastChangedBy$
>  * @lastmodified$LastChangedDate$
>  */
>
> Then I committed.
>
> I checked out a fresh working copy hoping to see the keyword
> substitution take effect, ... alas no substitution took place.
>
> Any ideas?
>
> I remember hearing somewhere that the substitution only takes place
> for newly created files, not existing ones. Is this correct?
> >

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: SVN based comments

2008-05-18 Thread keymaster

The subversion.config file can be found by going to TortoiseSVN-
>Settings, and clicking Edit.

I appended the cake SVN config info from above onto the end of the
original file, taking care to first comment out the orignal SVN
[miscellany] and [auto-props] sections, as the cake svn config file
replaces them.

I put a cake style file header template into one of my code files,
like this:

/*
 * @package className
 * @subpackage   subclassName
 * @author$Author$
 * @version   $Revision$
 * @modifiedby $LastChangedBy$
 * @lastmodified$LastChangedDate$
 */

Then I committed.

I checked out a fresh working copy hoping to see the keyword
substitution take effect, ... alas no substitution took place.

Any ideas?

I remember hearing somewhere that the substitution only takes place
for newly created files, not existing ones. Is this correct?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: SVN based comments

2008-05-18 Thread keymaster

> Add the contents of this file to your $HOME/.subversion/config

Anyone know where to put this with TortoiseSVN on XP ?

With this file, do you still have to set the svn:keywords property?
Do you still have to add the keyword anchor text into each file?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: SVN based comments

2008-04-15 Thread Flipflops

Its great to know that it's so easy. I've been wondering how this is
done but assumed it would be really complicated !

Cheers
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: SVN based comments

2008-04-15 Thread R. Rajesh Jeba Anbiah

On Apr 15, 6:14 pm, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]>
wrote:
> Grab this file, it is the same one we 
> use:https://trac.cakephp.org/browser/whiteboard/misc/svnconfig.txt?format...
   

The bugtraq:url propset isn't there in cake's svn, in case if
you'd want to know.

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: SVN based comments

2008-04-15 Thread Larry E. Masters aka PhpNut
Grab this file, it is the same one we use:
https://trac.cakephp.org/browser/whiteboard/misc/svnconfig.txt?format=raw

Add the contents of this file to your $HOME/.subversion/config

This will also set the proper mime types of the files

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Tue, Apr 15, 2008 at 3:11 AM, Haris <[EMAIL PROTECTED]> wrote:

>
> How can I build SVN based comments that'll fetch SVN details from the
> repository(or .svn files) and append them to the updated files/file.
> This is similar to what CakePHP developers do.
>
>
> /* SVN FILE: $Id: inflections.php 6311 2008-01-02 06:33:52Z phpnut $
> */
>  * @filesource
>  * @version $Revision: 6311 $
>  * @modifiedby  $LastChangedBy: phpnut $
>  * @lastmodified$Date: 2008-01-02 11:33:52 +0500 (Wed, 02 Jan
> 2008) $
>  */
>
> >

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: SVN based comments

2008-04-15 Thread [EMAIL PROTECTED]

It's easy!

just include $Revision$, $Id$, $Date$ etc. You then need to set the
svn property svn:keywords to a space separated list of the variables
to be auto-replaced on the file, Subversion will handle all the
replacements on commit.

see 
http://svnbook.red-bean.com/nightly/en/svn.advanced.props.special.keywords.html
for more info.

Simon
http://www.simonellistonball.com/

On Apr 15, 11:11 am, Haris <[EMAIL PROTECTED]> wrote:
> How can I build SVN based comments that'll fetch SVN details from the
> repository(or .svn files) and append them to the updated files/file.
> This is similar to what CakePHP developers do.
>
> /* SVN FILE: $Id: inflections.php 6311 2008-01-02 06:33:52Z phpnut $
> */
>  * @filesource
>  * @version $Revision: 6311 $
>  * @modifiedby  $LastChangedBy: phpnut $
>  * @lastmodified$Date: 2008-01-02 11:33:52 +0500 (Wed, 02 Jan 2008) $
>  */
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---