Mercurial > hg-website
comparison text/learning_mercurial_in_workflows.txt @ 135:8d069bba8cce
learning in workflows: shared server now contains a bit more information for people with existing servers.
author | Arne Babenhauserheide <bab@draketo.de> |
---|---|
date | Fri, 01 May 2009 14:32:23 +0200 |
parents | 4fc2fc6ddbed |
children | 0364cfc00295 |
comparison
equal
deleted
inserted
replaced
134:4fc2fc6ddbed | 135:8d069bba8cce |
---|---|
280 | 280 |
281 Till now we transferred all changes either via email or via pull, but there's yet another way: pushing. As the name suggests it's just the opposite of pulling: You push your changes into another repository. | 281 Till now we transferred all changes either via email or via pull, but there's yet another way: pushing. As the name suggests it's just the opposite of pulling: You push your changes into another repository. |
282 | 282 |
283 But to make use of it, we first need something we can push to. | 283 But to make use of it, we first need something we can push to. |
284 | 284 |
285 By default "hg serve" doesn't allow pushing, since that would be a major security hole. You can allow pushing in the server, but that's no solution when you live in different timezones, so we'll go with another approach here: Using a shared repository on BitBucket. Doing so has a bit higher starting cost and takes a bit longer to explain, but it's well worth the effort spent. | 285 By default "hg serve" doesn't allow pushing, since that would be a major security hole. You can allow pushing in the server, but that's no solution when you live in different timezones, so we'll go with another approach here: Using a shared repository, either on an existing shared server or on a service like [BitBucket](http://bitbucket.org). Doing so has a bit higher starting cost and takes a bit longer to explain, but it's well worth the effort spent. |
286 | 286 |
287 For it you first need to setup a BitBucket Account. Just signup there and then hover your mouse over "Repositories". There click the item at the bottom of the opening dialog which say "Create new". | 287 If you want to use an existing shared server, you can use "serve" there and [allow pushing](). Also there are some other nice ways to allow [pushing to a Mercurial repository](), including simply [pushing via SSH](). |
288 | |
289 Otherwise you first need to setup a BitBucket Account. Just signup at [BitBucket](http://bitbucket.org) and then hover your mouse over "Repositories". There click the item at the bottom of the opening dialog which say "Create new". | |
288 | 290 |
289 Give it a name and a description, and if you want to keep it hidden from the public, select "private". | 291 Give it a name and a description, and if you want to keep it hidden from the public, select "private". |
290 | 292 |
291 $ firefox http://bitbucket.org | 293 $ firefox http://bitbucket.org |
292 | 294 |
297 (Replace the URL with the URL of your created repository. If your username is "Foo" and your repository is named "bar", the URL will be https://bitbucket.org/Foo/bar/) | 299 (Replace the URL with the URL of your created repository. If your username is "Foo" and your repository is named "bar", the URL will be https://bitbucket.org/Foo/bar/) |
298 | 300 |
299 Mercurial will ask for your BitBucket password, then push your code. | 301 Mercurial will ask for your BitBucket password, then push your code. |
300 | 302 |
301 VoilĂ , your code is online. | 303 VoilĂ , your code is online. |
304 | |
305 Note: You can also [use SSH for pushing to BitBucket](http://bitbucket.org/help/UsingSSH). | |
302 | 306 |
303 Now it's time to tell all your collegues to sign up at BitBucket, too. | 307 Now it's time to tell all your collegues to sign up at BitBucket, too. |
304 | 308 |
305 After that you can click the "Admin" tab of your created repository and add the names of your collegues on the right side under "Permission: Writers". Now they are allowed to push code to the repository. | 309 After that you can click the "Admin" tab of your created repository and add the names of your collegues on the right side under "Permission: Writers". Now they are allowed to push code to the repository. |
306 | 310 |