Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.2, 0.8.3, and 0.9

stable doc: init section

Changeset 3febf8de5529

Parent 18968479ce64

by Giampaolo Fadel

Changes to 2 files · Browse files at 3febf8de5529 Showing diff from parent 18968479ce64 Diff from another changeset...

 
8
9
10
 
11
12
13
 
8
9
10
11
12
13
14
@@ -8,6 +8,7 @@
  common   explorer   start + init   commit   shelve   changelog
Change 1 of 1 Show Entire File doc/​source/​init.txt Stacked
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@@ -0,0 +1,47 @@
+Create a new repository +======================= + +.. module:: init.dialog + :synopsis: Dialog used to create a repository + +To create a new repository into an existing directory (project) you +have to run the init dialog. From the explorer context menu select +:guilabel:`Create Repository Here` over the directory, or, within +the folder, type :command:`hgtk init`. + +.. figure:: figures/init.png + :alt: Init dialog + +:guilabel:`Destination` + Is the directory where the repository will be created. It is + always filled with the current directory, so if you launch the + dialog from the right directory there is no reason to change it. +:guilabel:`Add special files (.hgignore, ...)` + If selected TortoiseHg creates an empty :file:`.hgignore` file + in the working directory. +:guilabel:`Make repo compatible with Mercurial 1.0` + If selected TortoiseHg creates an old type Mercurial repository. + Do not check unless you have a strong reason to do, and you know + what you are doing. + +Creating a new repository means create a subdirectory called :file:`.hg`. +In this subdirectory Mercurial keeps all versioning information. + +.. warning:: + Never touch the files in :file:`.hg` directory, otherwise a repository + corruption can happen. + +From command line +----------------- + +The init tool can be started from command line :: + + hgtk init + +The syntax is :: + + hgtk init [DEST] + +where [DEST] is the path to destination folder. + +.. vim: noet ts=4