How do I apply someones patch to my copy of someones project?

Oct 29, 2008 at 5:07 PM
Edited Oct 29, 2008 at 5:15 PM
Im using a project on here for a web site. i use TortoiseSVN pretty regularly for my own projects. 

The project im using off of CodePlex has an error that a user has posted a patch for.
See Here: http://www.codeplex.com/aspnetxmlproviders/WorkItem/View.aspx?WorkItemId=10004

you can see by reading the post that not even the author of the tool knows how to apply the patch. How do i get the data from this patch?  This issue is causing all sorts of  problem with my site


Unfortunately if I download the attached patch and try to apply it with Tortoise I receive [The line "index" was not found! Either this is not a diff file or the diff is empty.]


it looks like just one file has been patched as i can open it with notepad and see that only one path has been listed.  Do i need to use .net to convert this stream to text? has to be easier than that.


Im listing the text of the patch below [minus the majority of the data stream]

<?xml version="1.0"?>
<patch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.codeplex.com/schema/PatchSchema-1.0.xsd">
  <update path="$/aspnetxmlproviders/XmlProfileProvider.cs" csid="16947" compression="deflate">7b0HYBxJliUmL23Ke39K9UrX4HShCIBgEyTYkEAQ7MGIzeaS7B1........</update>
</patch>

Coordinator
Oct 30, 2008 at 9:20 PM
Please see: http://www.codeplex.com/CodePlexClient/Wiki/View.aspx?title=HowToAcceptContributions
Oct 30, 2008 at 10:22 PM
Edited Dec 29, 2008 at 12:12 AM
When I follow the exact instructions i receive the following output

Unhandled exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at CodePlex.TfsLibrary.PatchEngine.ApplyPatch(String directory, String patchXml, SourceItemCallback callback)
at CodePlex.CodePlexClientLibrary.ApplyPatchPresenter.ApplyPatch(String directory, String patchFilename)
at CodePlex.CodePlexClientLibrary.ApplyPatchCommand.Execute()
at CodePlex.CodePlexClientLibrary.ApplicationBase`1.Run(DependencyContainer container)
at CodePlex.CodePlexClientLibrary.ApplicationBase`1.Run()


Ive got tortoise svn and tortoise merge installed and have downloaded a clean copy of the src from this site. is this an issue with the codeplex client? Ive tried lots of different combinations with this but it's not working out. can one of you check this out please. It's a bit of a pain