Comment 5 for bug 71307

Revision history for this message
Aaron Bentley (abentley) wrote : Re: [Bug 71307] Re: "bzr diff" produces silly result for added binary file

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew Paul Thomas wrote:
> Similarly when I remove a text file, "bzr diff" tells me:
>
> === removed file 'foo/bar/hum'
> --- a/foo/bar/hum 2007-11-01 04:23:25 +0000
> +++ b/foo/bar/hum 1970-01-01 00:00:00 +0000
> [contents of file with every line preceded by "-"]
>
> Again, neither I nor the file existed in 1970. Should that be a separate
> bug report, or should this one be generalized?

You can file it, but we'll mark it invalid, because we emulate the
behavior of diff, that this is what diff does:

$ mkdir foo
$ mkdir bar
$ echo baz> foo/baz
$ TZ="utc" diff -urN foo bar
diff -urN foo/baz bar/baz
- --- foo/baz 2008-06-13 20:53:00.000000000 +0000
+++ bar/baz 1970-01-01 00:00:00.000000000 +0000
@@ -1 +0,0 @@
- -baz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIUt780F+nu1YWqI0RAh5tAJ4gHEPQPs9eq3TOVKE1BJ2DV1AQZACcD2b4
a9irQ6tVOLpbr5MS9HiDF6M=
=N+zx
-----END PGP SIGNATURE-----