diff

How do I get mercurial to show the diff during `hg com`?

Is there a way to configure hg com so that in the commit message file that pops up in the external editor, instead of just showing which files were changed (in the HG: lines) it actually shows the full diff? I'd rather view the output and compose my commit message simultaneously from the comfort of my text editor as opposed to doing hg ...

Displaying only the similarities between 20 or so files?

Say I've got a directory full of html pages. Their headers and footers are basically the same, but I want to be able to see only the portions of all the pages that are the same. I'd like to call it an n-way merge, but that isn't what it is, it's looking for just the similarities between the header and the footers of all the files. (an...

Are there any n-way diff tools with vertical compare?

I started using diffuse, which you can use to compare multiple files together with, but it's some what useless since you can't horizontally compare lines when you have like 20 files you need to compare together, I was thinking maybe one line from all twenty files displayed horizontally. ...

c++ line-based unified diff library

Does anyone know of a good c++ library that can provide a line-based unified diff? ...

is there a tool to see the difference between two database tables in SQL Server?

What is a good tool to see the differences between 2 tables (or even better, the datasets returned by 2 queries). EDIT: I'm not interested in the schema changes. Just assume that the schemas are the same. background as to why: I'm porting some legacy code which can fill a database with some pre-calced data. The easiest way to see if I ...

Is there any way to svn diff or svn merge across multiple non-sequential revisions at once?

So in SVN you can do things like: svn merge -r555:558 svn diff -c551 but (as far as I know) there is no way to do: svn merge -r555:558, 592:594 svn diff -c551, 557, 563 For merges you can always just do several commands in sequence: svn merge -r555:558 svn merge -r592:594 but for diffs doing that will just result in multiple dif...

Shell Script - comparing lines of text, deleting matches

Hi all, I've done some searching for this but cannot find what I'm after, specifically. I have two files: "a.txt", "b.txt". Each contains a list of email addresses, separated by newlines. For all lines in "a.txt", I need to check for a match anywhere in "b.txt". If so, the email address in "a.txt" needs to be removed. (Alternativel...

how to diff / align Python lists using arbitrary matching function?

I'd like to align two lists in a similar way to what difflib.Differ would do except I want to be able to define a match function for comparing items, not just use string equality, and preferably a match function that can return a number between 0.0 and 1.0, not just a boolean. So, for example, say I had the two lists: L1 = [('A', 1), (...

Diff directories with content in Netbeans

Hello ! I duplicated some folder with project's config to a new project a few days ago and made there some modifications (project name, paths, etc). After few days a source config dir has changed and I am wondering how to diff that folders in 2 projects to apply that changes in new project. If I select source file and then new file and...

Percentage value with GNU Diff

What is a good method for using diff to show a percentage difference between two files? Such as if a file has 100 lines and a copy has 15 lines that have been changed the diff-percent would be 15%. ...

Is there anything available for .NET to get the differences in two strings?

I'm looking for a way to determine the differences between two strings, and highlight them in both strings. I would suspect that most 'diff' libraries won't work since they show differences in lines (I believe). Either an algorithm or library will work. Thanks, Mark ...

Is there a quick way to do a cksum on output going to stdout?

I want to compare the a list of files in two directories quickly. I can use the following $ ls /opt/myapp/ >> ~/myapplist $ cksum ~/myapplist 3476215496 7657 /u/compll07/ojblass/myapplist $ ls /opt/myapp2/ >> ~/myapp2list $ cksum ~/myapp2list 3476215496 7657 /u/compll07/ojblass/myapp2list And compare the ...

How to diff custom file list with WinMerge

Hello, I have a code directory structure, which is this: modudle1 trunk pom.xml branches 1.1 pom.xml modudle2 trunk pom.xml submodule-2.1 pom.xml submodule-2.2 pom.xml branches 1.1 pom.xml submodule-2.1 pom.xml submodule-2.2...

How can I tell whether two .NET DLLs are the same?

I have the source for a DLL and I have a compiled version of it lying around somewhere. If I compile the source it will have a different date to the already-compiled version. How can I tell whether they are in fact the same and have merely been compiled at different times? ...

How to generate a unified diff in Ruby?

After reading through this question about Ruby diff packages, I'm still not sure how to generate a unified diff from two text files. I'm not having trouble reading each file into a string (IO.read()), but I'm not finding any package that can generate a unified diff. Does one exist? Is doing a system call to diff even an option I should c...

Unix diff ignoring lines starting with a sequence

How can I diff two files and ignore lines starting with a sequence. E.g File1: abc def time:123 File2: igh def time:345 With unix diff it will report <time:123 >time:345 I want to ignore this diff. Any ideas? ...

Producing an view of a text's revision history in Python

I have two versions of a piece of text and I want to produce an HTML view of its revision similar to what Google Docs or Stack Overflow displays. I need to do this in Python. I don't know what this technique is called but I assume that it has a name and hopefully there is a Python library that can do it. Version 1: William Henry "...

Unix diff to only print relevant diff

I have these two files File: 11 11 456123 File: 22 11 789 Output of diff 11 22 2c2 < 456123 --- > 789 Output to be < 456123 > 789 I want it to not print the 2c2 and --- lines. I looked at the man page but could not locate any help. Any ideas? The file has more than 1000 lines. ...

How do you get subversion diff summary to ignore mergeinfo properties?

I have subversion 1.6.5 client and 1.5.4 server. And I mostly only care about diffs on fully repository paths, not working copies. When diffing branches, ones that have been merged already show up as identical except for the mergeinfo properties. This is a touch annoying for a human who has to then look through the changes looking for ...

Mercurial: Creating a diff of two commits

Is there a way to get the changes of two commits with mercurial? The second commit is not directly after the first one, there are some other ones between them. I tried hg diff [some params] --change xxxxx --change yyyyy > file.patch but that only includes the last changeset. If there is no way to achieve this with hg, is there maybe...