[ Replying back to the users@ list. Please use 'reply all' to keep the
discussion on the list. Also, if possible, please use plain text
emails, and do not top post (i.e. put your reply at the bottom of the
thing you're replying to, or inline). More below ... ]
> On Thu, Jun 28, 2012 at 10:59 PM, <jwenners_at_rockwellcollins.com> wrote:
> >
> > Here is the scenario:
> >
> > User 1
> > 1. create branches/X
> > 2. svn checkout branches/X to local machine
> > 3. modify file.txt
> > 4. commit changes
> >
> >
> > Another user, User 2,
> > 5. create branches/Y
> > 6. svn checkout branches/Y to his local machine
> > 7. merge branches/X to local machine (and thus merges file.txt
> > into branches/Y)
> > 8. use svn diff to verify that the changes to file.txt in the local
> > copy of branches/Y succeeded before committing the change.
> >
> >
> > Since svn diff can not compare the local working copy to that of a URL,
> > this is impossible to do without first committing the change to branches/Y.
>
> I don't understand. If you want to see what has changed, after the
> merge, to file.txt in your working copy of branches/Y, 'svn diff
> file.txt' should do the trick, no?
>
On Fri, Jun 29, 2012 at 3:43 PM, <jwenners_at_rockwellcollins.com> wrote:
>
> Yes, of course, svn diff shows me the changes that have been merged in to
> my local working copy.
> But that is not what my question is asking.
>
> I want to compare two versions of file.txt.
> The one in branches/X and the one in my working copy.
> svn diff does not allow me to compare a path and a url.
> So, I can not do the following:
>
> /branches/Y>svn diff file.txt http://repository/branches/X/file.txt
>
> So I have no way of verifying if the changes merged in to my local working
> copy are correct.
>
> There are lots of work arounds like:
> 1. check out branches/X to my drive and then compare two paths
> 2. commit the changes to my working copy and then compare two urls
>
> Neither of these are reasonable solutions.
I think this should work:
svn diff --old=http://repository/branches/X/file.txt --new=file.txt
(i.e. the 2nd usage if you look at 'svn help diff')
--
Johan
Received on 2012-06-29 16:14:46 CEST