That's what patch's -p option is for. If your local path is src/ReviewBoardTest.java, and the diff has /trunk/ReviewBoardTest/src/ReviewBoardTest.java, you can apply the patch using:
patch -p3 < ReviewBoardTest.java -David On Wed, Feb 19, 2014 at 1:26 PM, Allen <zhangsan8...@gmail.com> wrote: > Yes, that`s the relative path to the Repository in the SVN server. The > thing is when I run "svn dff", I get these paths: > Index: src/ReviewBoardTest.java > =================================================================== > --- src/ReviewBoardTest.java (revision 167) > +++ src/ReviewBoardTest.java (working copy) > The paths above are my local ones, and I can use these paths do a "apply > patch", > While when I run "rbt diff", I got those paths that I mentioned in the > first place, and I can not use those paths to do a "apply patch". > > On Wednesday, February 19, 2014 11:40:27 AM UTC-5, Andrew Hills wrote: > >> Is it just me, or do those paths look identical? Those are paths >> relative to the repository root, and doesn’t seem to have anything to do >> with remote servers. >> >> On Feb 19, 2014, at 10:40 AM, Allen <zhangs...@gmail.com> wrote: >> >> After a code review is created, there`s a button for user to download >> the patch file. >> The problem I have here is, I tried to apply that patch file to my local >> working copy, but the paths are wrong! >> Seems the "rbtool" changes all the files` path when creating a code >> review. >> >> Here`s a example of what those paths look like: >> >> --- /trunk/ReviewBoardTest/src/ReviewBoardTest.java (revision 166) >> +++ /trunk/ReviewBoardTest/src/ReviewBoardTest.java (working copy) you >> see here? The working copy is locally, but the review board changes its path >> to remote server. >> >> >> I think it will be great if I can just simply download the patch file and >> apply it without modifying the paths. Any idea about why the paths are >> changed? Thansk! >> >> >> -- >> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ >> --- >> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ >> --- >> Happy user? Let us know at http://www.reviewboard.org/users/ >> --- >> You received this message because you are subscribed to the Google Groups >> "reviewboard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to reviewboard...@googlegroups.com. >> >> For more options, visit https://groups.google.com/groups/opt_out. >> >> -- > Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ > --- > Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ > --- > Happy user? Let us know at http://www.reviewboard.org/users/ > --- > You received this message because you are subscribed to the Google Groups > "reviewboard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to reviewboard+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.