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

create diff for "patch -p1"?

From: Ed L Cashin <ecashin_at_uga.edu>
Date: 2003-07-03 00:10:42 CEST

Hi. When I create a diff, the result is ready to be applied with
"patch -p0":

  bash$ svn diff ROOT/2.5-macc/tags/2.5.72-mm2.orig ROOT/2.5-macc/trunk | head
  Index: kernel/fork.c
  ===================================================================
  --- kernel/fork.c (.../ags/2.5.72-mm2.orig) (revision 69)
  +++ kernel/fork.c (.../runk) (revision 69)
  @@ -261,7 +261,7 @@
   }
   
   #ifdef CONFIG_MMU
  -static inline int dup_mmap(struct mm_struct * mm, struct mm_struct * oldmm)
  +int __dup_mmap(struct mm_struct * mm, struct mm_struct * oldmm, int cow_ok)

I would like to generate patches that are applied with "patch -p1", so
that the patch would look like the one below, but I'm not sure how to
get them. Adding "/." to the end of the URLs was my first try, but it
doesn't work.

  Index: a/kernel/fork.c
  ===================================================================
  --- a/kernel/fork.c (.../ags/2.5.72-mm2.orig) (revision 69)
  +++ b/kernel/fork.c (.../runk) (revision 69)
  @@ -261,7 +261,7 @@
   }
   
   #ifdef CONFIG_MMU
  -static inline int dup_mmap(struct mm_struct * mm, struct mm_struct * oldmm)
  +int __dup_mmap(struct mm_struct * mm, struct mm_struct * oldmm, int cow_ok)

-- 
--Ed L Cashin            |   PGP public key:
  ecashin_at_uga.edu        |   http://noserose.net/e/pgp/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 3 00:11:38 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.