if it is a brand new file, svn add does the trick.
not sure about your other concern finding out its original revision id
do you want something like this?
svn diff -r PREV:HEAD filename
that way you get the diff of an already committed file with the
changes which were submitted at that point of time.
On Sep 8, 4:33 pm, Harry <[EMAIL PROTECTED]> wrote:
> Let me add some clarification. I have many versions and many files
> checked in over the last several months. Do I have to determine the
> first revision number when the file was added? I tried:
> post-review -n --revision-range=1 filename
> and got:
> Failed to execute command: env LANG=en_US.UTF-8 svn diff --diff-
> cmd=diff -r 1
> ["svn: Unable to find repository location for '' in revision 0\n"]
> I'm sure this is because my file did not exist on the trunk 1. Any
> thoughts on how to get the diff if a version of the file has already
> been commited in SVN?
> On Sep 8, 2:12 pm, "David Trowbridge" <[EMAIL PROTECTED]> wrote:
> > If you "svn add" a file, it will appear in the diffs. I don't recall
> > whether "svn diff" is smart enough to cope with that (I think it is),
> > but post-review definitely is.
> > -David
> > On Mon, Sep 8, 2008 at 1:10 PM, Harry <[EMAIL PROTECTED]> wrote:
> > > SVN
> > > On Sep 8, 2:06 pm, "David Trowbridge" <[EMAIL PROTECTED]> wrote:
> > >> What repository type are you using?
> > >> -David
> > >> On Mon, Sep 8, 2008 at 1:03 PM, Harry <[EMAIL PROTECTED]> wrote:
> > >> > I am trying to start review a new file with no previous revisions and
> > >> > am wondering if there is an easy way to create the diff file? What I
> > >> > do now is:
> > >> > diff -u -N filename /dev/null > mydiff
> > >> > Then edit mydiff to include dummy revision information, such as adding
> > >> > (working copy) and (revision 0) after the filenames in the first 2
> > >> > lines, but this is not a good solution for all my users.
> > >> > I did not see an argument to post-review to treat missing files as
> > >> > NULL.
> > >> > Any ideas on how to review a brand new file?
> > >> > Thanks,
> > >> > Harry
You received this message because you are subscribed to the Google Groups
To post to this group, send email to email@example.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at