RFE: bzr diff --status like git and mercurial

Bug #1160409 reported by alexx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned
Breezy
Triaged
Medium
Unassigned

Bug Description

Hi folks,
I am requesting an option to bzr diff, call it --status/--short status which will show the list of modified files together with numbers of insertions/deletions and a short summary at the end. Both Git and Mercurial support it. My version is bzr 2.6b1.

$ git diff -M 2.0.2..2.0.3 --stat
 lib/capybara/helpers.rb | 5 +----
 lib/capybara/rails.rb | 2 +-
 lib/capybara/version.rb | 2 +-
 3 files changed, 3 insertions(+), 6 deletions(-)

$ hg diff --stat -r 1.1 -r 1.1.1
 .hgtags | 2 ++
 setup.py | 17 ++++++++---------
 2 files changed, 10 insertions(+), 9 deletions(-)

Bazaar status command is similar but not what I want exactly:

$ bzr status -SV -r 0.7..0.7.2
 M doc/conf.py
 M README
 M setup.py
+N MANIFEST.in

Notes:
* Git also has the --shortstat option which prints only the last line. Mercurial, AFAIK doesn't
* With Git both the stats and the actual diff can be combined and printer together, with Mercurial you can't.

If possible please add the --stat --shortstat options to Bazaar and make them behave like Git.

I will be looking at the code to create a patch. Let me know if such patch will be accepted and please point me to the right files/methods to look at.

Revision history for this message
Vincent Ladeuil (vila) wrote :

This is provided by the bzr-diffstat https://launchpad.net/bzr-diffstat plugin AFAIK

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.