Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 28-10-2015, 14:17   #1621
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: Beta Test / Technical

Hakan...
Don't run away, it is not as hard as it looks when you first read the following text
  • Pull the latest upstream
  • Create a new branch from the current upstream master (in your case it probably is not called "opencpngithub")
Code:
git checkout opencpngithub/master -B buddy
  • Cherry pick the commit into it
Code:
git cherry-pick 8169db0300ed55d0853a7aac2037e11837a54954
Code:
git commit -a -m "WIP"
git rebase -i opencpngithub/master
  • Push the new branch to github (in your case your github repo is probably not called "hakangithub")
Code:
git push hakangithub buddy
  • Go to github and create the PR from the buddy branch to master

Pavel
nohal is offline   Reply With Quote
Old 28-10-2015, 14:39   #1622
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: Beta Test / Technical

Pavel..
Many thanks. Clear and detailed as usual.
>> Tabs -- Sorry, forgot to check that in my new VS2013.
One Q so far:
My local repository, master, is ahead of OpenCPN master for several reasons:
- A bunch of "Langstrings" and changes to "version.h" created during build.
- A couple of my in-tree plugins.
These will be included in my new branch and want to follow the pull request to O-Master? -- A problem?
Håkan
Hakan is online now   Reply With Quote
Old 28-10-2015, 14:43   #1623
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: Beta Test / Technical

Quote:
Originally Posted by Hakan View Post
Pavel..
Many thanks. Clear and detailed as usual.
>> Tabs -- Sorry, forgot to check that in my new VS2013.
One Q so far:
My local repository, master, is ahead of OpenCPN master for several reasons:
- A bunch of "Langstrings" and changes to "version.h" created during build.
- A couple of my in-tree plugins.
These will be included in my new branch and want to follow the pull request to O-Master? -- A problem?
Håkan
Hakan...
Exactly to prevent this problem you create the "buddy" branch from the upstream master, not from your local one. If you created it from your local master, the resulting PR would be the same as if you create it from your master (which is what we are trying to avoid here).

Pavel
nohal is offline   Reply With Quote
Old 28-10-2015, 14:53   #1624
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: Beta Test / Technical

Ok - Read every word and understand it! (My English and Git terminology - that's a nice combination)

Very good - Thanks
Håkan
Hakan is online now   Reply With Quote
Old 28-10-2015, 15:31   #1625
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: Beta Test / Technical

Pavel .. may be English or ---

C:\Builds\OCPN\OpenCPN>git checkout https://github.com/OpenCPN/OpenCPN.git master -B Buddy
fatal: Cannot update paths and switch to branch 'Buddy' at the same time.

???
Håkan
Hakan is online now   Reply With Quote
Old 28-10-2015, 15:36   #1626
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: Beta Test / Technical

Hakan...
I suppose you have the upstream repository already linked to your local one under some name ("git remote -v" will give you the list)
the right command then is
Code:
git checkout REMOTE_NAME/BRANCH -B NEW_LOCAL_BRANCH
(note there is no URL but the remote alias and the slash, not space)
nohal is offline   Reply With Quote
Old 28-10-2015, 15:49   #1627
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: Beta Test / Technical

Pavel..
As simple as..
But still a possible trouble to come, my plugins:
Code:
C:\Builds\OCPN\OpenCPN>git checkout origin/master -B Buddy
warning: unable to rmdir plugins/BR24radar_pi: Directory not empty
warning: unable to rmdir plugins/launcher_pi: Directory not empty
Branch Buddy set up to track remote branch master from origin.
Switched to a new branch 'Buddy'
Anyhow, after cherry-pick -- nice command!
Code:
C:\Builds\OCPN\OpenCPN>git status
On branch Buddy
Your branch is ahead of 'origin/master' by 3 commits.
  (use "git push" to publish your local commits)
Untracked files:
  (use "git add <file>..." to include in what will be committed)

        plugins/BR24radar_pi/
        plugins/launcher_pi/

nothing added to commit but untracked files present (use "git add" to track)
Now to the "pack all to one commit will come." Nice training
Håkan
Hakan is online now   Reply With Quote
Old 28-10-2015, 16:14   #1628
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: Beta Test / Technical

Pavel..
Plugins was not a problem - all solved.

Rick...
You may want to add this lesson to your development tips collection?

Håkan
Hakan is online now   Reply With Quote
Old 28-10-2015, 17:09   #1629
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: Beta Test / Technical

Quote:
Originally Posted by rgleason View Post
Hakan,
Did you see Tracker FS#1884 by any chance? - You've just done one of the three items!
FS#1884 : AIS Remember List "White" List - Fleet, Disable Alarm, Proximity Alarm
Rick..
No, I haven't seen that before. That request is a bit more sophisticated than a new option in MMSI properties. But it works for me sailing close to a friend and still want to use the Alert for other boats when on open waters. I've to trust he's not falling in sleep while I am.
Håkan
Hakan is online now   Reply With Quote
Old 29-10-2015, 04:36   #1630
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Beta Test / Technical

Hakan - I like what you did w buddy. Will add pavels lesson and try to follow it for understanding. Thanks pavel.
rgleason is offline   Reply With Quote
Old 29-10-2015, 04:44   #1631
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Beta Test / Technical

Another thing with AIS data are the nonsense items for tracks for Basic and AtoN stations in the AIS list. These targets are fixed and do not move. To give them a track item in the AIS list is ********.

Gerhard
Attached Thumbnails
Click image for larger version

Name:	AIS-List.png
Views:	115
Size:	177.6 KB
ID:	111783  
CarCode is offline   Reply With Quote
Old 29-10-2015, 04:51   #1632
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: Beta Test / Technical

Gerhard..
Agree to your point.
What about creating a patch to default them No - track?
Håkan
Hakan is online now   Reply With Quote
Old 29-10-2015, 09:22   #1633
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: Beta Test / Technical

Gerhard...BTW
If I remember right you've a Mac? If so please test the new "Follower" MMSI option if possible. I haven't been able to run that OS.
Thanks
Håkan
Hakan is online now   Reply With Quote
Old 29-10-2015, 10:07   #1634
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Beta Test / Technical

Quote:
Originally Posted by Hakan View Post
Gerhard...BTW
If I remember right you've a Mac? If so please test the new "Follower" MMSI option if possible. I haven't been able to run that OS.
Thanks
Håkan
It works OK with Mac and has compiled with no problems.

Gerhard
CarCode is offline   Reply With Quote
Old 29-10-2015, 10:44   #1635
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: Beta Test / Technical

Thanks - great!
Håkan
Quote:
Originally Posted by CarCode View Post
It works OK with Mac and has compiled with no problems.

Gerhard
Hakan is online now   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beta Marine Diesel michaelmrc Engines and Propulsion Systems 48 23-03-2016 13:44
Need some technical advice....antennas. Just a Tinch Marine Electronics 15 01-12-2007 15:57
Blue Sea Systems Technical Brief GordMay Electrical: Batteries, Generators & Solar 0 16-03-2007 04:16
technical difficulties witchcraft The Sailor's Confessional 1 30-05-2005 14:09
Dow Corning Technical Manual GordMay The Library 0 12-04-2005 16:25

Advertise Here


All times are GMT -7. The time now is 00:03.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.