用于管理与外部git存储库的双向子树同步的git瓷器
sapling的Python项目详细描述
==安装:
要安装python库,可以执行以下操作之一:
1.)使用easy_install从pypi注册表安装:http://pypi.python.org/pypi/sapling
$sudo easy_install sapling
2.)使用pip从pypi安装从根目录开始:
$sudo python setup.py install
然后要将瓷器链接到git core,请执行:
$sudo sapling.py--install
get help
$git sap-h
==configuration
sapling(git sap)在git存储库的根目录中配置了一个.saplings文件。下面是
一个示例。scala项目的树苗配置,其中包含公共组件和使用它的hack组件
:
common={
当使用git sap时,这些路径将形成从中分离并合并到存储库中的树苗--split和git sap--分别合并
“路径”:[
“项目”、
“src/main/scala/com/twitter/common”、
“src/main/resources/com/twitter/common”、
“src/test/scala/com/twitter/common”、
]
hack={
“name”:“hack”,
“paths”:[
“project”,
“src/main/scala/com/twitter/hack”,
]
}
列表中的每个拆分都必须
一个dict,上面显示/描述了键。
splits=[
common,
hack
]
==使用
您可以查看当前的拆分(假设上面有.saplings)
使用:
$git sap
common
hack
使用标准的git工具:
$git pull git@github.com:jsirois/common.git master
允许更多受控导入的另一种方法是使用以下组合将
拆分到主线上的修补程序应用于:
1.)(拆分分支)$git格式修补程序…\
--如果在上游,则忽略..[远程拆分跟踪分支]>;/tmp/mbox
2.)(主控)$git am-k…<;/tmp/mbox
==开发:
要运行所有测试,您可以使用类似这样的代码:
$pythonpath=$pythonpath:。py.test test/*.py-v
==已知问题:
尽管针对固定分支/拆分配置的拆分始终会产生相同的拆分分支(相同的SHA),但它将始终在整个源分支上重新运行,而对于大型分支,这可能需要很长时间。
==路线图:
>0.1.x
+支持差异拆分
+内置支持修补合并策略
要安装python库,可以执行以下操作之一:
1.)使用easy_install从pypi注册表安装:http://pypi.python.org/pypi/sapling
$sudo easy_install sapling
2.)使用pip从pypi安装从根目录开始:
$sudo python setup.py install
然后要将瓷器链接到git core,请执行:
$sudo sapling.py--install
get help
$git sap-h
==configuration
sapling(git sap)在git存储库的根目录中配置了一个.saplings文件。下面是
一个示例。scala项目的树苗配置,其中包含公共组件和使用它的hack组件
:
common={
当使用git sap时,这些路径将形成从中分离并合并到存储库中的树苗--split和git sap--分别合并
“路径”:[
“项目”、
“src/main/scala/com/twitter/common”、
“src/main/resources/com/twitter/common”、
“src/test/scala/com/twitter/common”、
]
hack={
“name”:“hack”,
“paths”:[
“project”,
“src/main/scala/com/twitter/hack”,
]
}
列表中的每个拆分都必须
一个dict,上面显示/描述了键。
splits=[
common,
hack
]
==使用
您可以查看当前的拆分(假设上面有.saplings)
使用:
$git sap
common
hack
使用标准的git工具:
$git pull git@github.com:jsirois/common.git master
允许更多受控导入的另一种方法是使用以下组合将
拆分到主线上的修补程序应用于:
1.)(拆分分支)$git格式修补程序…\
--如果在上游,则忽略..[远程拆分跟踪分支]>;/tmp/mbox
2.)(主控)$git am-k…<;/tmp/mbox
==开发:
要运行所有测试,您可以使用类似这样的代码:
$pythonpath=$pythonpath:。py.test test/*.py-v
==已知问题:
尽管针对固定分支/拆分配置的拆分始终会产生相同的拆分分支(相同的SHA),但它将始终在整个源分支上重新运行,而对于大型分支,这可能需要很长时间。
==路线图:
>0.1.x
+支持差异拆分
+内置支持修补合并策略