You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by ying lcs <yi...@gmail.com> on 2007/01/16 17:39:59 UTC

How to track changes with subversion

Hi,

I have a general question about how to track changes with subversion.
Let say I have a trouble ticket #2. I check out the trunk from subversion.
And after I am done with my changes , I call 'svn commit' and
subversion will create a 'revision'.

$ svn commit -m "Fix #2. Switch to use relative path"

Sending        sample/changeToOffical.sh
Sending        sample/changeToStandAlone.sh
Transmitting file data ....
Committed revision 8.

But what if I realize my changes is incomplete, the I need to add more
files. If I do a 'svn commit' again, subversion will create a new
revision.

What if there is another person will do a svn commit between my 2 'commit's?
And when the build person builds a build with just my fix, how can he
do it ? Since my fix now span in 2 revisions.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How to track changes with subversion

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 16, 2007, at 11:39, ying lcs wrote:

> I have a general question about how to track changes with subversion.
> Let say I have a trouble ticket #2. I check out the trunk from  
> subversion.
> And after I am done with my changes , I call 'svn commit' and
> subversion will create a 'revision'.
>
> $ svn commit -m "Fix #2. Switch to use relative path"
>
> Sending        sample/changeToOffical.sh
> Sending        sample/changeToStandAlone.sh
> Transmitting file data ....
> Committed revision 8.
>
> But what if I realize my changes is incomplete, the I need to add more
> files. If I do a 'svn commit' again, subversion will create a new
> revision.
>
> What if there is another person will do a svn commit between my 2  
> 'commit's?
> And when the build person builds a build with just my fix, how can he
> do it ? Since my fix now span in 2 revisions.

If it's important to your development style that multiple changes  
that were committed to fix a bug are testable in isolation of any  
other changes, you may want to use a branch to perform the bugfix.  
Then, once it's been tested and accepted, you can merge it to the trunk.

http://svnbook.red-bean.com/en/1.2/ 
svn.branchmerge.commonuses.html#svn.branchmerge.commonuses.patterns.feat 
ure

The questions you've been asking are fairly basic questions that are  
all explained in the book. I recommend you take a few days to read it  
thoroughly from the beginning; it should improve your understanding  
of how Subversion can be used.

http://svnbook.red-bean.com/en/1.2/index.html


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org