patch

How should I handle product upgrades in a WiX installer?

陌路散爱 提交于 2019-12-03 12:53:38
I have a reasonably large WiX installer (250 Mb plus) and I am trying to come up with a suitable upgrade strategy. Most of the files in the installer will not change and we would prefer not to have to distribute the whole package when only one or two files have changed. I have looked into major and minor upgrades and my understanding is that a major upgrade will happen if the Product ID changes, so long as the Upgrade ID stays the same and minor upgrade patches can be used if both of these values stay the same. My feeling is that a minor upgrade using a patch would be the best option to handle

Does Symfony 2 support partial form binding?

混江龙づ霸主 提交于 2019-12-03 12:42:25
问题 My question(s): Does Symfony 2 have support for PATCH requests, or any type of partial form content submissions? If so, is there a "correct" (or, more accurately "preferred") way to do this? Aside from the PRE_BIND (see below) event approach, are there any other patterns or ways to solve this problem? If there are other ways of solving this problem, are any of them considered better, or worse, than others? What I've found/done so far: According to a pull request on Github (#5576), work was

How to edit a diff/patch file cleanly ? Are there any patch file editors?

淺唱寂寞╮ 提交于 2019-12-03 11:38:09
问题 Scenario: I have a patch file that applies cleanly to my working files, but I do not want all the changes from the patch. Usually, I do vim example.patch , remove unwanted changes and them apply patch -p0 -i example.patch but at times the patch does not apply cleanly, and I have to start over again. Is there a patch file editor that allows users to edit and delete part of the patch and still can apply cleanly ? 回答1: If you open a diff file in emacs and put the editor in "diff" mode you can

Bitbake recipe not applying patch as expected

余生颓废 提交于 2019-12-03 11:17:10
问题 I have a tarball src.tar.gz whose contents are unpacked into src/ and a patch of this sources generated with this command: $ diff -Nurp src/ src_mod/ > my.patch The patch header starts with this three lines: diff -Nurp src/path/to/file src_PATCHED/path/to/file --- src/path/to/file 2012-10-22 05:52:59.000000000 +0200 +++ src_PATCHED/path/to/file 2016-03-14 12:27:52.892802283 +0100 My bitbake recipe references both path and tarball files using this SRC_URI: SRC_URI = " \ file://my.patch \ file:

Patch - Why won't the relative patch target name work?

江枫思渺然 提交于 2019-12-03 11:13:28
问题 I've imported a class from a module, but when I try to patch the class name without it's module as a prefix I get a type error: TypeError: Need a valid target to patch. You supplied: 'MyClass' For example, the following code gives me the above error: import unittest from mock import Mock, MagicMock, patch from notification.models import Channel, addChannelWithName, deleteChannelWithName, listAllChannelNames class TestChannel(unittest.TestCase): @patch("Channel") def

How to create a patch in IntelliJ IDEA?

独自空忆成欢 提交于 2019-12-03 11:11:45
I've been using IntelliJ IDEA 9.0 Community Edition for some time after years living in Eclipse. One thing seems to be hard to find in it. I'd like to create a patch on some subfolder in my project. In Eclipse it is done using right click, Team, Create Patch. Does anybody know how to do that in IDEA? Use the Changes view. In the group by directory mode you can right click on the directory with changes and choose Create Patch from the context menu. You can do a right click Local History -> Show History and then choose a revision and click on patch button (the second from the left) In the Local

How do I get patch to ignore carriage returns?

可紊 提交于 2019-12-03 10:52:15
问题 I'm attempting to apply a patch to a file with Windows line endings on a Linux system and I'm getting conflicts due to the carriage returns in the file. The -l option (ignore whitespace) isn't ignoring the EOL characters. Is there anyway to get patch to ignore windows style line endings? 回答1: Try using the --binary option, from the manpage (emphasis mine) --binary Write all files in binary mode, except for standard output and /dev/tty. When reading, disable the heuristic for transforming CRLF

How to manage a Git “upstream” branch and related patches?

偶尔善良 提交于 2019-12-03 09:37:35
Recently I had an issue where I was given a patch for an assignment, as the professor had changed the code to add new functionality. Unfortunately, I had already put the original codebase in git and had made lots of changes and commits already. The workflow I used to apply the patch is as follows: git checkout <hash_of_where_patch_should_go> git checkout -b patch_branch git apply patch git add ./* && git commit -m "applying patch" git rebase master patch_branch //Fix merge conflicts git rebase patch_branch master This worked wonderfully, but my question is this: is this the 'correct' way to

Better way of making Git to turn a blind eye on my changes

北城余情 提交于 2019-12-03 09:03:27
Is there some cleaner way to make Git just ignore some of my changes and never commit them? .gitattributes: config_to_be_deviated.xml filter=qqq .git/config: [filter "qqq"] clean = "perl -ne 'print unless /git_please_dont_look_here/'" smudge = (Q=$(mktemp) && cat > $Q && patch -s $Q < /tmp/pp && cat $Q && rm $Q) The patch /tmp/pp adds my changes with "git_please_dont_look_here" in each line. Git removes all such lines before getting the file into repository and readds my changes when checking out it; I can continue adding and committing useful changes to config_to_be_deviated.xml , but changes

applying email patch with git

岁酱吖の 提交于 2019-12-03 08:41:29
I would like to apply a patch sent with git-send-email. Currently I have to type everything to the specific files.This is a hacky and very slow as my workload is increasing.I would like to know how I could get a fairly large patch into my git tree faster for testing. Thanks in advance Check to see if the patch applies without errors: git apply --check <patchname> Apply the patch: git apply <patch name> Here is a blog post where you can get more info on email patches. You can apply patches from email-formatted patch using any raw data viewer. For example, GMail, in the current interface, has