Fossil add for external directory

我是研究僧i 提交于 2019-12-23 18:42:45

问题


I have read some of the questions and answers here, but it none match my situation exactly.

I want to keep all my fossil repos in a single place.

so I have

c:\Fossil_Repos\ with a repo for WebPages_Repo and another for Dev_repo etc etc etc

I would like to keep my original web pages and development pages in separated directories that are oustide of the Fossil_Repos directory, here is my structure

c:\Fossile_Repos\
c:\DevEnvironment\
c:\WebPageDevelopment\

This structure seems not to be unreasonable.

If from within my c:\Fossile_Repos\ I run the commands

fossil open Dev_Repo
fossil add c:\DevEnvironment

Then I see a listing of all the directories and files underneath c:\DevEnvironment, however I then go on to add

fossil commit -m "first deposit"

And get an error message on the first file saying the file doesn't exist. Note that the file path is correct (however it report the direcory as C:/DevEnvironment/firstFile.xml using the unix method of file separators)

Anyone got any thoughts on if I can do this or not?

thanks in advance

David


回答1:


You can keep the repos wherever you like. However, you must issue the commands to fossil from inside the checkout.

So, in your example:

cd c:\DevEnvironment
fossil open c:\Fossile_Repos\repo_file_name
.. edit the files ...
fossil commit -m "first deposit"


来源:https://stackoverflow.com/questions/11051999/fossil-add-for-external-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!