bzr inventory should accept a FILE argument

Bug #3631 reported by Matthieu Moy
4
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Low
John A Meinel

Bug Description

This would be particularly usefull to get the ID of a file:

$ bzr inventory --show-ids foo.c
foo.c foo-20051026181315-794aa2b722d4a0fa
$ _

Related branches

Revision history for this message
Martin Pool (mbp) wrote :

Yes, it should. But note that you can already do "bzr file-id foo.c"

Revision history for this message
Wouter van Heyst (larstiq) wrote :

Should inventory take a list of files like status currently does?

Revision history for this message
Wouter van Heyst (larstiq) wrote : attempt at inventory for a filelist

I didn't take unversioned files into account, would this be acceptable if I did?

Revision history for this message
Wouter van Heyst (larstiq) wrote : updated patch against current bzr.dev

Not that the code changed much, but writing a patch against a format-4 copy wasn't the smartest idea.

James Blackwell (jblack)
Changed in bzr:
assignee: nobody → mbp
status: New → Accepted
Revision history for this message
John A Meinel (jameinel) wrote :

What is the status of this? Do we still want to add a FILE argument?

Revision history for this message
Martin Pool (mbp) wrote :

It sounds good to me, and the patch looks reasonable but it needs a test case.

Revision history for this message
Robert Collins (lifeless) wrote :

If we add this should we remove bzr file-id FILE ?

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

pinging mpool to either write a test case, or reject the bug.

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

The associated branch has a fix, and will hopefully be merged for 0.11

Changed in bzr:
assignee: mbp → jameinel
status: Confirmed → Fix Committed
Revision history for this message
John A Meinel (jameinel) wrote :

A modified version has been merged for 0.11.

We now use 'find_ids_across_trees()' which lets us find paths across renames, etc when using the --revision argument.

It also means that if you supply a directory, all children of that directory are selected.

Changed in bzr:
status: Fix Committed → Fix Released
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.