You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by berndq <be...@gmx.net> on 2006/08/15 22:52:34 UTC

svn diff and new files

Hi,

as svn diff does not include new files (AFAIK), what is the preferred
way to upload a patch that contains new files?

Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: svn diff and new files

Posted by Joakim Erdfelt <jo...@erdfelt.com>.
Using "svn add foo" "svn diff" - Works with new text files.
If you add binary files (images, archives, datafiles) you'll need to use 
something else (tar.gz, zip) to get those files into the patch.

- Joakim

Vincent Siveton wrote:
> Hi Bernd,
>
> You need to add new files in your working dir before the patch [1],
> something like the following:
> svn add path/to/foo.txt
> svn diff > my.diff
>
> Cheers,
>
> Vincent
>
> [1] http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.add.html
>
> 2006/8/15, berndq <be...@gmx.net>:
>> Hi,
>>
>> as svn diff does not include new files (AFAIK), what is the preferred
>> way to upload a patch that contains new files?
>>
>> Bernd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: svn diff and new files

Posted by Vincent Siveton <vi...@gmail.com>.
Hi Bernd,

You need to add new files in your working dir before the patch [1],
something like the following:
svn add path/to/foo.txt
svn diff > my.diff

Cheers,

Vincent

[1] http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.add.html

2006/8/15, berndq <be...@gmx.net>:
> Hi,
>
> as svn diff does not include new files (AFAIK), what is the preferred
> way to upload a patch that contains new files?
>
> Bernd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: svn diff and new files

Posted by Franz Allan Valencia See <fr...@gmail.com>.
Good day to you, Bernd,

I don't know if what I'm doing is the preferred way, but you can add new
files using svn add.

And if you're using Windows, you may want to try TortoiseSVN to ease some
SVN tasks (I'm not sure if there is a version for other platforms). I
usually just use svn for diff, update, and cleanup, and the rest I do with
TortoiseSVN ^_^

Cheers,
Franz

On 8/16/06, berndq <be...@gmx.net> wrote:
>
> Hi,
>
> as svn diff does not include new files (AFAIK), what is the preferred
> way to upload a patch that contains new files?
>
> Bernd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>