Merge lp:~garyvdm/bzr/diff_using_gui into lp:bzr
| Status: | Work in progress |
|---|---|
| Proposed branch: | lp:~garyvdm/bzr/diff_using_gui |
| Merge into: | lp:bzr |
| Diff against target: |
274 lines (+139/-22) 4 files modified
NEWS (+9/-0) bzrlib/builtins.py (+13/-1) bzrlib/diff.py (+69/-19) bzrlib/tests/test_diff.py (+48/-2) |
| To merge this branch: | bzr merge lp:~garyvdm/bzr/diff_using_gui |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| John A Meinel | 2010-04-26 | Needs Fixing on 2010-05-12 | |
| Gordon Tyler | 2010-04-25 | Needs Fixing on 2010-04-25 | |
|
Review via email:
|
|||
Description of the Change
This makes "diff --using" work better with gui diff apps.
This allows one to either run the diff command once, with a list of files to diff, e.g.:
bzr diff --using "meld [--diff]"
or to run the command once per file, but run the processes simultaneously, e.g.:
bzr diff --using "WinMergeU.exe /s &"
This fixes Bug 490212.
- 5172. By Gary van der Merwe on 2010-04-25
-
Update NEWS.
- 5173. By Gary van der Merwe on 2010-04-25
-
Merge bzr.dev.
| Gary van der Merwe (garyvdm) wrote : | # |
Thanks Gordon. Fixed. I did a uncommit, so you may need to do a pull --overwrite.
| Aaron Bentley (abentley) wrote : | # |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/25/2010 11:40 AM, Gary van der Merwe wrote:
> This allows one to either run the diff command once, with a list of files to diff, e.g.:
> bzr diff --using "meld [--diff]"
>
> or to run the command once per file, but run the processes simultaneously, e.g.:
> bzr diff --using "WinMergeU.exe /s &"
What about the other way of using meld, where you specify the
directories to diff and the command recursively diffs them? The
original difftools plugin supported "fldiff", "kdiff3", "kompare",
"meld", "opendiff" and "xxdiff" as "TreeDiffTools".
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkv
l6QAnRB1CBjF+
=bKRS
-----END PGP SIGNATURE-----
| Gary van der Merwe (garyvdm) wrote : | # |
On 27/04/2010 04:54, Aaron Bentley wrote:
> What about the other way of using meld, where you specify the
> directories to diff and the command recursively diffs them? The
> original difftools plugin supported "fldiff", "kdiff3", "kompare",
> "meld", "opendiff" and "xxdiff" as "TreeDiffTools".
I view that as a separate feature, which I've allready started working
on. I'm useing Jelmers new format option, which means to get that
behavior, you use:
bzr diff --using meld --format ext-tree
| John A Meinel (jameinel) wrote : | # |
Having a mini-command line language to define what command to run seems a bit tricky, vs the original difftools method which just keeps a registry of known commands. I think Robert also agrees that communicating how to write a diff command is a bit hard to communicate. And telling people to just write a wrapper isn't seen as a reasonable solution on Windows.
As such, I'd rather see more of the difftools approach here, where you have a known list (registry) of tools that we know how to invoke on request.
248 + diff_obj = DiffFromTool(
249 + 'print "@old_path @new_path"'],
250 + None, None, output,
251 + simultaneous_
At a minimum, we should be using 'sys.executable' here, since you can't guaranteed that it is accessible simply as 'python'.
If you have simultaneous_
- 5174. By Gary van der Merwe on 2010-06-16
-
Merge bzr.dev.
- 5175. By Gary van der Merwe on 2010-06-16
-
Make tests pass (caused due to change in imports merged from bzr.dev.)
Unmerged revisions
- 5175. By Gary van der Merwe on 2010-06-16
-
Make tests pass (caused due to change in imports merged from bzr.dev.)
- 5174. By Gary van der Merwe on 2010-06-16
-
Merge bzr.dev.
- 5173. By Gary van der Merwe on 2010-04-25
-
Merge bzr.dev.
- 5172. By Gary van der Merwe on 2010-04-25
-
Update NEWS.
- 5171. By Gary van der Merwe on 2010-04-25
-
Test simultaneous_
processes, and list_template behaviors. - 5170. By Gary van der Merwe on 2010-04-25
-
Documentation for new --using usage.
- 5169. By Gary van der Merwe on 2010-04-25
-
Add tests for from_string.
- 5168. By Gary van der Merwe on 2010-04-25
-
Fix existing tests.
- 5167. By Gary van der Merwe on 2010-04-24
-
Add syntax for diff --using to launch with a list of files to diff.
- 5166. By Gary van der Merwe on 2010-04-24
-
Add syntax for diff --using to launch processes simultaneously.

Looks like there's a merge conflict in test_diff.