Dolly管理多个Git和SVN回购
Doll的Python项目详细描述
#小车[构建状态](https://travis-ci.org/xp-forge/dolly.svg?branch=master)(https://travis ci.org/xp forge/dolly)
````
| |
_-(_)- | |,---.| | , .
`(___) | || || | | |
// \\ `--' `---'`---'`---'`---|
`---'
```
Dolly manages multiple Git and SVN repos.
## Usage
```
dolly [-h] [-v] [-r ROOTDIR] [-c CONFIG] command [project]
```
Dolly can be 在命令行中使用“dolly”或“dly”运行。
` update`to pull and clone
*`install` to clone repositories that no t yout on disk
*`list dirs` to print all local repo path(在脚本中有用)
该操作将为指定项目树中的每个存储库和所有包含的项目运行。
如果没有给定项目参数,dolly将查找默认值`项目。
config文件可以用`-c`参数指定。
如果没有指定文件,它会在` ~/.dolly.yml`和`/etc/dolly/dolly/dolly.yml`
(按顺序顺序)中查找。
ᙧᙧᙧᙧ/>例如
``````>```
>游戏:
描述: “echo$(日期)>/tmp/games“
树:
games/html/js:
-'2048':https://github.com/gabrielecirulli/2048.git
设计要点:
描述:“github特色”
树:
设计/html/js:
-flint:https://github.com/pengwynn/flint
-规范化:https://github.com/necolas/normalize.css
html:
描述:“stuff”
树:
设计/基本:
-moderinzr:https://github.com/modernizr/modernizr.git
description:“tl;dw”
包括:
-html
-games
dw“
包括:
-设计要点
-gameshtml
树:
foo/bar:
-testproj:git@git.1和1.org:lbentrup/automation tools.git
bar/foo:
-clumsy bird:https://github.com/ellisonleao/clumsy bird.git
```
属性“tag”和“branch”只受git支持。
```
…
tree;
-name:“modernizer”
repository:https://github.com/modernizer/modernizer.git
tag:v2.8.1
post\u update:echo done
-name:“modernizer back”
repository:https://github.com/modernizer/modernizer.git
branch:back
后置更新:echo done
…
```
在示例中,repo“2048”将放在`$root_dir/games/html/js`.
默认的项目还包括“设计要点”和“html”项目。因此,当处理“default”项目时,将处理此配置文件中的所有repo。
还要安装以下依赖项:
*argparse
*pyyaml
要从这个git repo安装:
````
git clone https://github.com/xp forge/dolly.git
cd dolly
sudo python setup.py install
```
````
| |
_-(_)- | |,---.| | , .
`(___) | || || | | |
// \\ `--' `---'`---'`---'`---|
`---'
```
Dolly manages multiple Git and SVN repos.
## Usage
```
dolly [-h] [-v] [-r ROOTDIR] [-c CONFIG] command [project]
```
Dolly can be 在命令行中使用“dolly”或“dly”运行。
` update`to pull and clone
*`install` to clone repositories that no t yout on disk
*`list dirs` to print all local repo path(在脚本中有用)
该操作将为指定项目树中的每个存储库和所有包含的项目运行。
如果没有给定项目参数,dolly将查找默认值`项目。
config文件可以用`-c`参数指定。
如果没有指定文件,它会在` ~/.dolly.yml`和`/etc/dolly/dolly/dolly.yml`
(按顺序顺序)中查找。
ᙧᙧᙧᙧ/>例如
``````>```
>游戏:
描述:
树:
games/html/js:
-'2048':https://github.com/gabrielecirulli/2048.git
设计要点:
描述:“github特色”
树:
设计/html/js:
-flint:https://github.com/pengwynn/flint
-规范化:https://github.com/necolas/normalize.css
html:
描述:“stuff”
树:
设计/基本:
-moderinzr:https://github.com/modernizr/modernizr.git
包括:
-html
-games
dw“
包括:
-设计要点
-gameshtml
树:
foo/bar:
-testproj:git@git.1和1.org:lbentrup/automation tools.git
bar/foo:
-clumsy bird:https://github.com/ellisonleao/clumsy bird.git
```
属性“tag”和“branch”只受git支持。
```
…
tree;
-name:“modernizer”
repository:https://github.com/modernizer/modernizer.git
tag:v2.8.1
post\u update:echo done
-name:“modernizer back”
repository:https://github.com/modernizer/modernizer.git
branch:back
后置更新:echo done
…
```
在示例中,repo“2048”将放在`$root_dir/games/html/js`.
默认的项目还包括“设计要点”和“html”项目。因此,当处理“default”项目时,将处理此配置文件中的所有repo。
还要安装以下依赖项:
*argparse
*pyyaml
要从这个git repo安装:
````
git clone https://github.com/xp forge/dolly.git
cd dolly
sudo python setup.py install
```