开发者

Local Source control repository - cross platform

开发者 https://www.devze.com 2023-03-06 09:08 出处:网络
I am looking for a \'local\' source control software, I don\'t need it to be necessarily available on network.. Its meant to be only for personal use..

I am looking for a 'local' source control software, I don't need it to be necessarily available on network.. Its meant to be only for personal use.. What I am looking for is something like:

Need it to be cross platform. The biggest problem is, I need the same local repository to be available on both windows and Linux! (Is this even possible? :s ) I dual boot Windows 7 and Ubuntu and have managed to setup workspace that works in both OS without changes, now I need a source control software!

Easy installation, I have never installed one before! :)

And Has eclipse plugin..

I have used VSS for this purpose before, but that is only on Windows! I looked for Mercurial, but I am not sure if I can use the same repository on both the OS! Any suggestions are appreciated!

UPDATE: Thanks for your replies.. Yes I do want the same repository to be accessed from different operating systems.. Everyone has suggested an on-line repository but I 'need it to be local'.. Internet is not something I can depend on (I now know git takes care of this..! :)), I would not want 开发者_运维技巧version of, say my personal recordings of some home functions tweaked in audacity, to be hosted on-line! Right now, I am trying out git, as a local repository solution..


If you definitely want a repository that's always available on a local filesystem, I'd probably go for Mercurial or Git. Most likely Mercurial, as it has the best windows support (including the TortoiseHg gui), but Git works similarly.

But there's two other issues:

  1. Do you make frequent backups?
  2. What file system type will you use for the shared repository?

In this particular case, I would not trust a single shared filesystem as the best basket to put your eggs in; In each boot environment, I would maintain working repositories separate from the shared one. This would give you some redundancy.

Here's how this would work:

Two repositories U and W, for Ubuntu and Windows respectively, and one shared repository S, accessable frome either boot environment.

Assuming a stable situation, with all three repositories in sync:

  1. Commit any new code to repository U in Ubuntu.

    $ hg commit -m 'changes from linux'

  2. Push the changes to S.

    $ hg push

  3. Reboot into windows.

    ...

  4. Pull the latest changesets from S into W

    W> hg fetch

  5. Update your code, commit frequently

  6. Push prior to rebooting into linux

    W> hg push

  7. Reboot

  8. And repeat step 4, but now from linux

    $ hg fetch # performs an hg pull, followed by an update.

  9. Rinse, lather, repeat.

That's said, with both Mercurial and Git, you can synchronise your repositories across the net any time, so I would surely recommend you try that out some time.

And note: the best backup is having a copy of your data on a live file system on another computer, preferably at another location.


I'm pretty sure you can Mercurial, since the whole repository is in .hg folder.
Try TortoiseHG - it's easy to install and use.


Why do you want it to be local? The benefit of source control, is that you can have multiple clients working on the same source, without worrying too much about conflicts etc.

Even though it doesn't really answer your question, this advices might solve your problem: Just create a project for yourself at https://github.com/ or http://sourceforge.net/ any other free online repository hosting provider. SVN, CVS, GIT all come with excellent IDE integration and clients run on almost all operating systems.

Hope this helps. Regards.


Do you really want to have a duplicate repository on different operating systems? That doesn't make sense to me. What would be the purpose of doing that?

I think you instead want to have a single repository that you can access from any operating system.

In this case, you can just install Subversion (or whatever source control system you prefer) on a server and access it from the operating systems you use. There are plenty of client tools for Mac/Windows/Linux that can talk to subversion repositories, RapidSVN being free and cross-platform for one.

If you don't have your own server, there are plenty of places online that will host Subversion for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消