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 252544 - Pull shouldn't perform update automatically
Summary: Pull shouldn't perform update automatically
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-22 08:11 UTC by mperezma
Modified: 2015-07-17 10:37 UTC (History)
1 user (show)

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 mperezma 2015-05-22 08:11:45 UTC
NetBeans automatically performs an update after the pull.
Steps to reproduce:

1. Clone a mercurial project.
2. Commit and push a change from other clone.
3. Go to Mercurial -> Remote -> Pull.

You expect to get your local clone updated with changes coming from remote, but not your working copy (You haven't do any update). But actually you will see your working copy updated.

I think that the user at least should have the option to disable this behaviour (like in Eclipse!). Otherwise if I want to pull without update my working copy I must go to command line and do a hg pull...

Also, if you want to get updated and synced with remote, you can do Mercurial -> Remote -> Fetch.
Comment 1 mperezma 2015-06-11 14:38:14 UTC
If the repo has multiple heads for the branch you're on, then it works as expected. It seems that netbeans automatically updates to the tip after pulling if there is only one head.
Comment 2 Ondrej Vrabec 2015-07-14 11:34:40 UTC
Now you are asked if you want to do the update or not.

Fix: http://hg.netbeans.org/core-main/rev/48d182717f25
Comment 3 Quality Engineering 2015-07-17 01:18:25 UTC
Integrated into 'main-silver', will be available in build *201507170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/48d182717f25
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #252544 - Pull shouldn't perform update automatically
Ask to update after a pull is finished and an update is required.
Comment 4 mperezma 2015-07-17 10:37:18 UTC
Verified, now it's working very well!! Thanks a lot. But it has introduced an other bug: if we are at tip revision and pull without update, versioning label does not refresh and still showing "tip", when working copy now isn't on tip..

I've opened bug #253539