[opensuse-buildservice] History of _link'ed projects?
Hi, I wanted to generate the changes of project which links to another. But iterate through the history with osc -r fails; it generates only the diff. -e doesn't work in combination with -r. It seems the link is not generated against a specific version of the source project, and so that information is not archived, and osc doesn't know which version of the source project to retrieve. That strikes me as rather bad, because it means bi-secting for _link projects essentially doesn't work at all right now. Would it not be acceptable if osc -r -e expanded the link against the version of the source project which was current at that time? (After all, that's what it would have build against.) Of course, this would miss rebuilds/changes which were triggered because of changes in the source project, as there's no combined history. Any idea how to solve this? Regards, Lars -- Teamlead Kernel, SuSE Labs, Research and Development SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) "Experience is the name everyone gives to their mistakes." -- Oscar Wilde -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi Lars, On Thu, Jan 29, 2009 at 02:02:28PM +0100, Lars Marowsky-Bree wrote:
I wanted to generate the changes of project which links to another.
But iterate through the history with osc -r fails; it generates only the diff. -e doesn't work in combination with -r.
It seems the link is not generated against a specific version of the source project, and so that information is not archived, and osc doesn't know which version of the source project to retrieve.
I think links *can* be against a version, but they are normally not. They are not in order to track the link target. But an additional version= attribute is possible. However, it would be needed to add it to the _link file, and commit the change, to actually make the link apply to that revision, and being able to check it out. (Doing something like that has helped me to (help somebody else to) revocer from a "broken link" situation.) Not sure if the attribute was called 'version', it could also be 'rev'.
That strikes me as rather bad, because it means bi-secting for _link projects essentially doesn't work at all right now.
Would it not be acceptable if osc -r -e expanded the link against the version of the source project which was current at that time? (After all, that's what it would have build against.)
I'm not sure at the moment if this is possible. Would be nice though.
Of course, this would miss rebuilds/changes which were triggered because of changes in the source project, as there's no combined history. Any idea how to solve this?
Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development
Am Donnerstag, 29. Januar 2009 14:02:28 schrieb Lars Marowsky-Bree:
Hi,
I wanted to generate the changes of project which links to another.
But iterate through the history with osc -r fails; it generates only the diff. -e doesn't work in combination with -r.
It seems the link is not generated against a specific version of the source project, and so that information is not archived, and osc doesn't know which version of the source project to retrieve.
you can specify the revision where you link to. But usually you want a "following" link always to the latest version.
That strikes me as rather bad, because it means bi-secting for _link projects essentially doesn't work at all right now.
Would it not be acceptable if osc -r -e expanded the link against the version of the source project which was current at that time? (After all, that's what it would have build against.)
it is thinkable to find this out via the commit times (if no revision is specified in the _link file)
Of course, this would miss rebuilds/changes which were triggered because of changes in the source project, as there's no combined history. Any idea how to solve this?
Would it be enough for your usecase already when we add an option to "osc linkpac" to store the current version in the _link file ? bye adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Thu, Jan 29, 2009 at 02:02:28PM +0100, Lars Marowsky-Bree wrote:
I wanted to generate the changes of project which links to another.
But iterate through the history with osc -r fails; it generates only the diff. -e doesn't work in combination with -r.
It seems the link is not generated against a specific version of the source project, and so that information is not archived, and osc doesn't know which version of the source project to retrieve.
A link with no specific revision always links against the most recent version. This is usually what the user wants.
That strikes me as rather bad, because it means bi-secting for _link projects essentially doesn't work at all right now.
Would it not be acceptable if osc -r -e expanded the link against the version of the source project which was current at that time? (After all, that's what it would have build against.)
Current at what time? It builds against the latest revision, so I don't understand what you're proposing. Note that the generated rpms contain the "expanded" md5sum in the DISTURL tag, this is an unique identifier to retrieve the sources used for building. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Adrian Schröter
-
Lars Marowsky-Bree
-
Michael Schroeder
-
Peter Poeml