296
edits
Changes
→Properties
svn propset svn:eol-style native src/somefile.py
svn propset svn:keywords 'Id' src/somefile.py
====HOWTO setting the properties with git-svn ====
Unfortunately, as of git-svn 1.8.1.2, there is no such thing as "git svn propset" yet, only "git svn propget" and "git svn proplist".
To work this around, yet to avoid a full tree checkout, you can do a checkout of the subdirectory containing the new file(s) only
in a temporary location, if you only work with SVN to work around this git-svn limitation.
For example, when I added gramps/gui/utilscairo.py on the gramps40 branch:
cd gramps/gui/
git svn info | grep URL
This prints:
''URL: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40/gramps/gui''
Now,
cd /tmp
svn checkout svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40/gramps/gui
cd gui
svn propset svn:mime-type text/plain utilscairo.py
svn propset svn:eol-style native utilscairo.py
svn propset svn:keywords 'Id' utilscairo.py
svn commit
==Removing files==