Repository and project show ^nnn to represent commits not pushed, even after hard reset [message #1790768] |
Fri, 15 June 2018 23:32 |
David M. Karr Messages: 801 Registered: July 2009 |
Senior Member |
|
|
I work with a team that exclusively uses Eclipse egit for pushing code to our remote repository. Many of them apparently see a symptom from time to time that I have never seen, and I'm trying to understand what they might be doing differently.
For background, I note that in the repository view, or in the package/project explorer, there is info displayed on the repository or project that shows the number of commits that are different between the local repository and the remote repository. This is normal. If the local repository has 3 commits that haven't been pushed to the remote repository, I'll see "^3" in the repository or project name. Again, this is normal.
What my team members are reporting is that they will see this "^N" thing even when there appear to be no difference in the commits between the local and remote repositories. I just looked at one team member's Eclipse, and he had this symptom. It showed "^273" in the repository name. I then had him do a "hard reset" on the repository. After a few seconds to let things settle, I saw that this label didn't change. It still said "^273" in the repository name. I right-clicked on the project and selected "Compare With" and selected HEAD revision, and it showed one file in the .settings directory. This file is also the one file shown in the unstaged files in the staging view. The display never changed to remove that label.
I checked his Eclipse version, and he is using 4.7.2. I'm using 4.7.3a.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02808 seconds