svn.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 10 Feb 2018 01:28:53 +0200
changeset 2227 1e9323e7ec88
parent 2183 8d21b768f87d
permissions -rw-r--r--
Removed files: I don't longer have interest on topic.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1513
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
.. -*- coding: utf-8; -*-
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
=============
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
 Subversion.
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
=============
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
.. contents::
1905
fba288d59662 Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1779
diff changeset
     7
   :local:
1513
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
2183
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
     9
Installing Subversion
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    10
=====================
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    11
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    12
Under Cygwin::
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    13
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    14
  $ apt-cyg install subversion
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    15
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    16
Cygwin's package can't be used with native Windows applications like IDE.
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    17
Official home page provides own build (which require registration) and point to
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    18
several trusted builds:
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    19
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    20
https://subversion.apache.org/packages.html#windows
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    21
  Apache Subversion Binary Packages for Windows.
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    22
https://sliksvn.com/download/
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    23
  SlikSVN Windows command line client.
8d21b768f87d Installing Subversion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2182
diff changeset
    24
1513
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
Where palced config files?
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
==========================
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28
The per-user configuration area currently contains three files two
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
configuration files ('config' and 'servers').
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    30
2182
c422c3f118bd Adjusted indent level.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    31
``/etc/subversion``
c422c3f118bd Adjusted indent level.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    32
  Unix system wide configurations.
c422c3f118bd Adjusted indent level.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    33
``$HOME/.subversion``
c422c3f118bd Adjusted indent level.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    34
  Unix per-user configuration area.
c422c3f118bd Adjusted indent level.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    35
``%APPDATA%\Subversion``
c422c3f118bd Adjusted indent level.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    36
  Windows per-user configuration area.
1777
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    37
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    38
Coping repository.
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    39
==================
1513
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    40
1777
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    41
Making local repository copy::
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    42
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    43
  $ svnadmin create $SVNROOT
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    44
  $ svnsync init file://$SVNROOT svn://$REMOTE
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    45
  $ svnsync synchronize file://$SVNROOT
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    46
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    47
Note that you can't relocate working copy to new repository copy becase of::
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    48
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    49
  $ svn relocate file://$SVNROOT
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    50
  svn: E195009: The repository at 'file:///home/user/devel/repo-copy' has uuid 'b064fe9f-b7ba-459e-afdf-3429ad89a318', but the WC has '11827c6b-1af5-4614-8a8b-dda7fb34cd94'
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    51
d9b134f80a66 Coping repository.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1531
diff changeset
    52
Coping repository from SourceForge to GoogleCode::
1513
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    53
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    54
  $ svnsync init https://PROJ.googlecode.com/svn https://PROJ.svn.sourceforge.net/svnroot/PROJ
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    55
  $ svnsync --username NAME --password PASSWORD \
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    56
                sync https://PROJ.googlecode.com/svn https://PROJ.svn.sourceforge.net/svnroot/PROJ
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    57
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    58
Disable interactive conflict resolution.
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    59
========================================
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    60
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    61
Write in ``$HOME/.subversion/config``::
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    62
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    63
  [miscellany]
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    64
  interactive-conflicts = no
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    65
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    66
Creating svn repo.
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    67
==================
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    68
::
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    69
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    70
  $ mkdir -p /srv/svn
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    71
  $ svnadmin create /srv/svn/$repo
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    72
  $ svn co file:///srv/svn/$repo $repo
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    73
  $ cd /tmp/$repo
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    74
  $ mkdir trunk branches features tags
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    75
  $ svn add *
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    76
  $ svn st      # check all OK
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    77
  $ svn ci -m "Init repo."
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    78
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    79
For multi-project repo do follow::
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    80
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    81
  $ mkdir -p /srv/svn
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    82
  $ svnadmin create /srv/svn/$repo
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    83
  $ svn co file:///srv/svn/$repo $repo
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    84
  $ cd /tmp/$repo
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    85
  $ for proj in $proj1 $proj2; do mkdir $proj/trunk $proj/branches $proj/features $proj/tags; done
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    86
  $ svn add *
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    87
  $ svn st      # check all OK
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    88
  $ svn ci -m "Init repo."
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    89
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    90
Run local svn server.
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    91
=====================
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    92
::
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    93
1530
d41385c7d4cb Remove unnecessary .exe command suffix.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1513
diff changeset
    94
  $ svnserve -d --pid-file=svnserve.pid --root=/srv/svn/proj  # default port: 3690
1513
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    95
  $ svn ls svn://localhost    # check all OK
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    96
  $ kill -l
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    97
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    98
Undo bad commit.
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    99
================
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   100
::
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   101
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   102
  $ emacs FILE
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   103
  ...
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   104
  $ svn ci -m "Introduce first bug."
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   105
  Sending        trunk/FILE
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   106
  Transmitting file data .
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   107
  Committed revision 7.
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   108
  $ emacs FILE
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   109
  ...
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   110
  $ svn ci -m "Make a lot of good changes."
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   111
  ...
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   112
  Committed revision 8.
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   113
  ...
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   114
  $ emacs FILE
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   115
  ...
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   116
  $ svn ci -m "Introduce second bug."
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   117
  ...
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   118
  Committed revision 10.
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   119
  $ emacs FILE
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   120
  ...
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   121
  $ svn ci -m "Make a lot of good changes."
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   122
  ...
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   123
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   124
Now you understand that revision 7 and 10 buggy. You decide revert changes::
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   125
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   126
  $ svn merge -r 7:6 -r 10:9 FILE
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   127
  $ svn ci -m "Reverted revision 7 and 10."
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   128
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   129
For one changeset revert you can use shortly syntax::
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   130
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   131
  $ svn merge -c -7 -c -10 FILE
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   132
1531
330085d06687 Fix typo.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1530
diff changeset
   133
Also you can use ranges::
1513
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   134
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   135
  $ svn merge -r 10:6 FILE
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   136
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   137
Merge branches.
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   138
===============
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   139
::
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   140
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   141
  $ cd trunk
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   142
  $ svn mergeinfo --show-revs eligible ^/branches/feature
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   143
  $ svn merge ^/branches/feature
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   144
  $ svn ci -m 'Integrate feature X.'
2a6cd59d5863 Merge branches.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   145
1778
2ea02b27659d Fix EOL style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1777
diff changeset
   146
Fix EOL style.
2ea02b27659d Fix EOL style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1777
diff changeset
   147
==============
2ea02b27659d Fix EOL style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1777
diff changeset
   148
::
2ea02b27659d Fix EOL style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1777
diff changeset
   149
2ea02b27659d Fix EOL style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1777
diff changeset
   150
  $ find . -type f -name '*.java' -exec svn propset svn:eol-style native {} ';'
2ea02b27659d Fix EOL style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1777
diff changeset
   151
  $ svn ci -m 'Fix svn:eol-style.'
2ea02b27659d Fix EOL style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1777
diff changeset
   152
1779
d57075ff7c32 Fix EOL style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1778
diff changeset
   153
Note that this actions pollute history. For example every line of file with
d57075ff7c32 Fix EOL style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1778
diff changeset
   154
CR/LF (created on Windows on file without ``svn:eol-style native``) after this
d57075ff7c32 Fix EOL style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1778
diff changeset
   155
actions would have new author in ``svn annotate``, and ``svn diff`` will show
d57075ff7c32 Fix EOL style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1778
diff changeset
   156
all on all change.
d57075ff7c32 Fix EOL style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1778
diff changeset
   157