create a patch with subversion

Before the commit:

svn diff > mypatch_xx.diff

After the commit:

svn diff -r > mypatch_xx.diff

copy the mypatch_xx.diff file at the same relative place on the other computer/directory/…

and do:

patch --dry-run -p0 -i ~/mypatch_xx.diff

to see what will be done and then

patch -p0 -i ~/mypatch_xx.diff

to do it really

to install patch: apt-get install patch
to install subversion: apt-get install subversion

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>