[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Need diff output explained

From: Troy Curtis Jr <troycurtisjr_at_gmail.com>
Date: Sun, 6 Apr 2008 13:44:35 -0500

On Sun, Apr 6, 2008 at 2:04 AM, Anthony Gardner
<cyclewood_ltd_at_yahoo.co.uk> wrote:
> Not a noob but really trying to put svn through it paces and predict the
> output of commands. Sometimes, I get stumped.
>
> These are some home made examples and just when I think I'm making progess,
> something unexpected pops up.
>
> Here's the first of my questions.
>
> With the following flow, why, when I svn diff on the release_branch, does
> svn show unexpected paths for the diff? Why doesn't svn stay within the WC
> of release_branch to display the diffs as in the last example.
>
> Thank you
>
> trunk r2 ____ r5 (copy to devel_branch)
> devel_branch r6 ____ r7 (copy to release_branch)
> release_branch r8
>
> (the examples below are just snippets from the actual output)
>
> cd release_branch
>
> svn diff -r2:7
> --- public/pub_file3.pl (.../trunk) (revision 2)
> +++ public/pub_file3.pl (.../branches/devel_branch) (revision 7)
>
> svn diff -r2:8
> --- public/pub_file3.pl (.../trunk) (revision 2)
> +++ public/pub_file3.pl (.../branches/release_branch) (revision 8)
>
> svn diff -r8:9
> --- private/pri_file1.pl (revision 8)
> +++ private/pri_file1.pl (revision 9)
>
> Disclaimer: Technically, I&#39;m always wrong!!
> ________________________________
> Yahoo! for Good helps you make a difference
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org For additional
> commands, e-mail: users-help_at_subversion.tigris.org

Copies in Subversion not only copy the contents of the item but also
the history. Doing a log on that file will travel all the way back to
when it was really created in the repo, past the copy point. With the
diff it is the same way.

When you ask subversion to give you the diff between revision 2 and
revision 8 of a file that is the result of a copy it does just that.
That file DOES exist in revision 2, even if it did not exist in that
particular location at that time.

Hope that helps.

Troy

-- 
"Beware of spyware. If you can, use the Firefox browser." - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-06 20:44:56 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.