Provide a way to access the last modified revision from the Tree API

Bug #585962 reported by Jelmer Vernooij
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned

Bug Description

  affects bzr

The most common reason that existing code looks directly at inventory
objects is that it has to find out the last modified revision, something
that is not possible using the Tree API.

It would be nice if we could have such a call and make .inventory
optional, that would make it possible for bzr-{svn,git,hg} to avoid a
lot of code trying to come up with inventory entry objects on the fly.

Revision history for this message
John A Meinel (jameinel) wrote :

I agree that this is the most common. I doubt that bzr-svn et al could get rid of .inventory entirely, but certainly it could be rare for them to need to populate it.

I think there is an ugly hack in doing:
  tree.iter_entries_by_dir(file_id).next()[1].revision

But I'm not positive about that.

Changed in bzr:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
John A Meinel (jameinel) wrote :

I should mention, it at least raises the question of whether last-modified is what we want, or whether we want an InventoryEntry.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.