-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathCommandLineHooks.xml
57 lines (54 loc) · 1.81 KB
/
CommandLineHooks.xml
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
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!---->
<!--
This is a prest config file; any changes you make to it will be discarded when you launch SQL Source Control.
To keep any changes, you must save them as a new config file in the default location:
%USERPROFILE%\AppData\Local\Red Gate\SQL Source Control 2\CommandLineHooks
-->
<HooksConfig version="1" type="HooksConfig">
<Name>Mercurial</Name>
<Commands type="Commands" version="2">
<element>
<key type="string">GetLatest</key>
<value version="1" type="GenericHookCommand">
<CommandLine>hg update</CommandLine>
<Verify>exitCode == 0</Verify>
</value>
</element>
<element>
<key type="string">Add</key>
<value version="1" type="GenericHookCommand">
<CommandLine>hg add ($files)</CommandLine>
<Verify>exitCode == 0</Verify>
</value>
</element>
<element>
<key type="string">Edit</key>
<value version="1" type="GenericHookCommand">
<CommandLine></CommandLine>
<Verify></Verify>
</value>
</element>
<element>
<key type="string">Delete</key>
<value version="1" type="GenericHookCommand">
<CommandLine>hg remove ($files)</CommandLine>
<Verify>exitCode == 0</Verify>
</value>
</element>
<element>
<key type="string">Commit</key>
<value version="1" type="GenericHookCommand">
<CommandLine>hg commit -I "($ScriptsFolder)*" -l "($MessageFile)"</CommandLine>
<Verify>exitCode == 0</Verify>
</value>
</element>
<element>
<key type="string">Revert</key>
<value version="1" type="GenericHookCommand">
<CommandLine>hg revert -I "($ScriptsFolder)*" *</CommandLine>
<Verify>exitCode == 0</Verify>
</value>
</element>
</Commands>
</HooksConfig>