[rfc] Allow action parameter to smart_add to return a file_id

John Arbash Meinel john at arbash-meinel.com
Thu Jul 20 20:38:16 BST 2006


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

Matthew D. Fuller wrote:
> On Wed, Jul 19, 2006 at 12:31:51PM -0500 I heard the voice of
> John Arbash Meinel, and lo! it spake thus:
>> I have a use case of wanting to be able to create a new tree with
>> the same file ids as another tree (or subset of the other tree).
> 
> Similarly, it would be nice to be able to /alter/ the existing
> file-ids to match another tree.  Use-case: Two people independently
> init/add a tree and work on it, and now want to be able to merge.  Or
> perhaps this is a case for the id aliases that I vaguely recall
> bandied about in the SVN case.

Well, without id aliasing, if we implement this, you could do:

bzr rm *.foo
bzr add --file-ids-from ../bar *.foo

Which makes it look effectively like an delete + adding a new file. But
at least your file ids match at the end.

ID aliases are potentially nicer. But they break our model a little bit,
so this would at least work within the model.

John
=:->

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

iD8DBQFEv9uoJdeBCYSNAAMRAltsAKDKGp/E2N0dHt9/HccLPrcKLDF7swCgpQ2M
coJy9PDI2cK2BYXNUXoh2T4=
=1ePV
-----END PGP SIGNATURE-----




More information about the bazaar mailing list