Handling filesystem/inventory conflicts in TreeTransform
John A Meinel
john at arbash-meinel.com
Tue Feb 14 20:40:44 GMT 2006
Denys Duchier wrote:
> Aaron Bentley <aaron.bentley at utoronto.ca> writes:
>
>> John A Meinel wrote:
>>> So are you saying that if it cannot resolve filesystem conflicts, it
>>> will not be able to merge from the other tree?
>> Correct. An example would be if you had
>>
>> foo
>> foo.moved
>> foo.moved.moved
>> foo.moved.moved.moved
>> foo.moved.moved.moved.moved
>> foo.moved.moved.moved.moved.moved
>> foo.moved.moved.moved.moved.moved.moved
>> foo.moved.moved.moved.moved.moved.moved.moved
>> foo.moved.moved.moved.moved.moved.moved.moved.moved
>> foo.moved.moved.moved.moved.moved.moved.moved.moved.moved
>>
>> and you were trying to create a file named foo. It handles average
>> cases just fine.
>
> How about using a timestamp?
>
> foo.moved.2006-02-14.21:31
> or foo.2006-02-14.21:31.moved if that's easier to recognize
>
> The repetition of .moved.moved.moved is not that unlikely, but with the
> timestamp approach, it becomes a lot more unlikely. Additionally, the timestamp
> approach has the advantage that you see when the move took place.
>
> Cheers,
>
> --Denys
Timestamp is okay, but ':' is not valid on windows. Just wanted to make
sure we don't forget that. :)
I still think the .moved should be marked as conflicted, and that we
shouldn't just keep creating .moved files.
I actually would prefer a sequential number.
foo.moved-1
foo.moved-2
...
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060214/13381e9b/attachment.pgp
More information about the bazaar
mailing list