Overview
Artifact ID: | 7540fb62d2f094b6afa8d1f259e2022c2fc3224d |
---|---|
Ticket: | e0352240adeafd4d4d8d297c2141dacf076507b7
Support for importing vendor source |
User & Date: | wolfgang 2010-10-13 19:44:52 |
Changes
- comment changed to:
When tracking third party software in Fossil, I want to have better support for checking external source in in full. Handling it manually is tiresome: <pre> fossil open ~/repo/project vendor --keep fossil add $(fossil extras --dotfiles) fossil rm $(fossil changes | awk '$1 == "MISSING" {print $2}' fossil ci -m "Import vendor version 6.6.6" </pre> The shell magic is error-prone, it works badly with files containing white space in names, it is good luck I haven't run into problems yet. I propose to create some "import" command that synchronizes inventory with file system. <hr /><i>anonymous added on 2010-10-13 13:26:02:</i><br /> I support this. The import command should also add a non-propagating tag like CVS does to make it easier to keep that of what version was imported. <hr /><i>wolfgang added on 2010-10-13 19:44:04:</i><br /> I have added an experimental IMPORT command to my branch wolfgangHelpCmd (checkin [b37d5f256e]). Maybe you take a look at it and/or test it in your environment. The command help is: <pre> Usage: fossil.exe import If used in a checkout, the current checkout file tree is synchronized with the repository: * all files, existing in the file tree but not in the repository (files displayed using the "extra" command) are added to the repository - see also "add" * all files, existing in the repository, not existing in the file tree (files displayed as MISSING using the "status" command) are removed from the repository - see also "rm" The command does not "commit"! This command can be used to track third party software. </pre> best regards Wolfgang