patch

Patching Java software

I'm trying to create a process to patch our current java application so users only need to download the diffs rather than the entire application. I don't think I need to go as low level as a binary diff since most of the jar files are small, so replacing an entire jar file wouldn't be that big of a deal (maybe 5MB at most). Are there st...

Always fail to apply SVN patch on remote Linux machine

My typical work process is like: Check out the codes from trunk on to my windows work machine Do some fixes (but no commit the SVN) and create a patch of these modifications using Tortoise SVN's "Create Patch". SSH log into a remote Linux server, and upload the patch. The linux server also has the trunk HEAD checked out. Apply the patc...

Using patch files with TFS (patch file is from subversion, git, etc)

Can patch files be read by TFS or visual studio? I'd like to either create a shelveset or apply the patch to a workspace in TFS. ...

create data patch for database (synchronize databases)

There is 2 databases: "temp" and "production". Each night production database should be "synchronized", so it will have exactly same data as in "temp". Database sizes are several GB and just copying all data is not an option. But changes are usually quite small: ~100 rows added, ~1000 rows updated and some removed. About 5-50Mb per day. ...

How to organize patch files? Many files or a single one?

What is the best way to organize the patch files? Imagine you have a patch file for an open source application and you modify it and want to keep the modifications in a patch. What is the best solution: add the new modifications to the other patch in order to have a single big patch file or create the second patch file and have a bunch ...

Patching Asp.net Mvc2 AntiForgeryToken exception

Some background to my issue: It appears that there is a change/bug in Mvc2 concerning ValidateAntiForgeryTokenAttribute. When upgrading from Mvc1 to Mvc2, users with an active session will receive the following error when they request a page using ValidateAntiForgeryTokenAttribute: Unable to cast object of type 'System.Web.UI.Trip...

Files in RemoveFile table don't get removed during Patch

Hi, I am releasing a new version of my product (minor upgrade), which I'm planning to package as a patch. This is a Basic MSI project in InstallShield 2009. The installer creates some shortcuts on the desktop and in the All Program menu, this shortcuts make a reference to the version number, e. gr. "My Product 7.3", "My Product 7.3.2"....

How can I create a patch between a tag and the HEAD of a branch in CVS?

I have the following script but it looks like is comparing the tag with Head instead of the Branch: @echo off cd outlook SET /P startTag=Enter the start tag name to be compared with current HEAD SET /P branch=Enter the branch name to be used in comparison cvs patch -kk -R -r %startTag% -D now outlook> ../%startTag%.patch cd ../ What d...

git apply a patch as much as possible when failing

Hi, I am moving from one repository to another and need to port some of the changes. The directory structure is mostly the same but the files not all identical. I am using 'git format-patch' and 'git am' or 'git apply' to port those changes. When it works, life is good, but when it fails because of some minor change or files missing, n...

removing trailing whitespace for all files in ediff-trees session

Hi, I am using the very handy ediff-trees.el http://www.emacswiki.org/emacs/ediff-trees.el to compare two versions of a pile of Python code provided by one of my project partners. Unfortunately, these guys are checkin in code with trailing whitespace (extra tabs here and there...) which is creating a ton of false positive diffs, whic...

Permanently reversing a patch-file

Sometimes, for whatever reason, I have to produce patch-files (under Linux) that are in the wrong direction. I know that I can deal with this by using the -R switch when applying it via patch, but it would be nice if there were a way of permanently reversing the patch-file. Is there a utility that can do this, or e.g. a regex that woul...

C#: Programmatically apply merge/patch to file?

I have a program that requires a few large (~4 or 5mb) files. Once a week, every week, there are new versions of these files with minor changes. Mostly just a few lines added or removed. When the program starts, if there's an Internet connection, I'd like the program to update these files automatically. Instead of downloading the entire...

How do you get a list of files included in a diff?

I have a patch file containing the output from git diff. I want to get a summary of all the files that, according to the patch file, have been added or modified. What command can I use to achieve this? ...

Is it possible to patch a memory leak using a try-catch statement?

if(pCoeff.size()>thisCoeff.size()){ difference=pCoeff.size()-thisCoeff.size(); for(int i=thisCoeff.size(); i<thisCoeff.size()+difference;i++){ thisCoeff.add(i, new Double(0.0)); //this line throws errors } } I've isolated this portion of my program as being the cause of memory leak, is it...

How to patch wireless driver rtl8187 for 2.6.30 kernels?

I am using Backtrack 4 (installed on hdd), and I have an USB wifi adapter that uses rtl8187. I am trying to test wep cracking on my router (the signal is about 80%). I executed aireplay -9 and it shows "Injection is working 30/30 100%". But when start airodump to capture ivs, and aireplay -3 to inject, it only captures 1 iv every few s...

Applying same changes to diverged GIT branches

I've got a project which has a master branch and a stable branch - the branches diverged long time ago. Now I've got a couple commits on the stable branch, which I also want to have on the master branch (a bug fix). I cannot merge, as the branches diverged and there's loads of unmerged changes - I just want the 4 commits. So I tried che...

How do I create a patch from diff between revisions using TortoiseSVN?

I'm working on a project where Subversion is used to maintain version control. I use TortoiseSVN to access the project repository. Some changes were made between two revisions on a project (let's call them rev1 and rev2), and I want to be able to apply these changes to a working copy somewhere that temporarily does not have access to th...

Adding full directory via diff & patch

Hi. Is it possible to add a full directory via diff and patch? It seems as very convenient way to add additional modules on top of standard code-base. I googled for some solutions, but they generally work on file level, not on directory level. Thanks. ...

locate extended attributes

Is there a simple way to write a kind of wrapper script or patch for updatedb (or locate) such that locate can find user defined extended attributes (tags) (suppose in an ext3 filesystem, mounted with user_xattr option), too? ...