Diffs could be better
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Wishlist
|
Unassigned | ||
Breezy |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
I just got a diff a lot like this:
> === modified file 'foo.py'
> --- foo.py 2007-12-21 09:52:42 +0000
> + foo.py 2008-03-05 12:10:43 +0000
> @@ -13,7 +13,8 @@
>
> class IFoo(Interface):
>
> - bar = Attribute("The bar.")
> + baz = Attribute("The qux baz.")
> + bar = Attribute("The qux bar.")
> frob = Attribute("The frob name.")
>
> name = Attribute("The frob name as text.")
It would be nicer as:
> === modified file 'foo.py'
> --- foo.py 2007-12-21 09:52:42 +0000
> + foo.py 2008-03-05 12:10:43 +0000
> @@ -13,7 +13,8 @@
>
> class IFoo(Interface):
>
> + baz = Attribute("The qux baz.")
> - bar = Attribute("The bar.")
> + bar = Attribute("The qux bar.")
> frob = Attribute("The frob name.")
>
> name = Attribute("The frob name as text.")
Rob told me to file this :)
tags: | added: check-for-breezy |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
tags: |
added: diff removed: check-for-breezy |
I think bazzar used diff to do this. For example, if you have two files a1.txt and a2.txt as below.
a1.txt
=====
bar = Attribute("The bar.")
frob = Attribute("The frob name.")
name = Attribute("The frob name as text.")
=====
a2.txt
=====
baz = Attribute("The qux baz.")
bar = Attribute("The qux bar.")
frob = Attribute("The frob name.")
name = Attribute("The frob name as text.")
=====
Now check following commands
diff -u b.txt a.txt ======= ======= ======= ======
=======
--- b.txt 2008-11-17 16:08:14.000000000 -0600
+++ a.txt 2008-11-17 16:09:05.000000000 -0600
@@ -1,4 +1,5 @@
-bar = Attribute("The bar.")
+baz = Attribute("The qux baz.")
+bar = Attribute("The qux bar.")
frob = Attribute("The frob name.")
name = Attribute("The frob name as text.") ======= ======= ======= ======
=======
So, we need to find a package for diff utility and may be change this bug for that package if you feel like.