how do I commit somewhere other than onto a tip?
John Arbash Meinel
john at arbash-meinel.com
Thu Oct 2 23:13:32 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Vincent Broman wrote:
> I think I need the capability to commit versions that are not
> successors of a tip revision, e.g. I want to commit a new version
> which should be placed in between two successive versions already committed,
> or else to place it ahead of all the other versions, as a new version 1.
> It might even be a new branch off some parent version in the past.
You may want to look at the "bzr-rebase" plugin. Which effectively has
you do:
bzr branch current -r LAST new
cd new
bzr commit -m "This is the real LAST+1"
bzr replay -r LAST+1 ../current
cd ..
rm -rf current; mv new current
Basically, you create a new branch, from what you consider the correct
base. Then you commit the new version, and replay the old revisions.
This will generate a new set of revisions, but they should match the others.
This may not work exactly as you want, as I think replay (and rebase in
general) try to apply them as *patches* when really you want them
applied as snapshots.
There are other ways that you could script something like this, though I
wouldn't guarantee how fast it would be.
It seems like an interesting problem, though.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkjlR4wACgkQJdeBCYSNAAMTmwCgotVMpxhWZ8NfsJ6atQPYFcj9
0TYAn0ButuF4FTyM+nh14synyO6wmmOz
=Bh2v
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list