Changes between Version 24 and Version 25 of OurTutorial
- Timestamp:
- Apr 13, 2025, 4:20:35 PM (4 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OurTutorial
v24 v25 1 1 == What is what == 2 2 3 SVN = Subversion = manager for file repositories with full change history.3 SVN = Subversion = a manager for file repositories with full change history. 4 4 5 5 Trac = a web application that includes a wiki, SVN view, and tickets. 6 6 7 Ticket = submitted bug or idea , e.g.jhusak submitted ticket:1 for putting ASMA in the SVN, and pfusik did it.7 Ticket = submitted bug or idea. For example jhusak submitted ticket:1 for putting ASMA in the SVN, and pfusik did it. 8 8 9 9 == Language == 10 10 11 Make sure Trac interface is in English.Polish translation is incomplete.11 Ensure the Trac interface is in English. The Polish translation is incomplete. 12 12 13 On the top, click Preferences, Language, English (United States), and save your changes.13 Click Preferences, Language, English (United States) on the top, and save your changes. 14 14 15 15 == Trac navigation == … … 29 29 == SVN Basics == 30 30 31 SVN (subversion) is a version control system. In such systems, nothing is ever lost , the history of changes is always available with the author, and you can always revert to a previous version and fix any problem (see below).31 SVN (subversion) is a version control system. In such systems, nothing is ever lost. The history of changes is always available with the author, and you can always revert to a previous version and fix any problem (see below). 32 32 33 33 As you can see in the Browse Source tab, there are three top directories in SVN: … … 36 36 * trunk - it's the main workspace. You can browse it from Trac, but it's much more comfortable to have a copy on your disk (see below) 37 37 38 Every update to SVN is registered in its history -which you see in Timeline. A write is a "changeset". A changeset has the following attributes:38 Every update to SVN is registered in its history, which you see in Timeline. A write is a "changeset". A changeset has the following attributes: 39 39 * ordinal number 40 40 * author's login … … 54 54 == Getting a local copy of SVN == 55 55 56 Create an ordinaryempty directory on your disk containing your SVN copy. Let's say it's called asma-trunk (use any name and location you like). Enter this directory in Windows Explorer, click the empty space, and select TortoiseSVN / Checkout. In the URL of the repository, paste:56 First, create an empty directory on your disk containing your SVN copy. Let's say it's called asma-trunk (use any name and location you like). Enter this directory in Windows Explorer, click the empty space, and select TortoiseSVN / Checkout. In the URL of the repository, paste: 57 57 {{{svn://asma.scene.pl/asma/trunk}}} 58 58 Make sure that the checkout directory is exactly your empty directory. Click OK and wait for the download. 59 59 60 The downloaded files are regular files - you can play and edit them. However, deleting, renaming, and moving must be done in a special way described below).60 The downloaded files are regular files. You can play and edit them. However, deleting, renaming, and moving must be done in a special way described below). 61 61 62 62 == Basic SVN commands == 63 63 64 Right-click on your directory gives you the following commands:64 Right-clicking on your directory gives you the following commands: 65 65 * SVN Update - download new changes if someone made them 66 66 * SVN Show Log - history (like Trac's Timeline, but limited to SVN changes) 67 * SVN Commit - upload your local changes; this may block if someone made changes to the same file as you - in this case do SVN Update and resolve the conflicts (more info on demand: '''pfusik''')67 * SVN Commit - upload your local changes; this may block if someone made changes to the same file as you - in this case, do SVN Update and resolve the conflicts (more info on demand: '''pfusik''') 68 68 * SVN Revert - reverts your local changes, replacing the files with their SVN version '''(cannot be undone, use with care!)''' 69 69 … … 72 72 == Making changes == 73 73 74 The easiest change is modifying a file that is already in SVN. Modify the file as you normally do - e.g. edit text files in the notepad. Next, choose SVN Commit - it will display the list of modified files. Enter the change description in the top edit box (the description is importantso it's easier to browse the history), and accept. Enter your SVN login and password. Our changes are sent to the server and are available for the others who need to do SVN updates.74 The easiest change is to modify a file that is already in SVN. Modify the file as you normally do, e.g., edit text files in Notepad. Next, choose SVN Commit. It will display the list of modified files. Enter the change description in the top edit box (the description is essential so it's easier to browse the history), and accept. Enter your SVN login and password. Our changes are sent to the server and are available for the others who need to do SVN updates. 75 75 76 To add a file, put it in the directory, right-click it, and select TortoiseSVN / Add. The file won't be sent to the server until you select SVN Commit, as described above.76 To add a file, put it in the directory, right-click it, and select "TortoiseSVN / Add". The file will be sent to the server only after you select "SVN Commit", as described above. 77 77 78 To delete a file '''don't just delete it'''. Instead , TortoiseSVN / Delete, then SVN Commit.78 To delete a file '''don't just delete it'''. Instead use "TortoiseSVN / Delete", then "SVN Commit". 79 79 80 80 To rename a file, TortoiseSVN / Rename, then SVN Commit. 81 81 82 To copy or move a file, drag it '''with the right button''' - a menu will appear with options to SVN Move or Copy versioned items and optionally rename. '''Make sure to use SVN commands, not plain Windows move/copy! ''' Then SVN Commit.82 To copy or move a file, drag it '''with the right mouse-button''' - a menu will appear with options to SVN Move or Copy versioned items and optionally rename. '''Make sure to use SVN commands, not plain Windows move/copy! ''' Then SVN Commit. 83 83 84 84 Only SVN Commit sends your changes to the server. The other operations work locally on your computer. 85 85 86 I think that's enough for the beginning. Any questions?87 88 86 == Viewing changes == 89 87 90 Install TortoiseSvnDiff. It is optional but strongly recommended.88 Install the [wiki:TortoiseSvnDiff]. It is optional but strongly recommended.