P4V - How do I jump to a changelist in the Submitted window? - p4v

I don't mean Ctrl+G to show me the changelist itself. I want to scroll the Submitted window to a specific changelist so I can see the changelists around it. Note that Ctrl+F find only finds in the current results.
Is this possible?

Related

Using VSCode, how do I compare two non-consecutive commits on a file in Gitlens

When I use Gitlens in VScode, I cannot find an option to compare commits on a file when they are not consecutive. If I use 'open changes' on a certain commit in the 'File History' panel, it always compares that version of the file with the previous one. Is there a way to choose to compare one revision of the file (and not necessarily the latest revision) with another revision of my choosing of that file?
You can compare two nonconsecutive commits via the following steps (assuming you have the Gitlens extension installed):
Source Control tab (or Gitlens tab) -> Open the Branches menu.
From the branches menu -> Open the branch of interest.
Right click on a particular commit and select "Select for Compare"
Similarly, find the other commit you're interested in, right click and select "Compare with Selected"
You will see that under the "Search & Compare" menu, your two different commits are compared.
edit note: you might not see a Gitlens tab anymore as it was (optionally) merged with the Source Control tab, in version 11.2.1.
First, install gitlens plugin
Second, press F1, input gitlens:compare references
Third, input 1st commit hash and 2nd commit hash
Then, in the right side bar, find SEARCH & COMPARE
You will find the two commits' diff details
You can do this without Gitlens:
Right click on the file
Choose "Commit Changes"
Choose "Open Changes with Revision..."
Then choose the commit you want to compare your file with.
One way is to checkout one of the commits you want to diff in terminal
git checkout <commit_hash>
and the select the other comit in gitlens, click open changes to see diff.

Is there any way to adjust Netbeans to show history line by line aside programming area?

I am using Git. For looking into history we need to click history tab and another window opens show dif to previous and current.
Like Intellij, where history of Line is shown in left gadget, which show date and author who checked in code. Is there any way or plugin to get similar screens in netbeans?
Right click on the editor's tab, then ghoose "Git -> Show Annotations"
The last commit and the committer are shown in the left area of the editor then. If you hover the mouse over that is also shows you the commit message:

Intellij - How to compare two commits with each other? [duplicate]

You probably know this window where you can see the diffs between a commit to ONE commit older.
Do you know how can I see exactly the same comparison, but between a commit and a previous commit which is not necessarily ONE before the current one.
I know that I can do it per one file, but I want to do it for the whole project.
You can select any number of commits in the git log window (using shift/ctrl and click or cursor keys) and the right-hand pane will show the cumulated differences.
In IntelliJ, there is no command or action to compare exact revisions, unfortunately.
Here are couple related requests:
https://youtrack.jetbrains.com/issue/IDEA-125616 and https://youtrack.jetbrains.com/issue/IDEA-100431
However, there is a way to see what has changed between two commits. To do so you need to go to the Version control - Log tab and select the entire range between wanted commits (e.g select the later commit, then scroll down to the older commit and click on it with Shift). In the right pane showing changed files you will see all the changes.
Another way to do it:
Open the 1: Project panel
Right-click your project's root folder
Select Git → Show History from the menu
This opens up a completely different view of the git log, where you can do exactly what you'd expect to be able to from the main (9: Version Control) git log... namely:
Select (only!) two commits
Click Compare
From the pop-up dialog that appears, you can select any file and press Ctrl-/Cmd-D (or right-click and select the only menu item) to see the changes.
Unfortunately, there doesn't seem to be any way to "pin" that view to your workspace, though it hovers on top as long as you need it.
Hopefully one day JetBrains will create a "best of both worlds" merged version of these UIs, so we can just compare stuff from the main Version Control log. To add to the list of JetBrains tickets for this issue listed in another answer... the oldest one appears to be https://youtrack.jetbrains.com/issue/IDEA-86480
Also in CLion (I think in other JetBrains IDE-s it's the same):
open VCS log
filter VCS log via other branch (e.g., personal/sherstennikov/krt-23941)
top n commits must be the range on other branch we want to diff against current branch
select other branch HEAD with left click
right click on it
select in menu 'Branch ' (e.g.: Branch 'personal/sherstennikov/krt-23941')
expand via arrow on the right and click 'Compare with Current'
you get a window (see pic) 'Comparing with in root '
top left pane contains range of commits from other-branch
bottom left pane contains log of current-branch
right pane contains list-of-files-which-differ between commit/several-selected-commits (if range selected, list of files is cumulative) in other-branch and HEAD (or maybe selection) in current-branch
now you can click on file in right pane to get it's diff between selected versions in a separate window (let's call it file-diff-between-other-and-current-window)
10.also in file-diff-between-other-and-current-window right on the left of unified/side-by-side viewer selector, there's a control to switch between files in the aforementioned list-of-files-which-differ

How to discard multiple files in SourceTree?

I am able to discard my changes in source tree but had to select 1 file at a time if I select multiple its still discard only 1 at a time.
Is there any way in source tree to discard more than 1 file at same time??
I am using version 2.1
Finally found the option in Source Tree
Click on Reset button from tool bar
Select multiple file you want to discard
Click on discard button
You can also Reset all to discard all uncommitted changes
Refer the screen shot
Follow steps to discard multiple uncommited changes in Sourcetree.
New version of Sourcetree does not have -Reset- button as mentioned previous answer. Thus, please follow these 5 steps for solution.
Right click "File status" and click "Reset...".
Select files. If you want, you can select all of them like the below image.
Click "Reset All".
Again click "Reset All".
Click "Reset".
Welldone..! No more 302 files to discard.
In Mac, in some versions, I think you may find this reset button, under "workspace" -> file status (right click)-> Reset.
then select only needed files, and discard .

Eclipse highlight all changes since revision X

I'm trying to highlight all changes in the code since a particular revision (we use svn). It looks like I can use Show Annotations on a particular file, but is there a way (either natively in Eclipse or with a plugin) to hihglight all changes since revision X?
You can display the changes between revisions of a project/file/folder from the history view.
Right Click on the project/file/folder and select Team->Show History.
In the History View click on the start revision.
CTRL click on the end revision. (In your case the latest)
Right click on the head revision and select Compare...
Click OK in the Compare window.
Eclipse should open a new tab in your editor displaying the differences between the selected revisions.