Changes between Version 1 and Version 2 of HowtoSVN


Ignore:
Timestamp:
Mar 31, 2009, 3:49:40 AM (16 years ago)
Author:
Thanatermesis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowtoSVN

    v1 v2  
    1 = Howto of how to use SVN =
     1= How to use SVN =
    22
    33^Because of the mass of bad and ugly Howto's of SVN found on the internet, and for the users of my SVN repository... i decided to write my own Howto^
     
    88 * Obtain a list of the possible projects to download from a SVN repository:
    99{{{
    10 svn list --verbose svn://thanatermesis.org
     10svn list --verbose svn://elivecd.org
    1111}}}
    12  * Download the sources of a project:
     12 * Download the sources of the subdir ''translations'':
    1313{{{
    14 svn co svn://thanatermesis.org/test1 destdir
     14svn co svn://elivecd.org/translations translations_svn
    1515}}}
    16     * ,,We can use  '''test1'''  for this example,,
     16    * ,,We have used  '''translations'''  for this example,,
     17    * ,,We have called the destiny directory '''translations_svn''',,
    1718    * ,, ''' svn co '''  is the same as  ''' svn checkout ''' ,,
    1819
    19  * Update a project downloading the last possible version:
     20 * Update a previous downloaded SVN copy:
    2021{{{
    2122svn update
     
    2526== For developers ==
    2627
    27  * See the differences within the repository
     28 * See the differences between your copy and the original repository (if you have made any changes in the code)
    2829{{{
    2930svn diff
    3031}}}
    31  * Send modifications of the files or ''commit''
     32 * Send modifications of the files ''(commit)''
    3233{{{
    3334svn commit -m 'Fixed the bug of double interfaces launched'
     
    3637    * ,,You need to add a comment with the '''-m''' option, it's important that you provide a good description in order to better understand the steps of the code, and browse better old versions and old modifications,,
    3738
    38  * Upload it in the next commit
     39 * Upload (add files/directories) it in the next commit
    3940{{{
    4041svn add file
     
    4243svn add images/*.png
    4344}}}
     45   * '''Important''': When you do ''svn add directory'', it will be included ALL the files and subdirectories of this directory, this means that you will add a lot of files that are not needed, like '''.edj''', elf or binary files, compiled ones, etc... '''please''' clean up the directories that you are adding to the SVN before to import them, we dont want to have '''not-needed''' files in the SVN repository that will takes space on the server, making a svn repository slow, and that conflicts with our own builds. '''Thanks'''
    4446 * Delete files
    4547{{{
     
    5153 * Move files
    5254{{{
    53 mkdir data
     55svn mkdir data
    5456svn move images data/images
    5557}}}
    5658
    57  * Revert modifications ( '' Revert modifications to a file, don't need connection, but it won't recover a deleted directory '' )
     59 * Revert modifications (''Revert modifications (that are '''not commited''' yet), don't need ''internet'' connection, but it won't recover a deleted directory'')
    5860{{{
    5961svn revert file
     
    6870 * Fix your changes with another persons changes ( ^When you have worked in this file, another person has worked also, and there are differences between the new changes, you need to fix your code with the new commit of this person^ )
    6971{{{
    70 ---> This section need to be edited, i don't know how to make this <---
     72---> This section need to be edited, i have never tried these options <---
    7173svn status
    7274svn help merge
     
    7476}}}
    7577
     78These are the definitions of the ''flags'' that you see when you download or update a SVN copy:
    7679||U||Updated file, changes made on the server||
    7780||A||Added, file added to the copy of work||