You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ed L Cashin <ec...@uga.edu> on 2003/07/02 22:10:42 UTC

create diff for "patch -p1"?

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@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