Change the interaction of --eol-from-mime-type and --no-default-eol options.
commit392ff2396c9276bfbc6b42f631befdcc51dc2f80
authormhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Sat, 5 Nov 2005 20:22:28 +0000 (5 20:22 +0000)
committermhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Sat, 5 Nov 2005 20:22:28 +0000 (5 20:22 +0000)
tree63d542ed345e14c2710896d832bc18f0f51cf23e
parent234ee132fe2f3667e00b8873ac25c4f3e854ba64
Change the interaction of --eol-from-mime-type and --no-default-eol options.

Previously, the default eol-style of "native" was unconditionally set
on all non-binary files, unless --no-default-eol was specified.
Therefore, the --eol-from-mime-type option was completely ignored
unless the --no-default-eol option was also specified.  This behavior
also prevented having some files' eol-style chosen based on their mime
types, and the files with undefined mime types set to 'native'.

This change gives priority to the --eol-from-mime-type option; if this
option is specified, then it determines the eol-style of all
non-binary files with defined mime types.  Only non-binary files with
undefined mime types are affected by the --no-default-eol option.

* cvs2svn (SVNCommitItem.__init__): Changed algorithm for determining
  eol-style as described above.

  (usage): Document new meanings of options.

* run-tests.py (eol_mime): Test that the behavior matches the new
  expectation.

* cvs2svn.1, cvs2svn.html: Document the new meanings of the options.

git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@1648 be7e6eca-30d4-0310-a8e5-ac0d63af7087
cvs2svn
cvs2svn.1
run-tests.py
www/cvs2svn.html