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

Re: How to do "svn status -r1000"?

From: Kevin Hung <cykhung_at_gmail.com>
Date: 2006-09-09 09:07:28 CEST

Sorry that I did not state it clearly in my last posting. When I say "new
files or new directories", I mean the new files and new directories that I
create in my working copy. They have not been added nor committed to the

I have actually created a test repository and tried things out. So far, I
have tried these two commands:

"svn diff -r 1000 ."
"svn diff -r 990:1000 ."

I think the first command compares my working copy to revision 1000 in the
repository. However, this does not show any new file or new directory that I
create in my working copy.

The second command compares revision 990 and revision 1000 in the
repository. It does not look at my working copy.

I have also tried this,

svn diff /home/wc https://repos/proj@1000

But I get an error message from svn.

On 9/8/06, Blair Zajac <blair@orcaware.com> wrote:
> Kevin Hung wrote:
> > Hi Blair,
> >
> > Just want to confirm the answer to my first question. Is it true that
> > there is no way to have "svn diff" to show new files or new directories?
> > Would this feature be included in future release?
> No, that's not true. If you do a diff on a revision range that includes
> an
> added file, then the diff, either against the wc or the server, will show
> the diff.
> BTW, you can always test things out very quickly using a test repository:
> svnadmin create repos
> svn co file://`pwd`/repos wc
> cd wc
> cp /etc/motd .
> svn add motd
> svn ci -m ''
> cd ..
> svn diff -r 0:1 file://`pwd`/repos
> Regards,
> Blair
Received on Sat Sep 9 09:08:34 2006

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