FetchGerritChangePage: supply patch set number in the background
commit937847a996f12a6ff1c17ce77cfba43d8e1dbf19
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 4 Jul 2017 18:07:29 +0000 (4 20:07 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Wed, 5 Jul 2017 07:35:59 +0000 (5 09:35 +0200)
tree7c5b065301a97e45ba6c554c3ea0e52493c234e0
parentd1cea330ce19883ad4f3c89ad25172c9c850687d
FetchGerritChangePage: supply patch set number in the background

Allow to finish the dialog even if only a change number is given.
If so, determine the highest patch set number for that change at
the beginning of the fetch job. If no such change exists, display an
error message, otherwise fetch the latest patch set.

The branch name suggestion for a change ref without patch set number
is constructed using the current time in place of the missing patch
set number. This gives a reasonable default name that also has a high
probability of not existing yet.

Bug: 518492
Change-Id: I580123a1713a64ba6d2cf45dc0b488a4bc97c044
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/fetch/FetchGerritChangePage.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties