#25 closed defect (fixed)
Repository messes up pdf, word, netcdf files
Reported by: | frae | Owned by: | frcm |
---|---|---|---|
Priority: | normal | Milestone: | 1.0 |
Component: | ROPP (all) | Version: | 0.8 |
Keywords: | Cc: |
Description
Just tried to port all ropp_test results to the svn repository. When checking out the current version of ropp_test, all doc, pdf, and netcdf files are no longer working. Tried to check in the old and working versions of the file, but svn ignored the updates (I guess it sees the files as being identical so the problem lies in the downloading and conversion). A modified word file messed up the svn commit:
Sending trunk/reports_working_copy/gras_ropp_testplan_v22.doc Transmitting file data .........................................svn: Commit failed (details follow): svn: File '/net/home/h02/frae/tmp/ropp_test/trunk/reports_working_copy/gras_ropp_testplan_v22.doc' has inconsistent newlines svn: Inconsistent line ending style svn: Your commit message was left in a temporary file: svn: '/net/home/h02/frae/tmp/ropp_test/svn-commit.tmp'
This is rather urgent!
Also, there is no ropp_test in components, so I leave it as ROPP (all)
Change history (5)
comment:1 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 19 years ago
Cc: | added |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
I'm re-opening this mainly for the information, not because there's a problem with the solution...
Once the files are within subversion (and after having read the documentation), the only possibility to change the file type seems indeed to be to change the corresponding property (in particular, svn:mime-type). Unfortunately, there seems to be no simple way of changing the properties for many files at once:-(
However, in order to make sure that newly added files have the right properties, it is possible to add default mime types for various file name patters to the file
~/.subversion/config
For example, I have the following entries (well - now...) at the end of that file:
*.f = svn:eol-style=native *.F = svn:eol-style=native *.f90 = svn:eol-style=native *.F90 = svn:eol-style=native *.inc = svn:eol-style=native *.c = svn:eol-style=native *.C = svn:eol-style=native *.cpp = svn:eol-style=native *.h = svn:eol-style=native *.hh = svn:eol-style=native *.hpp = svn:eol-style=native *.H = svn:eol-style=native *.tcl = svn:eol-style=native *.tk = svn:eol-style=native *.py = svn:eol-style=native *.pl = svn:eol-style=native *.con = svn:eol-style=native *.nif = svn:eol-style=native *.dsp = svn:eol-style=CRLF *.dsw = svn:eol-style=CRLF *.sh = svn:eol-style=native;svn:executable *.txt = svn:eol-style=native *.gif = svn:mime-type=image/gif *.tif = svn:mime-type=image/tiff *.tiff = svn:mime-type=image/tiff *.xbm = svn:mime-type=image/x-xbitmap *.xpm = svn:mime-type=image/x-xpixmap *.png = svn:mime-type=image/png *.jpg = svn:mime-type=image/jpeg *.doc = svn:mime-type=application/msword *.eps = svn:mime-type=application/postscript *.ps = svn:mime-type=application/postscript *.pdf = svn:mime-type=application/pdf *.nc = svn:mime-type=application/octet-stream *.cdf = svn:mime-type=application/octet-stream *.hdf = svn:mime-type=application/octet-stream *.zip = svn:mime-type=application/octet-stream *.gz = svn:mime-type=application/octet-stream *.bz2 = svn:mime-type=application/octet-stream Makefile* = svn:eol-style=native
Hope this helps,
Chris.
comment:3 by , 19 years ago
Cc: | removed |
---|---|
Resolution: | → fixed |
Status: | reopened → closed |
Okay, copied this approach for my setup. Thanks.
Closed this ticket.
comment:5 by , 16 years ago
Milestone: | → 1.0 |
---|
Okay, hopefully solved this problem. Tried the propedit command on the files but that did not work when they were already in the repository. Now removed all pdf, nc, doc files from repository, checked in version 668 and added them again to svn. Adding them put most of them in bin, but some pdf files were still added as text. Used propedit on them before commit and that worked. Version 669 should now have all files in right format. Although I did not do this for all the files in the tags directory, so they are likely to be of wrong format still!