This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 180993 - Simple remote file conflict check on upload
Summary: Simple remote file conflict check on upload
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal with 2 votes (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-20 11:41 UTC by berniesaurus
Modified: 2016-11-23 20:31 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description berniesaurus 2010-02-20 11:41:06 UTC
The feature "upload on save" is great but sometimes it would be useful to have a little nice optionally add-on which compares the timestamps (like in issue 176121) of the file (only if "upload on save"), locally (before saved)/remote if there is no change the upload proceed without any notification, if the timestamp don't match there should be a short confirm box if you want to upload the current local state or not. 

A simple diff which compares the content of the remote and the local file would be the killer feature but I think for the beginning a simple confirm box is enough.

It should be possible to activate a option which enables this feature.


I know that this issue should be handled by an traditional VCS, but I also know that this is not always the most practicable and efficentest way in the daily work of an php developer. 
This is also confirmed by many forum entries about this issue (not only in netbeans forums, also in PHP specific forums, just use google and you'll see it :) ). In this threads the only answer is to use git, svn, ... but I have the feeling that this is not what the user want, and the users switch to an other IDE for this task like Eclipse PDT, Zend Studio or even Dreamweaver, I think this should not be in the interest of netbeans.
Comment 1 snakewa 2010-03-11 04:25:12 UTC
to compares the content of the remote and the *original* local file ( not the modified )  will more make scenes. 

(In reply to comment #0)
> The feature "upload on save" is great but sometimes it would be useful to have
> a little nice optionally add-on which compares the timestamps (like in issue
> 176121) of the file (only if "upload on save"), locally (before saved)/remote
> if there is no change the upload proceed without any notification, if the
> timestamp don't match there should be a short confirm box if you want to upload
> the current local state or not. 
> 
> A simple diff which compares the content of the remote and the local file would
> be the killer feature but I think for the beginning a simple confirm box is
> enough.
> 
> It should be possible to activate a option which enables this feature.
> 
> 
> I know that this issue should be handled by an traditional VCS, but I also know
> that this is not always the most practicable and efficentest way in the daily
> work of an php developer. 
> This is also confirmed by many forum entries about this issue (not only in
> netbeans forums, also in PHP specific forums, just use google and you'll see it
> :) ). In this threads the only answer is to use git, svn, ... but I have the
> feeling that this is not what the user want, and the users switch to an other
> IDE for this task like Eclipse PDT, Zend Studio or even Dreamweaver, I think
> this should not be in the interest of netbeans.
Comment 2 Tomas Mysik 2010-03-11 04:34:04 UTC
(In reply to comment #1)
> to compares the content of the remote and the *original* local file ( not the
> modified )  will more make scenes. 

What is "original"? In any case - definitely not. NB won't be storing timestamp for each file, that's not good idea.
Comment 3 berniesaurus 2010-03-11 11:11:58 UTC
@snakewa: Of course I mean the original file (which was lsat downloaded) :)


@ Tomas: 

How this works?
http://netbeans.org/bugzilla/show_bug.cgi?id=176121

For this task the same file-info is required, isn't it?
Comment 4 Tomas Mysik 2010-03-11 11:23:19 UTC
(In reply to comment #3)
> How this works?
> http://netbeans.org/bugzilla/show_bug.cgi?id=176121
> 
> For this task the same file-info is required, isn't it?

No, only 2 timestamps per project are remembered (one for upload and one for download) - but _only_ for the _source_ directory (so if one uploads only one file or another directory, the timestamp is _not_ changed).
Comment 5 Filip Zamboj 2010-09-15 12:36:58 UTC
batch reassigning
Comment 6 mrclay 2011-06-09 04:10:15 UTC
+1. I much prefer local projects in Git repos, but I can't escape the daily need to develop on a remote server. With new team members coming on board, the lack of conflict check makes accidental overwrite possible (bad), but also undetected (even worse).

Have other users expressed success with working on NFS or a mounted samba share as a "local" project? I'd have to imagine that Netbeans file scanning would slow to a crawl.
Comment 7 moopheuz 2011-11-11 09:13:36 UTC
Excuse me that I've reopen this old issue,  but I think this compare feature would be great. 

It would be great just to create a checksum of the remote and the local file on opening/upload the local file. Thus there don't have to be a "timestamp/checksum"-database. It would be enough to know for me, that I have the current remote file on which I'm working.
I know, i could just redownload every file I'm working on, and for now I'm doing this. But it would be easier if netbeans does this work for me.
Thus if the checksums are different netbeans could ask the user that they should have a look on a diff before overwrite the remote file.

It's just the best way for me to test/develop my website on a remote host with your ftp/sftp feature. I don't think that a svn/git would improve my development work. For my small team it just would be an overkill.