Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-15059

Server adapter: tells me that there are local commits that I can publish even though there are none

    XMLWordPrintable

Details

    Description

      1. EXEC: launch OpenShift Application wizard
      2. EXEC: create a new application and have it imported to your workspace
      3. EXEC: After the import the adapter will tell you that there are local commits that you may want to publish to OpenShift. Tell it to do so by hitting Yes

      4. ASSERT: In the Package Explorer: the freshly imported project is decorated with an arrow an a 1 (is ahead of origin by 1)
      (wrong! since we pushed)

      5. EXEC: Pick your server adapter and tell it to publish to OpenShift

      Result:
      The adapter tells you that you that there are local commits that you may push. (wrong!)

      Expected:
      We just pushed there cannot be local commits that were not pushed yet

      6. EXEC: Confirm the dialog and tell it to publish

      Result:
      It tells you that OpenShift is already up-to-date (which is true!)

      7. EXEC: pick Team->Fetch from Upstream

      8 ASSERT:
      The remote "is ahead of" state of the current branch compared to origin is updated. The EGit decorators in the Project Explorer get corrected (the ^1 gets removed).

      If you now publish via adapter it'll tell you that there are no local changes that you can push.

      Attachments

        1. already-up-to-date.png
          already-up-to-date.png
          25 kB
        2. committed-changes-to-publish.png
          committed-changes-to-publish.png
          11 kB
        3. is-ahead-0.png
          is-ahead-0.png
          14 kB
        4. is-ahead-1.png
          is-ahead-1.png
          14 kB

        Issue Links

          Activity

            People

              adietish@redhat.com André Dietisheim
              adietish@redhat.com André Dietisheim
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: