patch

Schema Patches Practices

Hello, We've got a schema in Postgres, and we want to institute a good method to apply schema patches. Currently, we have a series of DDL files that create the schema, tables, sequences, functions, etc. We also have a population script for test environments. Those files are all used to recreate our database environments, for developm...

How do you apply a patch to ruby on rails?

I'd like to apply the action_mailer patch mentioned in this thread but I have never applied a patch before and I'm not sure how these work: https://rails.lighthouseapp.com/projects/8994/tickets/2263 My action mailer gem is here: /opt/ruby-enterprise-1.8.6-20090421/lib/ruby/gems/1.8/gems/actionmailer-2.3.2 I assume I need to go to that ...

How to apply a git patch from one repository to another?

I have two repositories, one is the main repo for a library, and the other is a project using that library. If I make a fix to the in the subservient project, I'd like an easy way to apply that patch back upstream. The file's location is different in each repository. Main repo: www.playdar.org/static/playdar.js Project: playlick.com/...

Is there anyway to save a patch/diff file in Araxis Merge?

I am merging some code and would like to save one diff to compare against another diff. (I'm in the dreaded diff-the-diff's scenario). Anywho, the normal way I would do this would be to save to patch files and compare them to make sure the correct changes were applied. Is there anyway to get Araxis to generate a patch file for a diff I'...

Locally patching & maintaining third-party library code

...

how to apply a patch to a Java project?

The patch is for nutch0.9: http://cvs.tty.org/~butch/blog/nutch_0.9_OR.patch how should I apply the patch correctly? OS is windows XP More specifically,I'm using eclipse to debug nutch project. Here is my trial: D:\nutch-0.9.bak>patch -p0 < nutch_0.9_OR.patch Hmm... Looks like an ed script to me... (Patch is indented 5 spaces.) The...

patch format

What does the following mean ? diff -rBNu src.orig/java/org/apache/nutch/analysis/NutchAnalysisConstants.java src/java/org/apache/nutch/analysis/NutchAnalysisConstants.java --- src.orig/java/org/apache/nutch/analysis/NutchAnalysisConstants.java 2009-03-10 11:34:01.000000000 -0700 +++ src/java/org/apache/nutch/analysis/NutchAnalysisConst...

transforming patch strip level

Suppose I have a patch that can be applied with -p0, is there a tool to automatically transform this patch into a -p1 patch. For example, transforming Index: stdio-common/_i18n_number.h =================================================================== --- stdio-common/_i18n_number.h (revision 8348) +++ stdio-common/_i18n_number.h (wor...

Patch stack tools for Windows

Are there any equivalents in the Windows world for patch stack management tools like Linux's quilt? I'm trying to come up with some development workflows for our environment, which need to work on both Linux and Windows. I can come up with a beautiful system for Linux using quilt and the like, but unless I can find a way to replicate i...

Problem with "...may require additional dependencies..." during patch (MSP) installation

Symptons I have a newly created patch. It installs over the RTM installation without problems. But it displays the following message, "This installation may require additional dependencies. Without its dependencies, [My App] may not work correctly. Would you like to find the original [My App.exe]?" Since my original setup is a single f...

Can I modify git-add's hunk size?

I have a file that I've been working on and then realized that I had a mistake in it a few lines above where I've been working. I quickly fixed the mistake and want to commit it before I commit the rest of my work. Great, this is where git add --patch comes in! Except, I'm being presented with only one hunk incorporating both changes. I...

To create a Patch for Rietveld by git/patch/*

I have a file where I added a print -statement such that print "hello" // this is a change ----- file ------- I have the change in my Git's commit tree. I would like to have a patch which I can use for Rietveld. I get the following when I have the changed file at Data, while the unchanged file at Base. How can you make ...

Patch a Ruby Gem

What is the best way to apply a simple patch to a Ruby gem in a Rails app? Is it possible to keep the original gem code untouched? ...

Is there a commonly-used filename extension for unified diff format?

E.g. .difffile, .diff? ...

Adding new files from a patch to the original app's uninstall log?

We have an application already out in the wild, and are trying to put together a patch for it. The patch changes a few files in the original, and more importantly adds a few new files. Both the original app and the patch are installed using InstallShield 2008. The problem we're having is that when the original uninstaller is run, it o...

TortoiseSVN: "The patch seems outdated"

I'm creating a patch on trunk and, when applying it to another branch, get "The patch seems outdated" error. I didn't find a resolution on Google. The trunk has just been merged to the branch. I'm using 64bit TortoiseSVN v1.63 on Windows 7. ...

Patch vs. Upgrade

How do you distinguish between a "patch" and an "upgrade"? Where do you draw the line? A certain specification says I need to do "X" whenever I release an upgrade to the product. I need to draw the line somewhere. I don't want to violate this spec, but I've never really explicitly defined it before. ...

Splitting a patch in two (ideally in Vim)

I have a patch which I'd like to split into two patches. I need to split the patch with per-line granularity -- I can't just split the hunks up into two separate files. I could use Emacs diff mode, but I'm a Vim user, and I don't want to learn Emacs. I'm managing this patch in Mercurial Queues, and I've been using the crecord plugin, ...

Protecting executable from being patched

My logic of APT (Anti-Paching Technology) is as follows... 1) Store on the MSSQL server the md5 hash of the executable for protection. 2) Perform an md5 comparison (within my application startup) the hash found on the server, with the executable itself. 3) If comparison fails exit application silently. And all these above before it i...

showing differences within a line in diff output

This StackOverflow answer has an image of KDiff3 highlighting intra-line differences. Does someone know of a tool which can show the same (ex, via color) on the command line? Another way to think of this is wanting to diff each difference in a patch file. ...