author | amit@thunder |
Tue, 02 Mar 2010 18:43:02 +0530 | |
changeset 0 | 27e1f5bd2774 |
permissions | -rw-r--r-- |
0
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
1 |
=============== |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
2 |
Version Control |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
3 |
=============== |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
4 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
5 |
Introduction |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
6 |
============ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
7 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
8 |
The following words are from a blogpost "http://karlagius.com/2009/01/09/version-control-for-the-masses/" |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
9 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
10 |
"Version control is one of those weird, geeky things that never really gained much ground in non-geek fields, despite the fact that it’s blindingly useful. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
11 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
12 |
Version control (or source control) is nothing more arcane than keeping copies of ones work as one make changes to it. On the surface, it’s all straight-forward; make a copy of every file before making any changes to it. That way, if something seriously messes up, one can always fall back to something that worked before, or at least compare the broken copy with one that used to work so one can figure out where it went off kilter. Accidentally deleted half of thesis and closed the word processor? No problem – out comes the backup." |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
13 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
14 |
Now, in the real world, it’s not so easy. One probably cooks up their own version control system without realizing it had such a geeky name. For instances files with names oldxxxxxx.py and latestxxxxxx.py. Every time to make some change in a file, one save it with different name then the original one. Luckily there are like, loads of version control systems out there to do this heavy lifting. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
15 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
16 |
Why Use Version Control |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
17 |
======================= |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
18 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
19 |
One of idea behind Version Control Tools was to build onto very first step which can be creating a empty file, or writing a first buggy program for assignment, rather then simply loose it. So here are some reasons why is automated version control needed: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
20 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
21 |
- It will track the history and evolution of a project, so one don't have to do it manually. It allows to track what changes where made, when were they made, by whom and why. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
22 |
- For a team of people working on same project, revision control software makes it easier to collaborate. For example, when people more or less simultaneously make potentially incompatible changes, the software will help them to identify and resolve those conflicts. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
23 |
- It can help to recover from mistakes. If a change made at some moment of time, turns out to be in error in future, one can revert to an earlier version of one or more files. In fact, a really good revision control tool will even help in efficiently figure out exactly when a problem was introduced. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
24 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
25 |
Most of these reasons are equally valid for the project having one man show, or hundred people. Besides projects, even it can be used to maintain assignments related to one particular subject/course, it will help manage things in way much better way. These tools can be used for better *resources management*. All codes, documents, presentation, assignments related to one course maintained in such a inventory can help avoiding accidental lose of data(deletion) and Internet hosting for version control will make the work immune to local hard-disk crash, unless hosting crashes itself. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
26 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
27 |
Some of Version Control Tools available and used widely are: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
28 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
29 |
- cvs (Concurrent Version System) |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
30 |
- svn (Subversion) |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
31 |
- hg (Mercurial) |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
32 |
- bzr (Bazaar) |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
33 |
- git |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
34 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
35 |
Each of above mentioned tools have sets of feature which it offers in unique way. For this session we are going to concentrate on hg (mercurial). After covering the basics of hg, one can easily try other tools, and use what-ever he/she is most comfortable with. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
36 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
37 |
Learning the Lingo |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
38 |
================== |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
39 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
40 |
Each Version Control uses its own nomenclature for more or less the same features. Here are some of terms which are going to used through out the rest of session: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
41 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
42 |
Basic Setup |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
43 |
----------- |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
44 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
45 |
Repository(repo): |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
46 |
The database/folder storing the files. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
47 |
Server: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
48 |
The computer storing the repo. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
49 |
Client: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
50 |
The computer connecting to the repo. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
51 |
Working Set/Working Copy: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
52 |
Your local directory of files, where you make changes. This is what is present on client side. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
53 |
Trunk/Main: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
54 |
The “primary” location for code in the repo. Think of code as a family tree — the “trunk” is the main line. This is generally what is present on server. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
55 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
56 |
Basic Actions |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
57 |
------------- |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
58 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
59 |
Add: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
60 |
Put a file into the repo for the first time, i.e. begin tracking it with Version Control. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
61 |
Revision: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
62 |
What version a file is on. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
63 |
Head/Tip: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
64 |
The latest revision of the repo. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
65 |
Check out: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
66 |
Initial download of repo onto machine. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
67 |
Commit: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
68 |
Upload a file to repository(if it has changed). The file gets a new revision number, and people can “check out” the latest one. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
69 |
Checking Message: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
70 |
A short message describing what was changed. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
71 |
Change log/History: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
72 |
A list of changes made to a file since it was created. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
73 |
Update/Sync: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
74 |
Synchronize local files with the latest from the repository on server. This get the latest revisions of all files. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
75 |
Revert: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
76 |
Throw away the local changes and reload the latest version from the repository. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
77 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
78 |
Advanced Actions: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
79 |
----------------- |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
80 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
81 |
Branch: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
82 |
Create a separate copy of a file/folder for private use (bug fixing, testing, etc). |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
83 |
Diff/Change: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
84 |
Finding the differences between two files. Useful for seeing what changed between revisions. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
85 |
Merge (or patch): |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
86 |
Apply the changes from one file to another, to bring it up-to-date. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
87 |
Conflict: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
88 |
When pending changes to a file contradict each other (both changes cannot be applied). |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
89 |
Resolve: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
90 |
Fixing the changes that contradict each other and checking in the correct version. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
91 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
92 |
Types of Version Control: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
93 |
------------------------- |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
94 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
95 |
Based on how source/code management is carried out in a tool there are two categories of Version Control Systems(VCS): |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
96 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
97 |
- Centralized VCS: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
98 |
In this kind of system all the revision control functions are performed on a shared server. If two developers try to change the same file at the same time, without some method of managing access the developers may end up overwriting each other's work. Centralized revision control systems solve this problem in one of two different "source management models": file locking and version merging. Both svn and cvs follows this kind of management. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
99 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
100 |
- Distributed VCS: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
101 |
In a distributed model, every developer has their own repo. Diffs, commits, and reverts are all done locally, one needs Internet only to share the changes with others. It makes work faster, handles branching and merging in better way, with less management. hg, bzr and git uses this work flow. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
102 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
103 |
Get Going with Hg: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
104 |
================== |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
105 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
106 |
Why hg? |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
107 |
------- |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
108 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
109 |
- It is easy to learn and use. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
110 |
- It is lightweight. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
111 |
- It scales excellently. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
112 |
- It is based on Python. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
113 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
114 |
A small point to notice here, hg cant track binary files for changes, one can add them to repo, but wont be able to track changes made to it. And hg considers, odt, pdf files as binary. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
115 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
116 |
Getting Started: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
117 |
---------------- |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
118 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
119 |
Following command tells the version of hg installed on machine: :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
120 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
121 |
$hg version |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
122 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
123 |
Mercurial Distributed SCM (version 1.1.2) |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
124 |
Copyright (C) 2005-2008 Matt Mackall <mpm@selenic.com> and others |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
125 |
This is free software; see the source for copying conditions. There is NO |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
126 |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
127 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
128 |
Built-in help, Mercurial provides a built-in help system. Following command will print a brief list of commands, along with a description of what each does. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
129 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
130 |
$hg help |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
131 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
132 |
Mercurial Distributed SCM |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
133 |
list of commands: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
134 |
add add the specified files on the next commit |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
135 |
addremove ----------------------- |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
136 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
137 |
For specific command, just follow the command name after the help. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
138 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
139 |
$hg help diff |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
140 |
hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]... |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
141 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
142 |
diff repository (or selected files) |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
143 |
Show differences between revisions for the specified files. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
144 |
Differences between files are shown using the unified diff format. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
145 |
NOTE:____________ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
146 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
147 |
Let there be Repository: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
148 |
------------------------ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
149 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
150 |
In Mercurial, everything happens inside a repository. The repository for a project contains all of the files that “belong to” that project, along with a historical record of the project's files. A repository is simply a directory tree in file-system that Mercurial treats as special. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
151 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
152 |
There can be two ways to create a repo, either getting local copy for existing repo available on Internet or machine, or creating a new repo. For getting already existing repo hg uses command *"clone"* :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
153 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
154 |
$hg clone http://hg.serpentine.com/tutorial/hello localCopyhello |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
155 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
156 |
requesting all changes |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
157 |
adding changesets |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
158 |
adding manifests |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
159 |
adding file changes |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
160 |
added 5 changesets with 5 changes to 2 files |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
161 |
updating working directory |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
162 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
163 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
164 |
If clone succeeded, there would be a local directory called localCopyhello, with some files: :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
165 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
166 |
$ls localCopyhello/ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
167 |
hello.c Makefile |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
168 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
169 |
Every Mercurial repository is complete, self-contained, and independent. It contains its own private copy of a project's files and history. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
170 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
171 |
To start a new repository use *hg init*: :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
172 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
173 |
$ mkdir Fevicol |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
174 |
$ cd Fevicol/ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
175 |
$ echo "print 'Yeh Fevicol ka Majboot jod hai'" > feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
176 |
$ ls -a |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
177 |
. .. feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
178 |
$ hg init |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
179 |
$ ls -a |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
180 |
. .. feviStick.py .hg |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
181 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
182 |
*.hg* directory indicates that this new dir is now a repo.This is where Mercurial keeps all of its metadata for the repository.The contents of the .hg directory and its subdirectories are private to Mercurial. Rest all files are for the user to use them as they pleases. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
183 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
184 |
Creating a branch of existing local repo is very easy via hg using clone command: :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
185 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
186 |
$ hg clone localCopyhello newCopy |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
187 |
updating working directory |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
188 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
189 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
190 |
newCopy is exact copy of already existing repo. And this command can be used to create branch of locally created repo also: :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
191 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
192 |
$ hg clone Fevicol Fevicol-pull |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
193 |
updating working directory |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
194 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
195 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
196 |
These local branches can prove really handy at times. It allows keep multiple copies of local branch for different purposes, say for debugging, testing, working version. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
197 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
198 |
History or Logs: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
199 |
---------------- |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
200 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
201 |
For the new repo created, first thing which can be tried is to check the logs/history. What changes were made and when and why, answers to all those questions are stored in logs safely. So for the the cloned repo the history can be viewed using command *"log"* (following commands are wrt localCopyhello repo). :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
202 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
203 |
$hg log |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
204 |
changeset: 4:2278160e78d4 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
205 |
tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
206 |
user: Bryan O'Sullivan <bos@serpentine.com> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
207 |
date: Sat Aug 16 22:16:53 2008 +0200 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
208 |
summary: Trim comments. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
209 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
210 |
changeset: 3:0272e0d5a517 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
211 |
user: Bryan O'Sullivan <bos@serpentine.com> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
212 |
date: Sat Aug 16 22:08:02 2008 +0200 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
213 |
summary: Get make to generate the final binary from a .o file. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
214 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
215 |
changeset: 2:fef857204a0c |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
216 |
user: Bryan O'Sullivan <bos@serpentine.com> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
217 |
date: Sat Aug 16 22:05:04 2008 +0200 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
218 |
summary: Introduce a typo into hello.c. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
219 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
220 |
changeset: 1:82e55d328c8c |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
221 |
user: mpm@selenic.com |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
222 |
date: Fri Aug 26 01:21:28 2005 -0700 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
223 |
summary: Create a makefile |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
224 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
225 |
changeset: 0:0a04b987be5a |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
226 |
user: mpm@selenic.com |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
227 |
date: Fri Aug 26 01:20:50 2005 -0700 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
228 |
summary: Create a standard "hello, world" program |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
229 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
230 |
By default, this command prints a brief paragraph of output for each change to the project that was recorded.The fields in a record of output from hg log are as follows: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
231 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
232 |
- changeset: This field has the format of a number, followed by a colon, followed by a hexadecimal (or hex) string. These are identifiers for the changeset. The hex string is a unique identifier: the same hex string will always refer to the same changeset in every copy of this repository. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
233 |
- user: The identity of the person who created the changeset. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
234 |
- date: The date and time on which the changeset was created, and the timezone in which it was created. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
235 |
- summary: The first line of the text message that the creator of the changeset entered to describe the changeset. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
236 |
- tag: A tag is another way to identify a changeset, by giving it an easy-to-remember name. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
237 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
238 |
To narrow the output of hg log down to a single revision, use the -r (or --rev) option. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
239 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
240 |
$hg log -r 3 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
241 |
changeset: 3:0272e0d5a517 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
242 |
user: Bryan O'Sullivan <bos@serpentine.com> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
243 |
date: Sat Aug 16 22:08:02 2008 +0200 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
244 |
summary: Get make to generate the final binary from a .o file. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
245 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
246 |
*range notation* can be used to get history of several revisions without having to list each one. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
247 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
248 |
$ hg log -r 2:4 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
249 |
changeset: 2:fef857204a0c |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
250 |
user: Bryan O'Sullivan <bos@serpentine.com> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
251 |
date: Sat Aug 16 22:05:04 2008 +0200 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
252 |
summary: Introduce a typo into hello.c. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
253 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
254 |
changeset: 3:0272e0d5a517 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
255 |
user: Bryan O'Sullivan <bos@serpentine.com> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
256 |
date: Sat Aug 16 22:08:02 2008 +0200 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
257 |
summary: Get make to generate the final binary from a .o file. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
258 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
259 |
changeset: 4:2278160e78d4 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
260 |
tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
261 |
user: Bryan O'Sullivan <bos@serpentine.com> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
262 |
date: Sat Aug 16 22:16:53 2008 +0200 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
263 |
summary: Trim comments. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
264 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
265 |
The hg log command's -v (or --verbose) option gives you this extra detail. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
266 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
267 |
$ hg log -v -r 3 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
268 |
changeset: 3:0272e0d5a517 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
269 |
user: Bryan O'Sullivan <bos@serpentine.com> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
270 |
date: Sat Aug 16 22:08:02 2008 +0200 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
271 |
files: Makefile |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
272 |
description: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
273 |
Get make to generate the final binary from a .o file. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
274 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
275 |
Making Changes: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
276 |
--------------- |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
277 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
278 |
There is feviStick.py file in repo created above with name Fevicol. *status(alias st)* command prints the revision history of the specified files or the entire project:: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
279 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
280 |
$ cd Fevicol |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
281 |
$ hg log |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
282 |
$ hg status |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
283 |
? feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
284 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
285 |
"?" sign in front of file indicates that this file is not yet part of track record. *add* command is used to add new files to repo. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
286 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
287 |
$ hg add feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
288 |
$ hg st |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
289 |
A feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
290 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
291 |
So file is now part of repository(A symbol). Use *commit (alias ci)* command to make changes effective(this command would be explained in more details in later parts). :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
292 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
293 |
$ hg ci -u "Shantanu <shantanu@fossee.in>" -m "First commit." |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
294 |
$ hg log |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
295 |
changeset: 0:84f5e91f4de1 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
296 |
tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
297 |
user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
298 |
date: Fri Aug 21 23:37:13 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
299 |
summary: First commit. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
300 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
301 |
Similar to add there are other commands available for file management in repo. *copy (alias cp)* command is used to mark files as copied for the next commit. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
302 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
303 |
$ hg cp feviStick.py pidiLite.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
304 |
$ hg st |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
305 |
A pidiLite.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
306 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
307 |
*rename(alias mv)* rename files; equivalent of copy + remove. *tip* command shows newest revision in the repository. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
308 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
309 |
$ hg rename pidiLite.py feviCol.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
310 |
$ hg st |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
311 |
A feviCol.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
312 |
$ hg ci -u "Shantanu <shantanu@fossee.in>" -m "Renamed pidiLite.py." |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
313 |
$ hg tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
314 |
changeset: 1:d948fb4137c5 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
315 |
tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
316 |
user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
317 |
date: Sat Aug 22 00:11:25 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
318 |
summary: Renamed pidiLite.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
319 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
320 |
*remove* command is used to remove files from a repo. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
321 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
322 |
$ hg remove feviCol.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
323 |
$ hg st |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
324 |
R feviCol.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
325 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
326 |
R status of files denotes, file is marked as to be removed by the previous command *remove*. To add the file again to repo, one can use *revert* command, which restore individual files or dirs to an earlier state. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
327 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
328 |
$ ls |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
329 |
feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
330 |
$ hg revert feviCol.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
331 |
$ ls |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
332 |
feviCol.py feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
333 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
334 |
Sharing Changes: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
335 |
---------------- |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
336 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
337 |
Pulling from repo: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
338 |
~~~~~~~~~~~~~~~~~~ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
339 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
340 |
As mentioned earlier that repositories in Mercurial are self-contained. This means that the changeset just created exists only in Fevicol repository and not in previously cloned Fevicol-pull. There are a few ways that can be used to propagate this change into other repositories. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
341 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
342 |
$ hg clone Fevicol Fevicol-clone |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
343 |
updating working directory |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
344 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
345 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
346 |
Or traverse into the any dir which is a working hg repo(using hg init) and pull command will download all changeset from main repo. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
347 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
348 |
$ mkdir Fevicol-pull |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
349 |
$ cd Fevicol-pull |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
350 |
$ hg init |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
351 |
$ hg pull ../Fevicol |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
352 |
pulling from ../Fevicol |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
353 |
requesting all changes |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
354 |
adding changesets |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
355 |
adding manifests |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
356 |
adding file changes |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
357 |
added 2 changesets with 2 changes to 2 files |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
358 |
(run 'hg update' to get a working copy) |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
359 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
360 |
*changeset* means a list of changes made to a file. In words of *hg help*, pull command is: :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
361 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
362 |
pull changes from the specified source |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
363 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
364 |
Pull changes from a remote repository to a local one. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
365 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
366 |
This finds all changes from the repository at the specified path |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
367 |
or URL and adds them to the local repository. By default, this |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
368 |
does not update the copy of the project in the working directory. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
369 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
370 |
Some times, even before pulling changesets, one may need to see what changes would be pulled, Mercurial provides *hg incoming* to tell what changes *hg pull* would pull into repo, without actually pulling the changes. This command is really handy in case of avoiding unwanted changesets into the repo. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
371 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
372 |
With Mercurial, *hg pull* does not(by default) touch the working directory. Instead there is *hg up (alias update, co, checkout)* command to do this. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
373 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
374 |
$ cd Fevicol-pull |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
375 |
$ ls -a |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
376 |
. .. .hg |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
377 |
$ hg up |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
378 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
379 |
$ ls -a |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
380 |
. .. feviCol.py feviStick.py .hg |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
381 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
382 |
To update to specific version, give a version number to the *hg update* command. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
383 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
384 |
$ hg update 0 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
385 |
0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
386 |
$ hg parent |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
387 |
changeset: 0:84f5e91f4de1 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
388 |
user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
389 |
date: Fri Aug 21 23:37:13 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
390 |
summary: First commit. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
391 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
392 |
If no version number is specified *hg up* will update to the tip version. Version number of hg starts from 0. Compare *hg parent* output to the one before doing update to see the difference. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
393 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
394 |
Making Changes: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
395 |
~~~~~~~~~~~~~~~ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
396 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
397 |
After getting the desired version of local repo, one can make changes as he/she needs and then make them available(share) for others. For these operations we will be working in Fevicol-clone repo which we created earlier. It's often good practice to keep a “pristine” copy of a remote repository around, which you can then make temporary clones of to create sandboxes for each task you want to work on. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
398 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
399 |
$ cd Fevicol-clone/ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
400 |
$ cat feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
401 |
print 'Yeh Fevicol ka Majboot jod hai' |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
402 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
403 |
This tagline is correct for feviCol.py but for feviStick.py it should be different. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
404 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
405 |
$ echo "print 'Ab no more Chip Chip'" > feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
406 |
$ cat feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
407 |
print 'Ab no more Chip Chip' |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
408 |
$ hg st |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
409 |
M feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
410 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
411 |
Mercurial's hg status command will tell us what Mercurial knows about the files in the repository. 'M' sign in front of feviStick.py indicates that Mercurial has noticed change. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
412 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
413 |
It's somewhat helpful to know that feviStick.py was modified, but one might prefer to know exactly what changes were made to it. To do this, use the *hg diff* command. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
414 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
415 |
$ hg diff |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
416 |
diff -r a7912d45f47c feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
417 |
--- a/feviStick.py Sun Aug 23 22:34:35 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
418 |
+++ b/feviStick.py Sun Aug 23 22:47:49 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
419 |
@@ -1,1 +1,1 @@ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
420 |
-print 'Yeh Fevicol ka Majboot jod hai' |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
421 |
+print 'Ab no more Chip Chip' |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
422 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
423 |
We can modify files, build and test our changes, and use hg status and hg diff to review our changes, until we're satisfied with what we've done and arrive at a natural stopping point where we want to record our work in a new changeset. All the diffs prior to committing the changes would be done wrt earlier marked record.The hg commit command lets us create a new changeset. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
424 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
425 |
Mercurial records your name and address with each change that you commit, so that you and others will later be able to tell who made each change. Mercurial tries to automatically figure out a sensible username to commit the change with. When we try to use *hg commit* there are various ways by which one can specify User name, some of those are: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
426 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
427 |
- Specify a -u option to the hg commit command on the command line, followed by a username. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
428 |
- set HGUSER environment variable. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
429 |
- Edit hgrc file present in .hg folder to set this property, add following lines to that file and Mercurial will read those parameters from that location. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
430 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
431 |
[ui] |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
432 |
username = Firstname Lastname <email.address@example.net> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
433 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
434 |
For me the hgrc file looks like this: :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
435 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
436 |
[paths] |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
437 |
default = /home/baali/Fevicol |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
438 |
[ui] |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
439 |
username = Shantanu Choudhary <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
440 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
441 |
Once this parameter is set, *hg commit* command drops us into a text editor, to enter a message that will describe the modifications we've made in this changeset. This is called the commit message. It will be a record for readers of what we did and why, and it will be printed by hg log after we've finished committing. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
442 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
443 |
Changed tagline for feviStick.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
444 |
HG: Enter commit message. Lines beginning with 'HG:' are removed. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
445 |
HG: -- |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
446 |
HG: user: Shantanu Choudhary <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
447 |
HG: branch 'default' |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
448 |
HG: changed feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
449 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
450 |
This would be your default system editor(for me it is vim, one can set it also), where you can enter the log message in first line, once you are done with log message quit the editor using *[ESC] key ":wq"*.Once we've finished the commit, we can use the hg tip command to display the changeset we just created. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
451 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
452 |
$ hg tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
453 |
changeset: 3:e1ab2aff4ddd |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
454 |
tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
455 |
user: Shantanu Choudhary <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
456 |
date: Sun Aug 23 23:32:01 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
457 |
summary: Changed tagline for feviStick.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
458 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
459 |
One can do above mentioned procedure using following one line command: :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
460 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
461 |
$ hg ci -u "Shantanu <shantanu@fossee.in>" -m "Changed tagline for feviStick.py." |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
462 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
463 |
Sharing Changes: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
464 |
~~~~~~~~~~~~~~~~ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
465 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
466 |
The *hg outgoing* command tells us what changes would be pushed into another repository. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
467 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
468 |
$ hg outgoing ../Fevicol |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
469 |
comparing with ../Fevicol |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
470 |
searching for changes |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
471 |
changeset: 3:e1ab2aff4ddd |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
472 |
tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
473 |
user: Shantanu Choudhary <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
474 |
date: Sun Aug 23 23:32:01 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
475 |
summary: Changed tagline for feviStick.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
476 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
477 |
And the *hg push* command does the actual push. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
478 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
479 |
$ hg push ../Fevicol |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
480 |
pushing to ../Fevicol |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
481 |
searching for changes |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
482 |
adding changesets |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
483 |
adding manifests |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
484 |
adding file changes |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
485 |
added 1 changesets with 1 changes to 1 files |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
486 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
487 |
As with hg pull, the hg push command does not update the working directory in the repository that it's pushing changes into. One has to use hg update to populate the changes in desired repo. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
488 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
489 |
$ cd ../Fevicol |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
490 |
$ hg tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
491 |
changeset: 3:e1ab2aff4ddd |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
492 |
tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
493 |
user: Shantanu Choudhary <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
494 |
date: Sun Aug 23 23:32:01 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
495 |
summary: Changed tagline for feviStick.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
496 |
$ cat feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
497 |
print 'Yeh Fevicol ka Majboot jod hai' |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
498 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
499 |
changesets are imported, but update is yet to be done. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
500 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
501 |
$ hg up tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
502 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
503 |
$ $ cat feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
504 |
print 'Ab no more Chip Chip' |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
505 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
506 |
Merging the Work: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
507 |
~~~~~~~~~~~~~~~~~ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
508 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
509 |
This is next aspect of any version control, how to merge work done by various participants of project in a way that no one looses changes being made, and still remains updated. Here is simple case study which can help understanding why merging is required: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
510 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
511 |
Two persons, A and B are contributing on same project. Both starts from cloning the same online repo(lets say present state X), so that both have a working local repo. Now A edits one of file, commits the changes and pushes to the repo, hence changing the state of repo to Y, but B, have not updated his repo, makes a change in one of files and reaches to a different state Z. Now when A pulls repo from B, his repo will have multiple heads. This stage is clearly ambiguous, the repo of A is not consistent, it has multiple heads, and from here, whatever changes he makes can take whatsoever direction if it is not fixed, and hence A will have to merge changes so that everything becomes consistent again. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
512 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
513 |
Lets see how this work with working repo, we will use Fevicol and Fevicol-clone repositories created earlier. For now, the status of both repo is: :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
514 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
515 |
$ cd Fevicol-clone |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
516 |
$ hg tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
517 |
changeset: 3:e1ab2aff4ddd |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
518 |
tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
519 |
user: Shantanu Choudhary <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
520 |
date: Sun Aug 23 23:32:01 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
521 |
summary: Changed tagline for feviStick.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
522 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
523 |
The tagline for feviCol.py is not complete, so we make changes in that file in this repo. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
524 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
525 |
$ echo "print 'Yeh Fevicol ka Majboot jod hai, tootega nahin'" > feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
526 |
$ hg st |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
527 |
M feviStick.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
528 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
529 |
And commit the changes made :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
530 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
531 |
$ hg ci -u "Shantanu <shantanu@fossee.in>" -m "Updated tag line for feviCol.py." |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
532 |
$ hg st |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
533 |
$ hg tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
534 |
changeset: 4:caf986b15e05 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
535 |
tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
536 |
user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
537 |
date: Tue Aug 25 16:28:24 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
538 |
summary: Updated tag line for feviCol.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
539 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
540 |
Now we will make some changes on Fevicol repo. We will add new file here :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
541 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
542 |
$ cd Fevicol |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
543 |
$ echo "print 'Jor laga ke hayyiya'" > firstAdd.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
544 |
$ hg st |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
545 |
? firstAdd.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
546 |
$ hg add firstAdd.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
547 |
$ hg st |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
548 |
A firstAdd.py |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
549 |
$ hg ci -u "Shantanu <shantanu@fossee.in>" -m "Added firsAdd.py." |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
550 |
$ hg tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
551 |
changeset: 4:fadbd6492cc4 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
552 |
tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
553 |
user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
554 |
date: Tue Aug 25 16:46:24 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
555 |
summary: Added firsAdd.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
556 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
557 |
So now we have two repo, who have different commit history and tree, now if we try to pull changes from one to another, this is how it goes(we are still in Fevicol repo): :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
558 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
559 |
$ hg pull ../Fevicol-clone |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
560 |
pulling from ../Fevicol-clone |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
561 |
searching for changes |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
562 |
adding changesets |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
563 |
adding manifests |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
564 |
adding file changes |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
565 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
566 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
567 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
568 |
There we go, since both repo were on different track, hg pull command in last line gives some heading from here. *hg heads* command show current repository heads or show branch heads. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
569 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
570 |
$ hg heads |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
571 |
changeset: 5:caf986b15e05 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
572 |
tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
573 |
parent: 3:e1ab2aff4ddd |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
574 |
user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
575 |
date: Tue Aug 25 16:28:24 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
576 |
summary: Updated tag line for feviCol.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
577 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
578 |
changeset: 4:fadbd6492cc4 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
579 |
user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
580 |
date: Tue Aug 25 16:46:24 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
581 |
summary: Added firsAdd.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
582 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
583 |
To get better understanding of what is going on hg have a tool known as *glog* which shows revision history alongside an ASCII revision graph. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
584 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
585 |
$ hg glog |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
586 |
o changeset: 5:caf986b15e05 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
587 |
| tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
588 |
| parent: 3:e1ab2aff4ddd |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
589 |
| user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
590 |
| date: Tue Aug 25 16:28:24 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
591 |
| summary: Updated tag line for feviCol.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
592 |
| |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
593 |
| @ changeset: 4:fadbd6492cc4 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
594 |
|/ user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
595 |
| date: Tue Aug 25 16:46:24 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
596 |
| summary: Added firsAdd.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
597 |
| |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
598 |
o changeset: 3:e1ab2aff4ddd |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
599 |
| user: Shantanu Choudhary <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
600 |
| date: Sun Aug 23 23:32:01 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
601 |
| summary: Changed tagline for feviStick.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
602 |
| |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
603 |
o changeset: 2:a7912d45f47c |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
604 |
| user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
605 |
| date: Sun Aug 23 22:34:35 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
606 |
| summary: Updated Content. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
607 |
| |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
608 |
o changeset: 1:d948fb4137c5 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
609 |
| user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
610 |
| date: Sat Aug 22 00:11:25 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
611 |
| summary: Renamed pidiLite.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
612 |
| |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
613 |
o changeset: 0:84f5e91f4de1 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
614 |
user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
615 |
date: Fri Aug 21 23:37:13 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
616 |
summary: First commit. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
617 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
618 |
To bring repo on single track/branch once again we will have to merge these two branches. Without merging them even hg update wont work for obvious reason of confusing track record. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
619 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
620 |
$ hg up |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
621 |
abort: crosses branches (use 'hg merge' or 'hg update -C') |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
622 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
623 |
*hg merge* command merge working directory with another revision. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
624 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
625 |
$ hg merge |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
626 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
627 |
(branch merge, don't forget to commit) |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
628 |
$ hg tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
629 |
changeset: 5:caf986b15e05 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
630 |
tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
631 |
parent: 3:e1ab2aff4ddd |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
632 |
user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
633 |
date: Tue Aug 25 16:28:24 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
634 |
summary: Updated tag line for feviCol.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
635 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
636 |
After merging two branches, until we commit the results of merge it will keep on showing two heads. :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
637 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
638 |
$ hg ci -u "Shantanu <shantanu@fossee.in>" -m "Merged branches of add and tag line." |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
639 |
$ hg heads |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
640 |
changeset: 6:edbe97209954 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
641 |
tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
642 |
parent: 4:fadbd6492cc4 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
643 |
parent: 5:caf986b15e05 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
644 |
user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
645 |
date: Tue Aug 25 17:06:03 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
646 |
summary: Merged branches of add and tag line. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
647 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
648 |
Here is brief and meaningful output of glog :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
649 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
650 |
$ hg glog |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
651 |
@ changeset: 6:edbe97209954 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
652 |
|\ tag: tip |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
653 |
| | parent: 4:fadbd6492cc4 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
654 |
| | parent: 5:caf986b15e05 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
655 |
| | user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
656 |
| | date: Tue Aug 25 17:06:03 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
657 |
| | summary: Merged branches of add and tag line. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
658 |
| | |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
659 |
| o changeset: 5:caf986b15e05 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
660 |
| | parent: 3:e1ab2aff4ddd |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
661 |
| | user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
662 |
| | date: Tue Aug 25 16:28:24 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
663 |
| | summary: Updated tag line for feviCol.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
664 |
| | |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
665 |
o | changeset: 4:fadbd6492cc4 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
666 |
|/ user: Shantanu <shantanu@fossee.in> |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
667 |
| date: Tue Aug 25 16:46:24 2009 +0530 |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
668 |
| summary: Added firsAdd.py. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
669 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
670 |
And we are back on track. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
671 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
672 |
Workflow: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
673 |
========= |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
674 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
675 |
This is chain of steps which can be followed for working against a project that has a centralized copy, you may want to make sure you're up to date first. This means pulling its changes and then updating. |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
676 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
677 |
For example: :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
678 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
679 |
$ hg pull |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
680 |
$ hg update |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
681 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
682 |
This will grab the remote changes from the location you first cloned from. Then it will apply the changes. You can do this in one go with: :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
683 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
684 |
$ hg pull -u |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
685 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
686 |
Now let's say you make some changes. You edit a file and you want to commit your change. You can do this with: :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
687 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
688 |
$ hg commit |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
689 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
690 |
An editor will pop-up asking you to write a message describing your change. When you're done for the day, and you have required changesets sitting in your repository. Before pushing to upstream make sure to pull and update and merge branches if required, once everything looks okay and you have single track, push the changes, :: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
691 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
692 |
$ hg push |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
693 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
694 |
Suggested Reading: |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
695 |
================== |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
696 |
|
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
697 |
* http://karlagius.com/2009/01/09/version-control-for-the-masses/ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
698 |
* http://betterexplained.com/articles/a-visual-guide-to-version-control/ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
699 |
* http://en.wikipedia.org/wiki/Revision_control |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
700 |
* http://hgbook.red-bean.com/ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
701 |
* http://betterexplained.com/articles/intro-to-distributed-version-control-illustrated/ |
27e1f5bd2774
Using test review as the test directory for testing sees.hook for the review app
amit@thunder
parents:
diff
changeset
|
702 |
* http://wiki.alliedmods.net/Mercurial_Tutorial |