Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to initialize google-code project in Mercurial

I have started a Mercurial based project on google code. I have worked in subversion for sometime, but I am confused with what to do what in Hg.

I would like help on the following:

  1. How do I initialize project (first on my local machine) (then from my local copy to google's server)
  2. How do I get my copy of a build from the server
  3. How do I update(merge/sync) my local changes back to the server

My project is in PHP and I am using netbeans

like image 651
OrangeRind Avatar asked Nov 10 '09 22:11

OrangeRind


2 Answers

Both barkmadley and RC touch on it, but what you're explicitly missing is that your order is wrong in step one. Create the empty repo on google, clone it to local, and then commit locally and push. Don't try to create it locally and then push to google. There's nothing inherently wrong with the idea of doing it that way, but it's not the workflow for which google is set up.

like image 127
Ry4an Brase Avatar answered Oct 05 '22 17:10

Ry4an Brase


For what it's worth, I wrote a blog post about Managing a Google Code project with Mercurial

like image 41
Andreas Grech Avatar answered Oct 05 '22 17:10

Andreas Grech