SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 83 | Next

David J Murphy

"Managing Software Development with Trac and Subversion"


We can also perform a diff on different versions of a file in the repository. To see
what changed between the last two revisions of our file perform the following:
3. Type svn diff -r 2:3 foo.py and press Enter.
$ svn diff -r 2:3 foo.py
Index: foo.py
===================================================================
--- foo.py (revision 2)
+++ foo.py (revision 3)
@@ -1,2 +1,4 @@
#! /usr/bin/python
print "Hello, world!"
+name = raw_input('What is your name? ')
+print 'Hello, %s' % name
Chapter 6
[ 67 ]
Easy on the Eyes
Although the log and diff output that Subversion provides is perfectly adequate
for working with it, there is a better way??”especially for sharing between team
members. It's time to return to Trac and explore its code browser.
Where is it?
When we set up our security in Chapter 3 we restricted the code browser
to authenticated users, so we need log in (if we are not already logged in)
before we can continue. See Chapter 4 for a refresher on how to do this.
We need to click the Browse Source link in the main Trac menu to see the default
view, which is the latest version of the root of our repository. If we click on trunk we
will see the contents of that folder, and clicking on the file name will show the latest
version of that file along with some of the meta-information Subversion stores.


Pages:
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95