Have implicit "current"
Another feature from discussions with Ron R.
One of the things users find most confusing about ups is that there is no default version unless you declare something with a "current" chain.
We could make the rule, that if there is no "current" chain, the version with the newest declare date would be the default version, which would be pretty much what most naive users expect.
#1 Updated by Ron Rechenmacher about 11 years ago
I think if a single version is in the database, then the implicit current is OK.
If there are multiple versions without a current, we might want to have the
INFORMATIONAL message be more informational. Currently I get:
INFORMATIONAL: Product 'netbeans' (with qualifiers ''), has no current chain (or may not exist)
Actually, it seems it should only be an INFORMATIONAL msg (with different text) IF setup
is made to default a current (and setting it up)
otherwise it should be an ERROR with additionally saying that you have to specify a version
or "ups declare" a version current.
We should make the following NOT echo "yes" if nothing gets setup:
if setup netbeans;then echo yes;fi
currently, it does.