|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsMercurial.LargefilesExtension.largefiles</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.Plugins.VcsPlugins.vcsMercurial.LargefilesExtension.largefiles</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing the largefiles extension interface. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 |
|
37 <tr> |
|
38 <td><a href="#Largefiles">Largefiles</a></td> |
|
39 <td>Class implementing the largefiles extension interface.</td> |
|
40 </tr> |
|
41 </table> |
|
42 <h3>Functions</h3> |
|
43 |
|
44 <table> |
|
45 <tr><td>None</td></tr> |
|
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
|
49 <a NAME="Largefiles" ID="Largefiles"></a> |
|
50 <h2>Largefiles</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing the largefiles extension interface. |
|
54 </p> |
|
55 <h3>Derived from</h3> |
|
56 HgExtension |
|
57 <h3>Class Attributes</h3> |
|
58 |
|
59 <table> |
|
60 <tr><td>None</td></tr> |
|
61 </table> |
|
62 <h3>Class Methods</h3> |
|
63 |
|
64 <table> |
|
65 <tr><td>None</td></tr> |
|
66 </table> |
|
67 <h3>Methods</h3> |
|
68 |
|
69 <table> |
|
70 |
|
71 <tr> |
|
72 <td><a href="#Largefiles.__init__">Largefiles</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td><a href="#Largefiles.hgAdd">hgAdd</a></td> |
|
77 <td>Public method used to add a file to the Mercurial repository.</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#Largefiles.hgLfPull">hgLfPull</a></td> |
|
81 <td>Public method to pull missing large files into the local repository.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#Largefiles.hgLfVerify">hgLfVerify</a></td> |
|
85 <td>Public method to verify large files integrity.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#Largefiles.hgLfconvert">hgLfconvert</a></td> |
|
89 <td>Public slot to convert the repository format of the current project.</td> |
|
90 </tr> |
|
91 </table> |
|
92 <h3>Static Methods</h3> |
|
93 |
|
94 <table> |
|
95 <tr><td>None</td></tr> |
|
96 </table> |
|
97 |
|
98 <a NAME="Largefiles.__init__" ID="Largefiles.__init__"></a> |
|
99 <h4>Largefiles (Constructor)</h4> |
|
100 <b>Largefiles</b>(<i>vcs</i>) |
|
101 |
|
102 <p> |
|
103 Constructor |
|
104 </p> |
|
105 <dl> |
|
106 |
|
107 <dt><i>vcs</i></dt> |
|
108 <dd> |
|
109 reference to the Mercurial vcs object |
|
110 </dd> |
|
111 </dl> |
|
112 <a NAME="Largefiles.hgAdd" ID="Largefiles.hgAdd"></a> |
|
113 <h4>Largefiles.hgAdd</h4> |
|
114 <b>hgAdd</b>(<i>names, mode</i>) |
|
115 |
|
116 <p> |
|
117 Public method used to add a file to the Mercurial repository. |
|
118 </p> |
|
119 <dl> |
|
120 |
|
121 <dt><i>names</i></dt> |
|
122 <dd> |
|
123 file name(s) to be added (string or list of string) |
|
124 </dd> |
|
125 <dt><i>mode</i></dt> |
|
126 <dd> |
|
127 add mode (string one of 'normal' or 'large') |
|
128 </dd> |
|
129 </dl> |
|
130 <a NAME="Largefiles.hgLfPull" ID="Largefiles.hgLfPull"></a> |
|
131 <h4>Largefiles.hgLfPull</h4> |
|
132 <b>hgLfPull</b>(<i>revisions=None</i>) |
|
133 |
|
134 <p> |
|
135 Public method to pull missing large files into the local repository. |
|
136 </p> |
|
137 <dl> |
|
138 |
|
139 <dt><i>revisions</i></dt> |
|
140 <dd> |
|
141 list of revisions to pull (list of string) |
|
142 </dd> |
|
143 </dl> |
|
144 <a NAME="Largefiles.hgLfVerify" ID="Largefiles.hgLfVerify"></a> |
|
145 <h4>Largefiles.hgLfVerify</h4> |
|
146 <b>hgLfVerify</b>(<i>mode</i>) |
|
147 |
|
148 <p> |
|
149 Public method to verify large files integrity. |
|
150 </p> |
|
151 <dl> |
|
152 |
|
153 <dt><i>mode</i></dt> |
|
154 <dd> |
|
155 verify mode (string; one of 'large', 'lfa' or 'lfc') |
|
156 </dd> |
|
157 </dl> |
|
158 <a NAME="Largefiles.hgLfconvert" ID="Largefiles.hgLfconvert"></a> |
|
159 <h4>Largefiles.hgLfconvert</h4> |
|
160 <b>hgLfconvert</b>(<i>direction, projectFile</i>) |
|
161 |
|
162 <p> |
|
163 Public slot to convert the repository format of the current project. |
|
164 </p> |
|
165 <dl> |
|
166 |
|
167 <dt><i>direction</i></dt> |
|
168 <dd> |
|
169 direction of the conversion (string, one of |
|
170 'largefiles' or 'normal') |
|
171 </dd> |
|
172 <dt><i>projectFile</i></dt> |
|
173 <dd> |
|
174 file name of the current project file (string) |
|
175 </dd> |
|
176 </dl> |
|
177 <dl> |
|
178 |
|
179 <dt>Raises <b>ValueError</b>:</dt> |
|
180 <dd> |
|
181 raised to indicate a bad value for the |
|
182 'direction' parameter. |
|
183 </dd> |
|
184 </dl> |
|
185 <div align="right"><a href="#top">Up</a></div> |
|
186 <hr /> |
|
187 </body></html> |