centralized workflow and tracking upstream questions

Aaron Bentley aaron at aaronbentley.com
Fri Apr 4 02:03:03 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Neil Martinsen-Burrell wrote:
> ``bzr add .`` will add all new files by default.  Removed files are the problem,
> since unzipping an archive that lacks a file will not delete it, unless you do
> the following:
> 
> $ cd vendor
> $ rm -r *
> $ unzip ../vendor-drop.zip
> $ bzr add
> $ bzr ci -m 'updated to new vendor version'
> $ bzr tag vendor-3.1415
> 
> which works because bzr assumes that files deleted by the OS are intended to be
> removed.

You can also use the "import" command from bzrtools.  It imports the
files from an archive into the working tree, deleting any versioned
files that are not present in the archive.

$ bzr import vendor.zip vendor
$ bzr add vendor
$ bzr ci -m 'updated to new vendor version' vendor
$ bzr tag vendor-3.1415 -d vendor

If some files have been renamed, you can try the automv plugin, which
will guess renames.  (I haven't tried it myself, yet)

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH9X5H0F+nu1YWqI0RAu8tAJ4yCB6zOSZKcA/wBNL4xrAwESzJiACghymj
q1rPfxaK1hhh0YcEJ79NfsU=
=l9xR
-----END PGP SIGNATURE-----



More information about the bazaar mailing list