HgWorkflow » History » Version 1
Chris Cannam, 2010-11-23 02:19 PM
Move page here from soundsoftware.ac.uk project
1 | 1 | Chris Cannam | h1. Workflow examples for Mercurial |
---|---|---|---|
2 | 1 | Chris Cannam | |
3 | 1 | Chris Cannam | *Important note*: All of this assumes that Mercurial is being used in a situation with a single remote repository, and that I never push or pull to or from anywhere else (i.e. no peer-to-peer working). |
4 | 1 | Chris Cannam | |
5 | 1 | Chris Cannam | Situations that might be considered the beginning of a "workflow unit"... |
6 | 1 | Chris Cannam | |
7 | 1 | Chris Cannam | h3. Startup |
8 | 1 | Chris Cannam | |
9 | 1 | Chris Cannam | * Someone just gave me a URL (e.g. https://code.soundsoftware.ac.uk/hg/svcore) and told me to clone it [i.e. I know the remote URL but have no local copy yet] |
10 | 1 | Chris Cannam | |
11 | 1 | Chris Cannam | * I have a directory of source code on my local computer and I want to "put it under version control" [i.e. I know the local location but have no repository or remote URL yet] |
12 | 1 | Chris Cannam | |
13 | 1 | Chris Cannam | * I have been working on this local repository before, using another Hg tool, and it has a remote location already [i.e. I have both the local copy and the remote URL and I just need to tell the tool what they are] |
14 | 1 | Chris Cannam | |
15 | 1 | Chris Cannam | h3. Committing |
16 | 1 | Chris Cannam | |
17 | 1 | Chris Cannam | * I have made a new file and I want to commit it |
18 | 1 | Chris Cannam | |
19 | 1 | Chris Cannam | * I have changed some files and I want to commit them |
20 | 1 | Chris Cannam | |
21 | 1 | Chris Cannam | * I want to rename or remove a file |
22 | 1 | Chris Cannam | |
23 | 1 | Chris Cannam | * I have already renamed or removed a file (using Finder etc) and have only just remembered I was supposed to do it using the version control tool -- what now? |
24 | 1 | Chris Cannam | |
25 | 1 | Chris Cannam | h3. Pushes and pulls |
26 | 1 | Chris Cannam | |
27 | 1 | Chris Cannam | * I have made some changes locally and want to make sure they're published because I'm about to go home [with the assumption: Nobody else has changed the remote repository in the mean time] |
28 | 1 | Chris Cannam | |
29 | 1 | Chris Cannam | * I have made some changes locally and want to make sure they're published because I'm about to go home [with the assumption: Someone else has changed the remote repository in the mean time, but I don't know it yet] |
30 | 1 | Chris Cannam | |
31 | 1 | Chris Cannam | * I know that someone else has made some changes to the remote repository, and I want to get them |
32 | 1 | Chris Cannam | |
33 | 1 | Chris Cannam | * I want to know whether anyone else has made any changes to the remote repository [though perhaps ideally the tool would tell me automatically] |
34 | 1 | Chris Cannam | |
35 | 1 | Chris Cannam | * I can't remember whether I pushed my last set of changes -- can you tell me? |