Show More
@@ -1,49 +1,53 b'' | |||||
1 | ; System-wide Mercurial config file. To override these settings on a |
|
1 | ; System-wide Mercurial config file. To override these settings on a | |
2 | ; per-user basis, please edit the following file instead, where |
|
2 | ; per-user basis, please edit the following file instead, where | |
3 | ; USERNAME is your Windows user name: |
|
3 | ; USERNAME is your Windows user name: | |
4 | ; C:\Documents and Settings\USERNAME\Mercurial.ini |
|
4 | ; C:\Documents and Settings\USERNAME\Mercurial.ini | |
5 |
|
5 | |||
6 | [ui] |
|
6 | [ui] | |
7 | editor = notepad |
|
7 | editor = notepad | |
8 | ; show changed files and be a bit more verbose if True |
|
8 | ; show changed files and be a bit more verbose if True | |
9 | ; verbose = True |
|
9 | ; verbose = True | |
10 |
|
10 | |||
11 | ; username data to appear in commits |
|
11 | ; username data to appear in commits | |
12 | ; it usually takes the form: Joe User <joe.user@host.com> |
|
12 | ; it usually takes the form: Joe User <joe.user@host.com> | |
13 | ; username = Joe User <j.user@example.com> |
|
13 | ; username = Joe User <j.user@example.com> | |
14 |
|
14 | |||
15 |
|
15 | |||
16 | ; By default, we try to encode and decode all files that do not |
|
16 | ; By default, we try to encode and decode all files that do not | |
17 | ; contain ASCII NUL characters. What this means is that we try to set |
|
17 | ; contain ASCII NUL characters. What this means is that we try to set | |
18 | ; line endings to Windows style on update, and to Unix style on |
|
18 | ; line endings to Windows style on update, and to Unix style on | |
19 | ; commit. This lets us cooperate with Linux and Unix users, so |
|
19 | ; commit. This lets us cooperate with Linux and Unix users, so | |
20 | ; everybody sees files with their native line endings. |
|
20 | ; everybody sees files with their native line endings. | |
21 |
|
21 | |||
22 | [extensions] |
|
22 | [extensions] | |
23 | ; The win32text extension is available and installed by default. It |
|
23 | ; The win32text extension is available and installed by default. It | |
24 | ; provides built-in Python hooks to perform line ending conversions. |
|
24 | ; provides built-in Python hooks to perform line ending conversions. | |
25 | ; This is normally much faster than running an external program. |
|
25 | ; This is normally much faster than running an external program. | |
26 | hgext.win32text = |
|
26 | hgext.win32text = | |
27 |
|
27 | |||
28 |
|
28 | |||
29 | [encode] |
|
29 | [encode] | |
30 | ; Encode files that don't contain NUL characters. |
|
30 | ; Encode files that don't contain NUL characters. | |
31 |
|
31 | |||
32 | ; ** = cleverencode: |
|
32 | ; ** = cleverencode: | |
33 |
|
33 | |||
34 | ; Alternatively, you can explicitly specify each file extension that |
|
34 | ; Alternatively, you can explicitly specify each file extension that | |
35 | ; you want encoded (any you omit will be left untouched), like this: |
|
35 | ; you want encoded (any you omit will be left untouched), like this: | |
36 |
|
36 | |||
37 | ; *.txt = dumbencode: |
|
37 | ; *.txt = dumbencode: | |
38 |
|
38 | |||
39 |
|
39 | |||
40 | [decode] |
|
40 | [decode] | |
41 | ; Decode files that don't contain NUL characters. |
|
41 | ; Decode files that don't contain NUL characters. | |
42 |
|
42 | |||
43 | ; ** = cleverdecode: |
|
43 | ; ** = cleverdecode: | |
44 |
|
44 | |||
45 | ; Alternatively, you can explicitly specify each file extension that |
|
45 | ; Alternatively, you can explicitly specify each file extension that | |
46 | ; you want decoded (any you omit will be left untouched), like this: |
|
46 | ; you want decoded (any you omit will be left untouched), like this: | |
47 | ; **.txt = dumbdecode: |
|
47 | ; **.txt = dumbdecode: | |
|
48 | [hgk] | |||
|
49 | ; Replace the following with your path to hgk, uncomment it and | |||
|
50 | ; install ActiveTcl (or another win32 port) | |||
|
51 | ; path="C:\Program Files\Mercurial\Contrib\hgk.tcl" | |||
48 |
|
52 | |||
49 |
|
53 |
@@ -1,96 +1,97 b'' | |||||
1 | ; Script generated by the Inno Setup Script Wizard. |
|
1 | ; Script generated by the Inno Setup Script Wizard. | |
2 | ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! |
|
2 | ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! | |
3 | [Setup] |
|
3 | [Setup] | |
4 | AppCopyright=Copyright 2005-2009 Matt Mackall and others |
|
4 | AppCopyright=Copyright 2005-2009 Matt Mackall and others | |
5 | AppName=Mercurial |
|
5 | AppName=Mercurial | |
6 | AppVerName=Mercurial snapshot |
|
6 | AppVerName=Mercurial snapshot | |
7 | InfoAfterFile=contrib/win32/postinstall.txt |
|
7 | InfoAfterFile=contrib/win32/postinstall.txt | |
8 | LicenseFile=COPYING |
|
8 | LicenseFile=COPYING | |
9 | ShowLanguageDialog=yes |
|
9 | ShowLanguageDialog=yes | |
10 | AppPublisher=Matt Mackall and others |
|
10 | AppPublisher=Matt Mackall and others | |
11 | AppPublisherURL=http://www.selenic.com/mercurial |
|
11 | AppPublisherURL=http://www.selenic.com/mercurial | |
12 | AppSupportURL=http://www.selenic.com/mercurial |
|
12 | AppSupportURL=http://www.selenic.com/mercurial | |
13 | AppUpdatesURL=http://www.selenic.com/mercurial |
|
13 | AppUpdatesURL=http://www.selenic.com/mercurial | |
14 | AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3} |
|
14 | AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3} | |
15 | AppContact=mercurial@selenic.com |
|
15 | AppContact=mercurial@selenic.com | |
16 | OutputBaseFilename=Mercurial-snapshot |
|
16 | OutputBaseFilename=Mercurial-snapshot | |
17 | DefaultDirName={pf}\Mercurial |
|
17 | DefaultDirName={pf}\Mercurial | |
18 | SourceDir=..\.. |
|
18 | SourceDir=..\.. | |
19 | VersionInfoDescription=Mercurial distributed SCM |
|
19 | VersionInfoDescription=Mercurial distributed SCM | |
20 | VersionInfoCopyright=Copyright 2005-2009 Matt Mackall and others |
|
20 | VersionInfoCopyright=Copyright 2005-2009 Matt Mackall and others | |
21 | VersionInfoCompany=Matt Mackall and others |
|
21 | VersionInfoCompany=Matt Mackall and others | |
22 | InternalCompressLevel=max |
|
22 | InternalCompressLevel=max | |
23 | SolidCompression=true |
|
23 | SolidCompression=true | |
24 | SetupIconFile=contrib\win32\mercurial.ico |
|
24 | SetupIconFile=contrib\win32\mercurial.ico | |
25 | AllowNoIcons=true |
|
25 | AllowNoIcons=true | |
26 | DefaultGroupName=Mercurial |
|
26 | DefaultGroupName=Mercurial | |
27 | PrivilegesRequired=none |
|
27 | PrivilegesRequired=none | |
28 |
|
28 | |||
29 | [Files] |
|
29 | [Files] | |
30 | Source: contrib\mercurial.el; DestDir: {app}/Contrib |
|
30 | Source: contrib\mercurial.el; DestDir: {app}/Contrib | |
31 | Source: contrib\vim\*.*; DestDir: {app}/Contrib/Vim |
|
31 | Source: contrib\vim\*.*; DestDir: {app}/Contrib/Vim | |
32 | Source: contrib\zsh_completion; DestDir: {app}/Contrib |
|
32 | Source: contrib\zsh_completion; DestDir: {app}/Contrib | |
|
33 | Source: contrib\hgk; DestDir: {app}/Contrib; DestName: hgk.tcl | |||
33 | Source: contrib\win32\ReadMe.html; DestDir: {app}; Flags: isreadme |
|
34 | Source: contrib\win32\ReadMe.html; DestDir: {app}; Flags: isreadme | |
34 | Source: contrib\mergetools.hgrc; DestDir: {tmp}; |
|
35 | Source: contrib\mergetools.hgrc; DestDir: {tmp}; | |
35 | Source: contrib\win32\mercurial.ini; DestDir: {app}; DestName: Mercurial.ini; Check: CheckFile; AfterInstall: ConcatenateFiles; |
|
36 | Source: contrib\win32\mercurial.ini; DestDir: {app}; DestName: Mercurial.ini; Check: CheckFile; AfterInstall: ConcatenateFiles; | |
36 | Source: contrib\win32\postinstall.txt; DestDir: {app}; DestName: ReleaseNotes.txt |
|
37 | Source: contrib\win32\postinstall.txt; DestDir: {app}; DestName: ReleaseNotes.txt | |
37 | Source: dist\hg.exe; DestDir: {app}; AfterInstall: Touch('{app}\hg.exe.local') |
|
38 | Source: dist\hg.exe; DestDir: {app}; AfterInstall: Touch('{app}\hg.exe.local') | |
38 | Source: dist\library.zip; DestDir: {app} |
|
39 | Source: dist\library.zip; DestDir: {app} | |
39 | Source: dist\mfc71.dll; DestDir: {app} |
|
40 | Source: dist\mfc71.dll; DestDir: {app} | |
40 | Source: dist\msvcr71.dll; DestDir: {app} |
|
41 | Source: dist\msvcr71.dll; DestDir: {app} | |
41 | Source: dist\w9xpopen.exe; DestDir: {app} |
|
42 | Source: dist\w9xpopen.exe; DestDir: {app} | |
42 | Source: dist\add_path.exe; DestDir: {app} |
|
43 | Source: dist\add_path.exe; DestDir: {app} | |
43 | Source: doc\*.html; DestDir: {app}\Docs |
|
44 | Source: doc\*.html; DestDir: {app}\Docs | |
44 | Source: templates\*.*; DestDir: {app}\Templates; Flags: recursesubdirs createallsubdirs |
|
45 | Source: templates\*.*; DestDir: {app}\Templates; Flags: recursesubdirs createallsubdirs | |
45 | Source: CONTRIBUTORS; DestDir: {app}; DestName: Contributors.txt |
|
46 | Source: CONTRIBUTORS; DestDir: {app}; DestName: Contributors.txt | |
46 | Source: COPYING; DestDir: {app}; DestName: Copying.txt |
|
47 | Source: COPYING; DestDir: {app}; DestName: Copying.txt | |
47 |
|
48 | |||
48 | [INI] |
|
49 | [INI] | |
49 | Filename: {app}\Mercurial.url; Section: InternetShortcut; Key: URL; String: http://www.selenic.com/mercurial/ |
|
50 | Filename: {app}\Mercurial.url; Section: InternetShortcut; Key: URL; String: http://www.selenic.com/mercurial/ | |
50 |
|
51 | |||
51 | [UninstallDelete] |
|
52 | [UninstallDelete] | |
52 | Type: files; Name: {app}\Mercurial.url |
|
53 | Type: files; Name: {app}\Mercurial.url | |
53 |
|
54 | |||
54 | [Icons] |
|
55 | [Icons] | |
55 | Name: {group}\Uninstall Mercurial; Filename: {uninstallexe} |
|
56 | Name: {group}\Uninstall Mercurial; Filename: {uninstallexe} | |
56 | Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.html |
|
57 | Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.html | |
57 | Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url |
|
58 | Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url | |
58 |
|
59 | |||
59 | [Run] |
|
60 | [Run] | |
60 | Filename: "{app}\add_path.exe"; Parameters: "{app}"; Flags: postinstall; Description: "Add the installation path to the search path" |
|
61 | Filename: "{app}\add_path.exe"; Parameters: "{app}"; Flags: postinstall; Description: "Add the installation path to the search path" | |
61 |
|
62 | |||
62 | [UninstallRun] |
|
63 | [UninstallRun] | |
63 | Filename: "{app}\add_path.exe"; Parameters: "/del {app}" |
|
64 | Filename: "{app}\add_path.exe"; Parameters: "/del {app}" | |
64 |
|
65 | |||
65 | [UninstallDelete] |
|
66 | [UninstallDelete] | |
66 | Type: files; Name: "{app}\hg.exe.local" |
|
67 | Type: files; Name: "{app}\hg.exe.local" | |
67 | [Code] |
|
68 | [Code] | |
68 | var |
|
69 | var | |
69 | WriteFile: Boolean; |
|
70 | WriteFile: Boolean; | |
70 | CheckDone: Boolean; |
|
71 | CheckDone: Boolean; | |
71 |
|
72 | |||
72 | function CheckFile(): Boolean; |
|
73 | function CheckFile(): Boolean; | |
73 | begin |
|
74 | begin | |
74 | if not CheckDone then begin |
|
75 | if not CheckDone then begin | |
75 | WriteFile := True; |
|
76 | WriteFile := True; | |
76 | if FileExists(ExpandConstant(CurrentFileName)) then begin |
|
77 | if FileExists(ExpandConstant(CurrentFileName)) then begin | |
77 | WriteFile := MsgBox('' + ExpandConstant(CurrentFileName) + '' #13#13 'The file already exists.' #13#13 'Would you like Setup to overwrite it?', mbConfirmation, MB_YESNO) = idYes; |
|
78 | WriteFile := MsgBox('' + ExpandConstant(CurrentFileName) + '' #13#13 'The file already exists.' #13#13 'Would you like Setup to overwrite it?', mbConfirmation, MB_YESNO) = idYes; | |
78 | end; |
|
79 | end; | |
79 | CheckDone := True; |
|
80 | CheckDone := True; | |
80 | end; |
|
81 | end; | |
81 | Result := WriteFile; |
|
82 | Result := WriteFile; | |
82 | end; |
|
83 | end; | |
83 |
|
84 | |||
84 | procedure ConcatenateFiles(); |
|
85 | procedure ConcatenateFiles(); | |
85 | var |
|
86 | var | |
86 | MergeConfigs: TArrayOfString; |
|
87 | MergeConfigs: TArrayOfString; | |
87 | begin |
|
88 | begin | |
88 | if LoadStringsFromFile(ExpandConstant('{tmp}\mergetools.hgrc'),MergeConfigs) then begin |
|
89 | if LoadStringsFromFile(ExpandConstant('{tmp}\mergetools.hgrc'),MergeConfigs) then begin | |
89 | SaveStringsToFile(ExpandConstant(CurrentFileName),MergeConfigs,True); |
|
90 | SaveStringsToFile(ExpandConstant(CurrentFileName),MergeConfigs,True); | |
90 | end; |
|
91 | end; | |
91 | end; |
|
92 | end; | |
92 |
|
93 | |||
93 | procedure Touch(fn: String); |
|
94 | procedure Touch(fn: String); | |
94 | begin |
|
95 | begin | |
95 | SaveStringToFile(ExpandConstant(fn), '', False); |
|
96 | SaveStringToFile(ExpandConstant(fn), '', False); | |
96 | end; |
|
97 | end; |
General Comments 0
You need to be logged in to leave comments.
Login now