To see what has been changed since the last revision, we can
use the status command.
6. Type svn status and press Enter.
$ svn status
? foo.py
The ? indicates that the file is unknown to subversion. To correct this we will add
the file.
7. Type svn add foo.py and press Enter.
$ svn add foo.py
A foo.py
Now our file is marked with an A, which tells us the file has been added. Reviewing
the status again will provide the same listing. Subversion uses a number of
character codes to represent a file or folder's status, some of which are shown below.
For more information on the possible codes, run svn help status.
Code Meaning
? Not under version control
A Added, but not yet checked in
M Modified
Unmodified
I Ignored by Subversion
! Missing
Although we have added our file to Subversion, it is not yet under version control.
So to achieve this we have to check in or commit our changes??”that will store them
in our repositories.
8. Type svn commit and press Enter.
Version Control 101
[ 64 ]
Since we did not specify a log message (the -m parameter) we will be prompted to
provide one using a temporary file in our default text editor. We need to add our
log entry ("Created sample script.") and save the file. As the Subversion commit
action progresses we will receive details of what is happening.
Pages:
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91