Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[egit-dev] Ability of comparing two remote branches

Hi all,

Recently I was thinking that I've solve this problem in Change Set
implementation, but then I've discover bug 324044[1]. It appears that
having fully file-system-independent ChangeSet implementation is not
enough to present reliable sync information to user.

The main reason of this behavior is that, that current team
implementation of synchronization action collects all necessary data
before the GitResourceTraversal are used. Actually traversals are used
only when change set is expanded. Currently traversals properly return
list of changed files but because those files was marked as "in-sync"
during synchronization initialization therefore they aren't shown in
view.

From my point of view there are two possible solutions for this situation:
1. pospone this feature - actually this was already proposed, but I
was almost sure that in case of CachangeSet we are able to implement
remote branches comparison. In this case only SynchronizationDialog
will be changed, the source branch selector should be removed and
additional information should be added/
2. put some effort and implement git specific implementation of
SyncInfo class that will be looking for any diff's between two
selected branches, and then will be calculating particular change
kind. IMHO this implementation shouldn't be a rocket science and it
should also solve this problem in regular synchronization.

What is your opinion?


[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=324044
-- 
Best regards

GSM: +48 695 192 160
Blog: http://luksza.org
LinkedIn: http://www.linkedin.com/in/dariuszluksza


Back to the top