[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [platform-vcm-dev] Question to provider writers: Text/Binary default
|
After some more thought (from home instead of work), I'm not sure that the
getType() method belongs in the Team API. Not all providers are limitted to
only 2 file types. Specifically, Rational's ClearCase has a very rich file
type scheme. They not only support text and binary, but also specific types
such as word, rose, xml, and html. Each has specific behavior w.r.t
incremental changes and merging. It is also possible that one provider
might need a type defined as binary while another provider might be
sophisticated enough to use text.
Although it might be nice to provide a hint, it may need to be left up to
the individual providers.
Dave Wegener
>>>>Please note, I am not a provider but an end user.
>>We like end users too :)
>>>>I would rather insure that my
>>>>data is correct than worry about whether stripped eol characters cause
my
>>>>compare to show all lines as changed. Recovering from the first may be
>>>>impossible. Recovering from the second wouldn't.
>>Yup, this was our reasoning for going with binary, even though CVS command
>>line clients typically assume text.
>>>>I would think that an argument could be made to add a third return type
of
>>>>unknown to the getType() method.
>>Actually, this is exactly what Team.getType() does! The return value is
>>tri-state - constants for text, bin, unknown.
>>However, as outlined, there are issues with different providers
>>interpreting this differently because a plugin writer doesn't know what to
>>rely on, or may rely on the wrong thing.
>>Thanks for the feedback,
>>Kevin