|
Description
|
The build and workspace management scripts used for xVM at the moment
only work well in the context of being on SWAN.
Ideally, we'd able to move our stable and unstable xVM gates to opensolaris.org
and use similar gate-management scripts for each.
The scripts should be able to support ssh:// URLs to hg repositories as well
as local paths.
Because of 6698763, it's awkward to get nested repository support on
opensolaris.org, so we're going to use the workaround proposed in that bug.
This would eventually result in us creating the following repositories similar
xvm-stable+libvirt.hg
xvm-stable+sunos.hg
xvm-stable+urlgrabber.hg
xvm-stable+virtinst.hg
xvm-unstable+virtinst-patches.hg
xvm-stable+xen.hg
xvm-unstable+xen-patches.hg
xvm-unstable+libvirt.hg
xvm-unstable+sunos.hg
xvm-unstable+urlgrabber.hg
xvm-unstable+virtinst-patches.hg
xvm-unstable+virtinst.hg
xvm-unstable+xen-patches.hg
xvm-unstable+xen.hg
- each repository is named with a prefix, followed by the gate name.
MQ repositories aren't nested in their parent repository, but are top-level
repositories in their own right.
The update-gate, push-gate and build-* scripts should all work exactly as they
do at the moment, with local checked-out patch gates appearing nested in
the local repository under .hg/patches. When pushing patches to a remote
repository, if the remote gate is on opensolaris.org, we would push to
"<prefix><gate>-patches.hg" instead of "<prefix><gate>/.hg/patches"
The scripts should be able to cope with arbitrary numbers of other sets of
prefixes, without any hardcoding of paths, should the need arise to create
more gates.
The fix will allow XVM_WS and the various workspace management scripts
to point to a gate prefix - for example:
% export XVM_WS=/tmp/a/foo+
or
% update-gate foo-testing+ ssh://me@machine//tmp/c/my-gate+
NOTE: Using ssh://me@machine//tmp/c/my-gate+ as a gate prefix.
NOTE: Using ./foo-testing+ as a gate prefix.
pulling from ./foo-testing+ to ssh://me@machine//tmp/c/my-gate+
.
.
timf@haiiro[3897] ls
total 56
8 foo-testing+proto/ 8 foo-testing+sunos.hg/ 8 foo-testing+xen.hg/
8 foo-testing+libvirt.hg/ 8 foo-testing+urlgrabber.hg/
8 foo-testing+packages-debug/ 8 foo-testing+virtinst.hg/
More detail in the attached gate-changes.txt
|