Comment 2 for bug 76765

Revision history for this message
Aaron Bentley (abentley) wrote : Re: [Bug 76765] diff -r-1 for branch with one revision is broken

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

Marius Kruger wrote:
> Public bug reported:
>
> bzr init
> echo "test" > someFile.txt
> bzr add someFile.txt
> bzr commit -m "initial commit"
> bzr diff -r-1 #doesn't show changes
> bzr diff -r0 #does show changes
>
> This was unexpected and I believe that they should behave the same
> if there is currently only one committed revision

- -1 represents the basis revision; the last thing you committed.

So if you have not modified the tree since the last commit, "bzr diff -r
- -1" will not show any changes.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFFiuQL0F+nu1YWqI0RArwVAJ0b2HE5lbQaF6RWFOs4OAhN9P0ROgCdHWfE
sZP3/PW70GdsQIyyzKUtA/8=
=SRsX
-----END PGP SIGNATURE-----