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 198566 - PHP remote project not updated after git branch has been changed locally
Summary: PHP remote project not updated after git branch has been changed locally
Status: RESOLVED DUPLICATE of bug 192528
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-12 23:40 UTC by Masaki Katakai
Modified: 2011-08-02 21:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2011-05-12 23:40:56 UTC
I got the following problem from community member in Japan.

Actually I haven't tried the operation. Also I don't know it's problem of PHP project itself or git plugin. Please evaluate and if this category is not correct, please change it to git or somewhere. Thanks.

1. working on remote web site
2. some files have been removed locally by changing branch or some reason of version management system (in this case git)

It seems that project window is displaying correctly the changes.

However,the deleted files won't apply to remote site. Some mismatch happen in local and remote site.

environment:

NetBeans 7.0
git plugin
OS
 Windows7
 Ubuntu10.04 (remote)
Connection
 SFTP
Comment 1 Masaki Katakai 2011-05-12 23:49:41 UTC
I mean mismatch can not be solved even after doing upload/download.
Comment 2 dmathew 2011-07-01 14:57:33 UTC
I am using NetBeans IDE 7.0 (Build 201104080000), Windows 7 version 6.1,  Mercurial 1.8.4 and TortoiseHg v 2.0.5. Same setup on laptop and desktop.

I work mainly on a laptop, push changes to my PHP project to a central repository on my destop. I also have a local repository in a different folder on on my desktop, which is my netbeans sources folder.

For the sake of this potential bug report I'll call the central repo on the desktop  "central", my laptop clone "laptoplocal" and my desktop clone "desktoplocal". When I push to the central repo I push changesets (ie without updating the working directory. I use TortoiseHg rather than the mercurial facilities within Netbeans

My problem is that when I pull changes (that I have made on laptoplocal and pushed to the central repo) from the central repository to the netbeans sources folder on my desktop (desktoplocal), they show up fine in the Netbeans editor, but don't update the server files. (I have my Netbeans sources folder in one directory, which I copy to the server)

The netbeans editor updates the server files just fine when I edit a file locally in Netbeans on my desktop - it's only when the changes have been pulled from the central repo that they don't automatically copy through to the server.

I am relatively new to all this, and feel I might have forgotten to go through a stage or tick a box somewhere.

I'd say priority for me is P2. My current workaround is to create a new project and local repository each time if I want to look at the project on the desktop (which, fortunately I can do without most of the time). But I am a single person working on two machines - it would be much more of a problem for a proper development team.

FYI my run configuration on my desktop runs as a local server with the project url as index.php in the project folder in htdocs. It's by looking in the project folder in htdocs that I can tell the files aren't being updated.

Not sure what else you need to know, but just get in touch...

Help much appreciated.
Comment 3 dmathew 2011-07-02 10:53:39 UTC
Apologies. I have solved this, so I don't think it's a bug.

Previously, my central repository was on my C: drive, where my htdocs folder is, but my local repository was on an encrypted (TrueCrypt) volume.
Today I tried putting an additional local repo on the C: drive, and everything copied over just fine when I changed files remotely, updated central repo etc .
I then put both the central repo, and the local repo on my encrypted drive, and again it worked fine (htdocs still on C: drive).

So, most likely I had specified the folder/file locations wrongly somewhere, although I can't see where. Apologies again for time-wasting.

Good luck
Comment 4 Tomas Mysik 2011-07-11 13:03:57 UTC
(In reply to comment #3)
> Apologies. I have solved this, so I don't think it's a bug.

OK, lowering to P3. I will look at it soon.

Thanks.
Comment 5 Tomas Mysik 2011-08-02 21:04:37 UTC

*** This bug has been marked as a duplicate of bug 192528 ***