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
```

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java例外。Lang.Stringindexoutofboundsexception索引超出范围(0)   java Spring引导Freemarker从2.2.0升级失败   重构Java反模式名称?包含对象的对象包含。。。等   用java处理JDBC可能出现的死锁的最佳方法   java无法访问主线程上的数据库,因为它可能会在很长一段时间内锁定UI   java如何将固定大小的画布包装在边框窗格中的滚动窗格居中?   java解析xsd文件后得到空结果   在html页面中表示XML文件的java   socketjava对象流   sql Java越界异常数据库   JavaJBoss7.1.1不会在Mavericks上启动   Twincat ADS事件驱动读取在一段时间后停止工作(Java)   java MyBatis使用生成的ID插入所有   Mojave上缺少MacOS Java控制面板   JavaGuice:如果多次注入相同的依赖项,是否注入了该依赖项的相同实例?