TortoiseProc how to diff file between revisions from command line - tortoisesvn

I am trying to open the diff command from the command line to see the differences between a file and its previous version. According to the docs i can be done with the diff argument. This would give me the difference between a file and the base revision, but did not work for me:
https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-automation.html
call TortoiseProc.exe /command:diff /path:%CD%\%1
To clarify, any one would know how to start from command line the "TortoiseSVN" that would be the equivalent of this:

try this:
call TortoiseProc.exe /command:prevdiff /path:%CD%\%1
you can find the commands very easily:
open the TortoiseSVN settings dialog, go to Advanced. Find the Debug option, set it to true and click Apply or OK.
Now every command you do with TortoiseSVN will first show a dialog with the command line TortoiseProc.exe was started with. That way you can easily figure out the command line you want.
After that, open the settings dialog again and set the Debug option back to false.

Related

Open eclipse from command line and display a dialog box populated from command line arguments

I want to open Eclipse from the command line and the "Debug Configurations" dialog to be open and I want some of the configuration inputs to be automatically there, filled from other command line arguments.
So far I can only open the Eclipse from command line and I can open the Debug perspective.
Is this doable?
Thanks

p4 change not working with gvim

I use perforce as source code repository. p4 change command is used to create a changelist of opened files. If I set setenv EDITOR gvim and then run this command then gvim opens and I add some description and then save and quit. I get below error. Same error does not come if EDITOR is not set, I mean in that case vim opens. Any idea to fix this issue?
sachina#inn-sachina-vm[285] p4 change
Error in change specification.
Error detected at line 29.
Change description missing. You must enter one.
Hit return to continue...
Applications that invoke EDITOR assume that the command blocks until editing is done and the editor was closed. While true for vim, the GUI version gvim launches in the background; i.e. the command returns immediately.
You can avoid this via the :help -f command-line option:
setenv EDITOR 'gvim -f'

Access perforce command line from P4V

Is there a way to run P4 command line from P4V? I understand that it can be done MS command prompt. But want to know, if it can be invoked via P4v?
Thanks.
Helix sadly removed the input textbox in 2017.3.
Yes, see View > Log and in the bottom you can run p4 commands

editing file through vi editor in shell script show error

script in which I open a file in vi editor , after that user will write any thing in it then save or quite by :wq!
When I try this then it give an error message as below
e138 can't write viminfo file $home/.viminfo!
and ask for,
Press Enter or command to continue
Now when I press enter then file save. But why that error message shows.
If I open same file direct with vi editor or vim editor and do changes then it does not give any error.
also if I install vim editor then it works fine and no error shows
Please tell me what may be the issue.
my best guess is that $home is not defined properly. try running: !echo $home on both editors. If it's not defined during the script run, define it before running vim.
I came here with mostly the same error, but this answer did not work for me. I had to create more space within my $HOME directory by deleting a few files, and then vim worked normally again.

Problems opening Vim from the command line? (Windows 8)

How do you install Vim such that it runs in the command line?
I saw a post here and it said to make sure that
[✓] Create .bat files for command line use
was checked. I did make sure that it was checked, but vim won't open in the command line. However,
gvim
will open gvim from the command line, which is a pop-up window. How do I open Vim so that I can edit files directly from the command line? I think that I need to edit the PATH, but I don't know what that is or how to edit it.
EDIT: I also looked at this and followed the directions, tailored to my system. Now vimtutor will briefly open the vimtutor for less than a second and close it! But Vim still doesn't work. Gvim will open Gvim still.
EDIT: I don't think I was clear when I wrote my post. Running
vim
does not open Vim on my computer. Neither does
vim.exe
Use the bottom right Win8 gesture and go as following: Settings > PC Info > Advanced System Settings > Advanced > Environment Variables. Under system variables find Path in the list.
Path is just a semicolon separated list of directories. Append vim.exe to the list and it's now in your path.
You want to run vim.exe, not gvim.exe.
Add this to the Path under system variables "C:\Program Files\Vim\vim82" . Then you are all done.
To Edit Environment Variables:
Click on Start Menu -> Type Environment Variables and Press Enter Supporting Image -> In bottom Right Corner you will find "Environment Variables" Supporting Image -> Under System Variables Search for Path Supporting Image -> Double Click To Edit -> Click on new and Paste the file address given AboveSupporting Image
Now you're done. Test it just by writing vim in Command Prompt or Windows Terminal.

Resources