Writing a new RevisionSpec
jw+debian at jameswestby.net
Wed Apr 2 20:31:27 BST 2008
On Wed, 2008-04-02 at 21:31 +0200, Gioele Barabucci wrote:
> James Westby wrote:
> > On Wed, 2008-04-02 at 19:05 +0200, Gioele Barabucci wrote:
> >> 1) If I call "bzr log -r my_spec foo/bar", how can i get "foo/bar" from
> >> _merge_on()?
> > I believe that you have to make it
> > bzr log -r my_spec:foo/bar
> Isn't it possible to modify bzr to pass additional information to
> RevisionSpec in future versions?
> I hacked up a simple last_change:n RevisionSpec that returns the (nth)
> revision where foo/bar has been changed. So you can do
> bzr diff -r last_change:..last_change:2 foo/bar
> (diff between last and previous change)
> bzr log -r last_change: foo/bar (= log -l 1)
> bzr log -r last_change:2 foo/bar (log of the second to last change to
> I think that the same information I need is going to be needed by other
> RevisionSpec in the future.
> Anyway, revid: is a bit different, it takes a string parameter that is
> unrelated to the file it is going to operate on.
Yeah, I think it would need an extension to the revision specs
to allow this.
I was just trying to suggest something that may work for you now.
Sorry that I misunderstood.
More information about the bazaar