[GRASS-dev] On `svn propset`

Nikos Alexandris nik at nikosalexandris.net
Sun Jan 13 10:00:48 PST 2019


* Markus Neteler <neteler at osgeo.org> [2019-01-13 14:53:13 +0100]:

>Do you run that manually or use the helper script
>grass-addons/tools/module_svn_propset.sh *
>?

Manually. TL;DR

The properties seem to be already set and there is no need to re-set them.
Perhaps, once set for a file, in an SVN repository, there is no need for
a re-set?  Even if actually replacing a file (instead of updating it)
with a file from a(nother) non-SVN repository, and committing the update.


What I did/tried:

# 1 : Print working directory

pwd 
/osgeo/grass-addons/grass7/raster/r.estimap.recreation

# 2 : Update (here == replace) the Python script

cp /some/local/repository/r.estimap.recreation.py /osgeo/grass-addons/grass7/raster/r.estimap.recreation/r.estimap.recreation.py
cp: overwrite '/osgeo/grass-addons/grass7/raster/r.estimap.recreation/r.estimap.recreation.py'? y

# 3 : committing the change to the SVN repository

svn ci -m "r.estimap.recreation.py: remove left-over 'd' flag" r.estimap.recreation.py
# which is: https://trac.osgeo.org/grass/changeset/73931

# 4 : I realise(d) I forgot to set the file properties

file r.estimap.recreation.py
r.estimap.recreation.py: Python script, UTF-8 Unicode text executable, with very long lines

# 5 : Setting them manually and testing again

svn propset svn:eol-style "native" r.estimap.recreation.py
property 'svn:eol-style' set on 'r.estimap.recreation.py'

svn propset svn:mime-type text/x-python r.estimap.recreation.py
property 'svn:mime-type' set on 'r.estimap.recreation.py'

file r.estimap.recreation.py
r.estimap.recreation.py: Python script, UTF-8 Unicode text executable, with very long lines

No effect!

# 5 : Trying to use the script:

sh ../../../tools/module_svn_propset.sh r.estimap.recreation.py

file r.estimap.recreation.py
r.estimap.recreation.py: Python script, UTF-8 Unicode text executable, with very long lines

# No change again!

# 6 : From withing a GRASS GIS session maybe? Repeating the last two
# commands, does nothing.

# 7 : Last check

svn propget svn:mime-type r.estimap.recreation.py
text/x-python

svn propget svn:eol-style r.estimap.recreation.py
native

# How can this be? Properties are already set.

Nikos


More information about the grass-dev mailing list