Child pages
  • Automatic SVN property adding in TortoiseSVN
Skip to end of metadata
Go to start of metadata

Imported From: http://groups.google.com/group/in-portal-dev/browse_thread/thread/b534f9af77d32d03#

I've found a way to automatically add "svn:keywords" property to an "*.php" files being added (we are forgetting to do this most of the time): http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-propertypage.html#tsvn-dug-propertypage-tsvn-props. How about we use "*tsvn:autoprops*" property to do it for us.

Related Tasks

INP-827 - Getting issue details... STATUS

10 Comments

  1. Very nice discovery, Alex!

    No more PHP files without properties. We can do this on the folder levels!

    DA

  2. Actually only 1 property must be set at top folder and TortoiseSVN will look
    for it by himself.

    I guess setting that on "in-portal" folder and all profile folders
    (in-portal.community, in-portal.full) will suffice.

    On Mon, Feb 28, 2011 at 6:34 PM, Dmitry A. <dandre...@gmail.com> wrote:
    > Very nice discovery, Alex!

    > No more PHP files without properties. We can do this on the folder levels!

    > DA

  3. I guess we need a task for this?

    DA

  4. Yes.

    On Thu, Mar 10, 2011 at 7:03 PM, Dmitry A. <dandre...@gmail.com> wrote:
    > I guess we need a task for this?

    > DA

  5. Task:

    INP-827 - Getting issue details... STATUS


  6. I've noticed, that in pre-svn time In-Portal releases (zip files) were
    having LF ("\n") line ending all the time. That's good, but since moved to
    SVN new zip release files have CRLF ("\r\n") in them. To normalize line
    ending I propose also adding this to "tsvn:autoprops" property:

       - *.php = svn:eol-style=LF
       - *.tpl = svn:eol-style=LF
       - *.sql = svn:eol-style=LF
       - *.lang = svn:eol-style=LF
       - *.sh = svn:eol-style=LF;svn:executable
       - *.txt = svn:eol-style=LF
       - *.htaccess = svn:eol-style=LF
       - *.html = svn:eol-style=LF
       - *.htm = svn:eol-style=LF
       - *.css = svn:eol-style=LF
       - *.js = svn:eol-style=LF
       - *.xml = svn:eol-style=LF
       - COPYRIGHT = svn:eol-style=LF
       - CREDITS = svn:eol-style=LF
       - INSTALL = svn:eol-style=LF
       - LICENSE = svn:eol-style=LF
       - LICENSES = svn:eol-style=LF
       - README = svn:eol-style=LF

    Of course we need to write a script, that will set that "svn:eol-style" to
    all files, that are already in repository. I think, that doing that only dev
    branches, like "5.1.x", "5.2.x", "1.1.x" of each module will ensure that all
    future releases have normal line endings. I don't think, that recreating
    every zip file made since 5.0.0 release would do us any good at the moment.

  7. Yes, I agree and think we can also do this for:

    .smsignore = svn:eol-style=LF

    which are used in the themes.

    DA

  8. Done.

    On Mon, Mar 14, 2011 at 8:55 PM, Dmitry A. <dandre...@gmail.com> wrote:
    > Yes, I agree and think we can also do this for:

    > .smsignore = svn:eol-style=LF

    > which are used in the themes.

    > DA