avoid overwriting files when editing remotely |
Site Admin
|
Ryan,
What you're asking about is how to use version control system. I think your question has no relation to the front-end IDE, because you can overwrite somebody's else changes using ANY products if you use them in a wrong way. With vesion control system in place you have good opportunity to avoid file conflicts like the ones you've described, but it's possible only in the case if you use the system in a correct way. You can not avoid conflicts on the files shared among other deveopers if all update them themselves (asynchronously). Just do not do this and you'll get no conflicts. Let your Version Control system update the files and make sure it is the only source for the changes, does not matter the files are on the remote server or on the local one (what matters is the fact that the files are shared). In other words, if you're working with other developers on the same set of remote files, do never use upload or download (do not save the files if you access them through Samba). Create a script on the server that will fetch the files from the repository and don't forget to update the repository with your changes beforehand. Alternatively, do not work on the same set of files with the other developers. Have separated vhosts for each developer and fetch the changes made by the other develpers from the repository and do this only when you need these changes (mostly after they reported their chunk of the work is complete). I believe you can easily find some other ways on how to get Version control sytem help you. |
||||||||||||
_________________ The PHP IDE team |
|
Thanks for the thorough reply Dmitri.
We are currently using a setup like you describe: SVN for version control, separate vhosts for each developer, each working off files checked out from the trunk. No file instances are shared (edited) between developers. Is it possible for the SFTP mode of nusphere to check the server file on save to make sure it hasn't changed since the last access? That would at least tell the developer that they are about to overwrite changes made to the file stored on the server (e.g., if its was SVN updated while still being edited in the NuSphere client). thanks! |
||||||||||||
|
|
It has been awhile, but I was working on a project that used WebDAV http://www.webdav.org/. I recall files had to be checked out, which meant that they could not accidentally be overwritten.
|
||||||||||||
|
|
Hey Storyman,
That's one thing i was thinking about.. it looks like using WebDAV may perform the last update check to protect you from overwriting a file that has changed on the server. Anyone verify this / using the WebDAV method? thanks, Ryan |
||||||||||||
|
|
Hi Ryan,
I can tell you that I personally found it a pain in the you-know-where because a file had to be check out before it could be worked on, which also meant that if someone had checked out a file that I needed to work on--and hadn't checked it back in--I had to email them to ask them to check it back in ASAP. |
||||||||||||
|
|
Hi Storyman,
Yes, but was that a result of the source control model your company was using and not the use of Web-DAV vs SFTP vs other methods of shuttling files back and forth? |
||||||||||||
|
avoid overwriting files when editing remotely |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by