On Sun, Jul 12, 2009 at 11:40 PM, David Carson<dccarson@...> wrote:
> By the way, I also forgot to ask about the syntax for doing diffs in SVN.
> The mouse-over text help on the Create Topic screen says "svn -uN" I
> believe, but these options are not available. The -u is the default for
> SVN, the -N I'm not sure about, but it could be passed using the
> 'pass-through' option I suppose.
I think it might have been available at some point, but basically '-u'
is all you need now - it seems to include added/removed files by
default. I'll update the text.
> But I also noticed that my diff does not contain full paths to the files,
> just paths relative to the CWD where I did the diff. I believe CVS puts the
> full RCS path in its diff and I'm wondering how Codestriker can figure out
> how to show the diff via ViewVc when it does not have a complete path to
> use. Perhaps there is an svn option I'm missing.
Sadly.. the subversion people decided to create diffs in this silly
format. I mentioned this to them years ago, but they basically
ignored it. At least CVS did the right thing here.
What this means, is you need to run your diff commands from the
"top-level" of your project, and make sure the repository you select
matches it, so that together, the paths become the full path of the
file in the subversion repository.
Its a bit of a pain, but it works. Its partially for this reason a
lot of people use Subversion in post-commit review mode, as you don't
have to worry about this.