Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 35484 - Tag ordering issue
Summary: Tag ordering issue
Status: RESOLVED DUPLICATE of bug 13460
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-VCM-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-21 11:36 EST by Philipe Mulet CLA
Modified: 2003-04-02 08:52 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2003-03-21 11:36:06 EST
Build RC3a

I have always been annoyed by the fact that version tags are sorted 
alphabetically most time I have to pick one (e.g. compare with different 
version).

However I noticed than in the CVS explorer view, when expanding versions of a 
project, the ordering of the versions is chronological, which is exactly what I 
would expect it to be in all cases I have to pick any.

So, why isn't it consistently using the chronological order when displaying a 
list of version tags ?
Comment 1 Michael Valenta CLA 2003-04-01 09:43:32 EST
Version tags should always be sorted in reverse alphebetical order and branch 
tags should be sorted in alphebetical order (there is no gauranteed way to get 
the actual time a tag was created so tags are not sorted chronologically). I 
have done a quick check and this is the case everywhere I looked. If you know 
of a particular place where this is not the case, please reopen stating the 
exact location (view, dialog, etc).
Comment 2 Philipe Mulet CLA 2003-04-01 11:36:44 EST
Look at org.eclipse.jdt.core in CVS explorer, under 
Versions/org.eclipse.jdt.core,
you'll see that v_312 is the last one listed. OK

Now open editor on IJavaProject, then show it in CVS resource history. You'll 
notice that v_312 is listed last again. OK

Now try to tag it with existing version name, expand Versions subtree, and 
you'll see that v_312 isn't the first available candidate.
Comment 3 Michael Valenta CLA 2003-04-01 13:51:09 EST
I see the problem. In CVS, tags are kept on files only. Therefore, you need a 
file to get the tags. For projects (and folders in the project), we use 
the .project file of the project (this is a default that can be configured). 
For files, we actually get the tags directly off the file. The problem is that 
the IJavaProject file has more tags on it then the project's .project file so 
you are actually seeing all the tags on the file from the beginning of it's 
life and some of these are after v_312 alphebetically (so appear before v_312).
I think what we really need here is a mechanism for filtering tags (see bug 
13460). It may even be possible to filter by date (given a file that is 
modified regularly). 

If you are satisfied with the above, let me know and I will mark this as a 
duplicate of bug 13460 and annotate that bug with a request to investigate 
filtering tags by date.
Comment 4 Philipe Mulet CLA 2003-04-02 04:18:34 EST
I see now. Filtering would indeed be a good idea.
Comment 5 Michael Valenta CLA 2003-04-02 08:52:03 EST

*** This bug has been marked as a duplicate of 13460 ***