the inventory must be updated as merge proceeds, not at the end
John Arbash Meinel
john at arbash-meinel.com
Tue Jan 3 15:06:38 GMT 2006
Robert Collins wrote:
> On Mon, 2006-01-02 at 15:52 -0600, John Arbash Meinel wrote:
>
>>But I certainly can add '--include-file-info' as a command line flag
>>which would write out the last changed revision for each file.
>>I suppose we might also want to write out the revision dates in the
>>revision information, so you can figure out what the last changed date
>>for each file was.
>
>
> So the idea is that a user can generate something like:
> === version.py
> file_versions = {'foo.py':'1',
> 'bar.py':'modified'}
> ...
>
>
> (or C, or C++ or haskell etc.). This then goes in their tarball, into
> their binaries etc etc.
Yes, that is exactly what I was thinking.
>
> Printing out something like:
> foo.py\t1
> bar.py\tmodified
>
> would let a little sed magic do that easily.
>
> This was based on the most recent IRC 'I want $Id' conversation ;).
>
> Yes, an optional flag makes sense to me.
>
> Rob
>
One of the formats could be '--format=tab', which would give you
something like the above.
I went with rio and python for starters, since python is useful for me
and bzr, and rio our current 'generic' format, which can handle spaces, etc.
csv or tab delimited might make sense as well.
Also, do you have a thought as to what the 'date' field should be? Right
now I'm just using the current timestamp. But I'm thinking it probably
should be the time of the last commit, unless the tree is out of date.
(Which is only detected if you pass the --check-for-clean flag.)
And for the 'file_versions', are you thinking to use revnos or revision
ids. A merge might introduce a last modified which is not in
revision-history.
And what about dates for revisions? I just want the file to be useful,
without being too verbose.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060103/302c4dda/attachment.pgp
More information about the bazaar
mailing list