Go to Post Someday I will have to learn how tagging and reps work. I already know how search and brain farts work. - kstl99 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-09-2010, 23:42
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Version control without internet?

I'm wondering if there's any options out there for version control/collaboration but doesn't require an internet connection (ex. not SVN). Our programming computer can't really be hooked up to the internet when we're working at school.

Currently, sometimes one of us brings their own computer and we work on different things at the same time. Then we copy the part of the code to be worked on onto the other computer and replace it when the work is done. (We use LabVIEW so copying and replacing subVIs is easy). Plus, we plan to work at home more this year. For backups, we copy the whole LabVIEW project into a folder and put that on our team's external hard drive.

But of course it's always nice to have a good versioning software or method. Does anyone know of anything out there? Thanks!
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
  #2   Spotlight this post!  
Unread 19-09-2010, 00:26
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Re: Version control without internet?

Quote:
Originally Posted by RoboMaster View Post
I'm wondering if there's any options out there for version control/collaboration but doesn't require an internet connection (ex. not SVN). Our programming computer can't really be hooked up to the internet when we're working at school.
Your SVN repository does not have to be on the internet, you could use your programming laptop (or any other school computer, for that matter) as the SVN server.
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!
  #3   Spotlight this post!  
Unread 19-09-2010, 00:31
ajd ajd is offline
Registered User
FRC #3238
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Mount Vernon, WA
Posts: 46
ajd will become famous soon enough
Re: Version control without internet?

Look up darcs, git, mercurial (hg), bazaar (bzr). They are all distributed version control systems that work in a way that doesn't require an internet connection
  #4   Spotlight this post!  
Unread 19-09-2010, 21:14
codedr codedr is offline
Registered User
FRC #0537
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Wisconsin
Posts: 75
codedr will become famous soon enoughcodedr will become famous soon enough
Re: Version control without internet?

svnadmin create /path/to/your/repo

then the svn url will be
file:///path/to/your/repo

you can then add/commit and checkout from the local
file path.
  #5   Spotlight this post!  
Unread 19-09-2010, 21:52
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
Re: Version control without internet?

Git (and other distributed VC) do not need internet. Also, as noted, SVN does not need internet. You just push and pull from each computer in the network. You can designate one computer as the "master" and it becomes a "server"

keehun
__________________
For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, not of works, lest anyone should boast. -- Ephesians 2:8-9
2010: Quarter Finalist (MN 10,000 Lakes)
2010: Website Award (MN 10,000 Lakes)
2009: Quarter Finalist (MN 10,000 Lakes)
2009: GM Industrial Award (MN 10,000 Lakes)
  #6   Spotlight this post!  
Unread 19-09-2010, 22:22
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Version control without internet?

You might find some of the ideas in the Portable Revision Control Server (using Subversion) thread useful.
  #7   Spotlight this post!  
Unread 21-09-2010, 19:37
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Re: Version control without internet?

Wow, thanks for all these ideas! I'm looking into Bazaar right now, but I haven't checked out some of these other ideas yet.

Does anyone know of any manual methods or protocols that are an option in case we (or anyone reading this thread) don't use any software? Is there a whitepaper or document out there that describes it?

Thanks!!
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
  #8   Spotlight this post!  
Unread 23-09-2010, 03:02
timothyb89 timothyb89 is offline
code monkey
FRC #1977 (Loveland High Robotics)
Team Role: Alumni
 
Join Date: Oct 2008
Rookie Year: 2009
Location: Loveland, Colorado
Posts: 45
timothyb89 will become famous soon enough
Re: Version control without internet?

Quote:
Originally Posted by RoboMaster View Post
Wow, thanks for all these ideas! I'm looking into Bazaar right now, but I haven't checked out some of these other ideas yet.

Does anyone know of any manual methods or protocols that are an option in case we (or anyone reading this thread) don't use any software? Is there a whitepaper or document out there that describes it?

Thanks!!
You can always use something like rsync to keep everything between machines up-to-date, but you'll run into some nasty conflicts if two people edit one file at the same time. I'm sure there's a few FTP-based syncing programs out there if that's more your style.

For offline use you really want a distributed VCS. I'd personally recommend git, but others certainly work. If you have a LAN and want something simple, then subversion works fine. For both there's nice Windows GUI clients (TortiseGit and TortiseSVN, respectively) which help to simplify things a ton. Plus, most IDEs have plugins for it, which are great if you use Java or C++.
__________________
FRC-DB: A detailed, web-based scouting database for FRC teams with lots of interesting statistics.
  #9   Spotlight this post!  
Unread 02-01-2011, 21:03
Nibbles Nibbles is offline
Interstellar Hitchhiker
AKA: Austin Wright
FRC #0498 (Cobra Commanders)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Arizona
Posts: 103
Nibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really nice
Re: Version control without internet?

I would highly recommend Git, it keeps your entire history with the files and makes synchronizing with other computers really easy (and takes up less disk space than a single SVN checkout, go figure that one out).

I wrote up a document on FRC-specific tasks using Git: https://docs.google.com/View?id=dcz67k4q_42f7hzcwdg
Some parts might be out of date but anyone who wants to contribute, PM me so I can add you as an editor. Alternatively maybe someone wants to post it to FIRSTwiki.
__________________
Help standardize match data! Use the XML interchange format. (Specification page)
AAA_awright on Freenode IRC chat. (Join us at ##FRC on chat.freenode.net, or in your browser)
  #10   Spotlight this post!  
Unread 02-01-2011, 21:19
iblis432 iblis432 is offline
Co Captain/Chief Programmer
AKA: Bobby
FRC #2106 (Junkyard Dogs)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Virginia
Posts: 146
iblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to behold
Re: Version control without internet?

What I did last year was at the beginning of each day or after a major change i used 7zip to compress the entire project and name it xx_xx_xx_vers_y

where xx_xx_xx was the date and n was the version of it that day. so the first one of that day would be 1, the second 2, so on and so forth. I found that useful because 7zip compresses and decompresses easily, has shell integration, and there's no real setup to it. You just take a break for 1 minute and zip it all, then if you need it back, instead of going through any menus or anything you just right click the file and go to 7zip>decompress to /xx_xx_xx_vers_n

Anyway, that's what I did, never bothered with any version software.
__________________
"Don't worry, programming can fix it"
  #11   Spotlight this post!  
Unread 02-01-2011, 21:31
demosthenes2k8's Avatar
demosthenes2k8 demosthenes2k8 is offline
Graduated but not gone
AKA: Matt Soucy
FRC #0166 (Chop Shop 166)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Merrimack, NH
Posts: 590
demosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to behold
Send a message via AIM to demosthenes2k8 Send a message via Yahoo to demosthenes2k8
Re: Version control without internet?

iblis, that works...adequately...for one person, or maybe even two, but with a larger team || a more complex project, it's not always the way to go. Source Control allows you to track multiple design paths safely (person A is implementing feature X, person B is testing feature Y), as well as have safe, simple backups of your files. Especially if you need to jump back several times to fix a bug.
TL;DR: Use source control. It may seem to be more than needed, but it can save you at competition.
__________________


GSR Dean's List Finalist 2011
  #12   Spotlight this post!  
Unread 02-01-2011, 21:31
zbanks zbanks is offline
Registered User
AKA: Zach Banks
FRC #0529 (Mansfield Hornets)
Team Role: Leadership
 
Join Date: Feb 2010
Rookie Year: 2008
Location: MA
Posts: 37
zbanks is an unknown quantity at this point
Send a message via AIM to zbanks
Re: Version control without internet?

As everyone has said, you don't need the internet for (almost) all VCSes. That being said, if you're unfamiliar with whatever system you are using, I'd highly recommend finding a nice GUI, since you won't be able to fallback to whichever site you'd normally use.

SVN is pretty well supported by IDEs, and you can run the server on the same machine. That being said, if you plan on developing radically different versions of code, or if you're developing on more than one computer, you probably want a distributed system.

Git and Mercurial (hg) are both relatively new, but awesome. They're pretty comparable feature-wise, especially at this level. Github is an amazing service, but really isn't too applicable for FRC, especially if you'll never/rarely be online.

Last I checked, hg has better Windows support, however. If you're working on Windows, which I assume you are, it may be enough to tip the scales.

I've also seen recommendations for darcs & bazaar, which are both great, but don't offer anything special that'd be applicable to this situation. Git & hg both have tons and tons of tutorials and guides available. Especially since I assume everyone is starting fresh, it makes sense to go with the most documented option.

Nibble's tutorial seems great, and would be a feasible way of working on it at school while being able to take it home (where you can then back it up on github & share it with your fellow teammates).
  #13   Spotlight this post!  
Unread 03-01-2011, 06:45
DtD's Avatar
DtD DtD is offline
I hope the watchdog starves!
AKA: Pathogen David
FRC #2410 (The Metal Mustangs (Merged from 2334, Hazmat Robotics))
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Kansas
Posts: 86
DtD will become famous soon enoughDtD will become famous soon enough
Re: Version control without internet?

Our team uses Mercurial with great success. (I also use it for all of my personal projects and our team's internal website.)

Code:
E:
mkdir robotics2011_code
cd robotics2011_code
hg init
hg clone C:/Dev/Robotics/2011/
And that flash drive is now a "server"!

Or if you aren't too keen on the command line, you can use TortoiseHg.

Another awesome feature that Mercurial has (which git does not have) is "hg serv" which is basically a minimalistic web server that hosts and interface to your mercurial repo.


I can also say I've been happy with git, but it sometimes acts funny on Windows. It also likes to slow down after time if you don't manually garbage collect frequently.
  #14   Spotlight this post!  
Unread 03-01-2011, 09:58
Nibbles Nibbles is offline
Interstellar Hitchhiker
AKA: Austin Wright
FRC #0498 (Cobra Commanders)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Arizona
Posts: 103
Nibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really nice
Re: Version control without internet?

Quote:
Originally Posted by DtD View Post
Another awesome feature that Mercurial has (which git does not have) is "hg serv" which is basically a minimalistic web server that hosts and interface to your mercurial repo.
Git has git instaweb, which uses gitweb which has been a part of the Git sources for a long time. There's also git-gui and gitk which is awesome, and installs with msysgit on Windows.
__________________
Help standardize match data! Use the XML interchange format. (Specification page)
AAA_awright on Freenode IRC chat. (Join us at ##FRC on chat.freenode.net, or in your browser)
  #15   Spotlight this post!  
Unread 03-01-2011, 14:39
DtD's Avatar
DtD DtD is offline
I hope the watchdog starves!
AKA: Pathogen David
FRC #2410 (The Metal Mustangs (Merged from 2334, Hazmat Robotics))
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Kansas
Posts: 86
DtD will become famous soon enoughDtD will become famous soon enough
Re: Version control without internet?

Sorry about that, there should be a "afaik" in there. Thanks! Good to know when I'm working with git-hosted OSS!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Steering control without a gyro nathanww C/C++ 4 27-01-2009 12:14
Version Control neutrino15 Programming 12 18-12-2008 23:34
Can i still benchtest without OTB version? programmr FRC Control System 7 16-12-2008 20:52
Version Control Recommendations need Rickertsen2 Programming 12 18-12-2007 16:17
Version Control mtrawls Programming 13 08-12-2003 14:52


All times are GMT -5. The time now is 03:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi