Fossil SCM

fossil-scm / www / fossil-from-msvc.wiki
Source Blame History 51 lines
33c651c… drh 1 <h1>Integrating Fossil in the Microsoft Express 2010 IDE</h1>
33c651c… drh 2
33c651c… drh 3 <i>Contributed by Gilles Ganault on 2013-05-24.</i>
33c651c… drh 4
33c651c… drh 5 The Express version of Visual Studio doesn't support add-in's and plug-in's,
33c651c… drh 6 but it's not an issue since it's still possible to use Fossil through the
33c651c… drh 7 External Tools menu and Fossil is a CLI application anyway:
33c651c… drh 8
33c651c… drh 9 <ol type="1">
33c651c… drh 10 <li>Tools &gt; Settings &gt; Expert Settings</li>
33c651c… drh 11 <li>Tools &gt; External Tools, where the items in this list map
33c651c… drh 12 to "External Tool X" that we'll add to our own Fossil
33c651c… drh 13 menu later: </li>
33c651c… drh 14 <ol type="1">
33c651c… drh 15 <li>Rename the default "&#91;New Tool 1&#93;" to eg.
f47b705… jan.nijtmans 16 "Commit"&nbsp;&nbsp;&nbsp;2.
33c651c… drh 17 </li>
33c651c… drh 18 <li>Change Command to where Fossil is located eg.
33c651c… drh 19 "c:\fossil.exe"</li>
33c651c… drh 20 <li>Change Arguments to the required command, eg.
f47b705… jan.nijtmans 21 "commit -m".
33c651c… drh 22 The user will be prompted to type the comment that Commit expects</li>
f47b705… jan.nijtmans 23 <li>Set "Initial Directory" to point it to the work directory
33c651c… drh 24 where the source files are currently checked out
33c651c… drh 25 by Fossil (eg. c:\Workspace). It's also possible to use system
33c651c… drh 26 variables such as "$(ProjectDir)" instead of hard-coding the path</li>
33c651c… drh 27 <li>Check "Prompt for arguments", since Commit
33c651c… drh 28 requires typing a comment. Useless for commands like Changes
33c651c… drh 29 that don't require arguments</li>
f47b705… jan.nijtmans 30 <li>Uncheck "Close on Exit", so we can see what Fossil says
f47b705… jan.nijtmans 31 before closing the DOS box. Note that "Use Output Window"
f47b705… jan.nijtmans 32 will display the output in a child window within the IDE instead of
33c651c… drh 33 opening a DOS box</li>
33c651c… drh 34 <li>Click on OK</li>
33c651c… drh 35 </ol>
33c651c… drh 36 <li>Tools &gt; Customize &gt; Commands</li>
33c651c… drh 37 <ol type="1">
f47b705… jan.nijtmans 38 <li>With "Menu bar = Menu Bar" selected, click on "Add
33c651c… drh 39 New Menu". A new "Fossil" menu is displayed in the
33c651c… drh 40 IDE's menu bar</li>
33c651c… drh 41 <li>Click on "Modify Selection" to rename it
33c651c… drh 42 "Fossil", and...</li>
33c651c… drh 43 <li>Use the "Move Down" button to move it lower in
33c651c… drh 44 the list</li>
33c651c… drh 45 </ol>
f47b705… jan.nijtmans 46 <li>Still in Customize dialog: In the "Menu bar" combo, select
f47b705… jan.nijtmans 47 the new Fossil menu you just created, and Click on "Add Command...":
f47b705… jan.nijtmans 48 From Categories, select Tools, and select "External Command 1".
f47b705… jan.nijtmans 49 Click on Close. It's unfortunate that the IDE doesn't say which command
33c651c… drh 50 maps to "External Command X".</li>
33c651c… drh 51 </ol>

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button