annotate -rNNN for a removed file
Jelmer Vernooij
jelmer at samba.org
Tue Feb 1 19:02:31 UTC 2011
On Tue, 2011-02-01 at 20:45 +0200, Eli Zaretskii wrote:
> > From: Jelmer Vernooij <jelmer at vernstok.nl>
> > Cc: Ben Finney <ben+bazaar at benfinney.id.au>, bazaar at lists.canonical.com
> > Date: Tue, 01 Feb 2011 13:25:01 +0100
> >
> > On Tue, 2011-02-01 at 01:11 -0500, Eli Zaretskii wrote:
> > > Btw, is there an easy way of knowing in which revision a specific file
> > > was removed?
> > Not really, other than to pick a revision where it's still present and
> > see where it disappears from the inventory.
> And how do I do the last part ("see where it disappears from the
> inventory")?
For the inventory where you know the file is present tree.path2id(path)
should get you the file id.
When scanning trees to see if the file has disappeared you can use
"tree.has_id(file_id)".
To get the trees for a bunch of revision ids, use
repo.revision_trees(revids).
Cheers,
Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20110201/961eee4a/attachment.pgp>
More information about the bazaar
mailing list