L
L
lleexxaa2013-03-27 10:33:54
Notepad++
lleexxaa, 2013-03-27 10:33:54

Checking for changes to a file before saving it on a remote server in notepad++

Hello.
Task: before saving a file on a remote server, check if it has been modified by another user, and if there have been changes, then display an appropriate message (as in Dreamweaver).
Example.
There is a /index.php file on the remote server. Vasya opened this file at 13.00 and makes changes. Petya opened this file at 13.30, made his changes and saved the file on the server. Then Vasya is going to save the file at 14.00. At the time of saving, it is necessary to display a message for Vasya that while he was coding, the file has already changed, and that the current save may overwrite these changes (this mechanism works in Dreamweaver).

Is it possible to somehow include this mechanism in NPP? Maybe there is a plugin for this?

Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SergeyGrigorev, 2013-03-27
@SergeyGrigorev

And why not do it in the form of a version control system? For example, git, mercurial, svn. Then it will be possible to track who exactly updated the file, and what changes they made (maybe they changed the header and therefore you can merge the changes)

L
lleexxaa, 2013-03-27
@lleexxaa

Version control system is used (mercurial). But that doesn't solve the problem. Why not make local commits after saving each file? For example, after (in the above example) Vasya erases Petya's changes, and then Petya opens this file again, for example, at 14.30, Petya will not see his code (accordingly, Petya's code will not get into the version control system).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question