timestamps and export

James Westby jw+debian at jameswestby.net
Fri May 30 17:08:59 BST 2008


Hi all,

There is a bug in the builddeb plugin that is caused by exporting
the same branch twice at different times, and so getting two
different tarballs.

It may be possible to solve this a different way, but it may require
changes to the export code. I would like to make it possible to
specify a timestamp to the exporter, which, if given, would then be the
timestamp set on all files.

I looked briefly at doing this, however there is an API compatiblity 
problem. An exporter is simply a function, so we cannot add a parameter
as it would break any other exporters. If it were a class then I would
add a new function and use a hasattr check to find if the timestamp
could be passed.

Would the preferred way to do this be to add a new registry for
exporters that take the parameter and prefer this when searching
for them? In this case should the deprecation warning be given when
the exporter is registered or used?

Thanks,

James




More information about the bazaar mailing list