Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361305 - Sort tags and branches by age
Summary: Sort tags and branches by age
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Git (show other bugs)
Version: 0.3   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 0.4 M2   Edit
Assignee: Tomasz Zarna CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 360275
Blocks:
  Show dependency tree
 
Reported: 2011-10-18 16:09 EDT by John Arthorne CLA
Modified: 2012-01-03 10:05 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2011-10-18 16:09:54 EDT
0.3 RC2

Currently in the Repositories view, tags and branches are displayed in alphabetical order. I think it would be more helpful to sort them chronologically, so that most recently branches/tags are at the top. We would probably need to add an "Age" column so users can make sense of the ordering.

See for example how they are organized on git.eclipse.org:

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/
Comment 1 Tomasz Zarna CLA 2011-12-13 06:29:36 EST
Added a new property to JSON Tag object[1]. It's "LocalTimeStamp"[2] and it returns time of commit for which the tag has been created[3]. It's not creation time of a tag since it's only available for annotated tags, which we don't use in Orion at the moment. Mixing tag time for annotated tags and commit time for lightweight tags doesn't seem right. So I decided to return commit time in both cases.

Leaving the bug open to consume it in the UI once the blocker is fixed.

[1] see c00790d620be2fc21264e5765b630a92a17918fc
[2] org.eclipse.orion.internal.server.servlets.ProtocolConstants.KEY_LOCAL_TIMESTAMP
[3] org.eclipse.jgit.revwalk.RevCommit.getCommitTime()
Comment 2 Tomasz Zarna CLA 2012-01-03 10:05:26 EST
Added the same property, "LocalTimeStamp", to JSON Branch object[1]. Closing this bug, tags and branches are now sorted by time. If work is required to adapt to changes from bug 360275 I will file a new bug.

[1] see 8dfad3b54300f8879d4a29c4ba90ee5f40711fc5