diff

Change default SVN diffing tool

感情迁移 提交于 2019-11-28 23:22:42
Following a blog, I created a batch file, wm.bat: "d:\svnroot\external\winmerge\WinMerge.exe" /B /WAIT "d:\svnroot\external\winmerge\WinMergeU.exe" /e /ub /dl %3 /dr %5 %6 %7 And I tried calling svn diff | wm but that didn't work. So how do I integrate WinMerge or similar utility with svn diff ? Extending on David's answer below, changing the default for Windows requires editing the configuration file located at (for Windows XP) C:\Documents and Settings\%USERNAME%\Application Data\Subversion\config or (Windows Vista) C:\Users\%USERNAME%\AppData\Roaming\Subversion\config David Dean Ok, looking

3-way XML merge algorithm

偶尔善良 提交于 2019-11-28 23:04:48
问题 I want to be able to do a 3-way merge of XHTML documents: Start with some original copy of the document One user edits a copy of the original document Another user edits a separate copy of the original document Need a tool to merge (automatically and/or visually) the changes made by the two users. Note: I want to include this functionality in commercial software: so I prefer something that's free-as-in-beer and/or open source, instead of a commercial tool. I suspect it's better if the tool is

Create “patch” between revisions?

半城伤御伤魂 提交于 2019-11-28 23:00:38
It seems SVN's "patch" functionality is not exactly what I want. What I really want is to create a diff of files between revisions. So, I'd choose rev1 and rev 2 and end up with a folder containing all files that were changed or added between those revisions. Can this be done with Tortoise SVN or plain-old svn? This can be achieved in tortoise SVN itself. Right click on the branch(folder) from where you want to create the patch >> Show Log >> Select All the revisions for which you need to create the patch >> Right Click and select Compare revisions >> This will show the changed files >> Select

Git: Compare All Local Commits to Remote Repo Version

空扰寡人 提交于 2019-11-28 22:29:49
I'm somewhat new to Git and what I'm trying to do seems like it should be possible. Basically I've been working off of clone of a repo and have made quite a few local commits. Is there a way to see the diff of the 'sum' of all my changes and the original repo version? I would assume this would be possible because Git will essentially do this when I do a push . Here is an example of what I'm trying to do: in gitk I will see something like this: * - [mybranch] Added '42' to end of answers.txt (local commit) * - Added 'Hello World' to end of my.txt (local commit) * - Added 'C#/.NET' to beginning

Git: what does the number of +/- signs in diff / merge output mean? [duplicate]

孤人 提交于 2019-11-28 21:04:53
Possible Duplicate: Git Merge: What does this mean? Git diff --stat explanation Sorry for the stupid question, but i can't find a clear answer anywhere. When you merge two branches in git, you get an output like that : some_file.txt | 564 ++++++++++++++-- I undestand that + and - mean addition and deletion, but : what does the number of signs represent ? when you have few changes, each sign seem to represent a line, but when you have more signs, i can't get the logic of the representation is it some sort of percentage of changes ? My guess is that the number of signs represents a relative

Common algorithm for generating a diff of the fields in two beans?

£可爱£侵袭症+ 提交于 2019-11-28 20:52:10
Let's say you have two instances of the same bean type, and you'd like to display a summary of what has changed between the two instances - for example, you have a bean representing a user's settings in your application, and you'd like to be able to display a list of what has changed in the new settings the user is submitting (instance #1) versus what is stored already for the user (instance #2). Is there a commonly used algorithm or design pattern for a task such as this, perhaps something that can be abstracted and re-used for different types of beans? (I'm having a hard time thinking of a

How to perform a three-way diff in Git without merging?

这一生的挚爱 提交于 2019-11-28 20:28:15
I want to perform a three-way diff between two git branches with a common merge base, and view it with kdiff3. I've found lots of guidance on SO (and a few very similar questions ( 1 , 2 , 3 ) ) but I haven't found a direct answer. Notably, a comment on this answer implies that what I want is possible, but it didn't work for me. Hopefully that user might chime in here :) For background, when I perform merges I use a "diff3" conflict style: git config --global merge.conflictstyle diff3 And I have git mergetool configured to use kdiff3. When resolving merge conflicts this shows me four files:

Highlight text diff on client?

为君一笑 提交于 2019-11-28 19:37:38
I want to compare 2 text values on a web page and highlight the differences. Can I do this client-side, preferably with jQuery or Prototype? This diff-patch-match library appears to do a really good job: http://code.google.com/p/google-diff-match-patch/ The project has JavaScript, C#, C++, Python, and Java implementations that all do the same thing. Check out the the wikEd diff library and the online tool and demo . The library creates inline text comparisons with block move highlighting and is character/word-based. It has been optimized for Wikipedia, but works equally well for other text

Examples of different results produced by the standard (Myers), minimal, patience and histogram diff algorithms

邮差的信 提交于 2019-11-28 19:35:26
问题 Git offers these 4 diff algorithms, but without any further information what are their differences. What are the advantages of each of this algorithms? Is there some comparison of various cases where the algorithms perform differently? 回答1: I think there are multiple algorithms supported because none of the algorithms are clearly the best choice in all cases. The differences are in readability of the patch output and processing time needed to generate the patch. Summarizing, this is what I

Algorithm to detect similar documents in python script [closed]

放肆的年华 提交于 2019-11-28 19:25:07
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I need to write a module to detect similar documents. I have read many papers of fingerprints of documents techniques and others, but I do not know how to write code or implement such a solution. The algorithm