怎样从 Bazaar 中的多文件项目中分支出单个文件?
例如:
lp:ubuntu-popey-app 有两个文件;foo.h
我bar.h
会做这样的事情:
bzr branch lp:ubuntu-popey-app --file "/src/foo.h"
答案1
您可以使用bzr cat
,例如:
$ bzr cat lp:~ubuntu-clock-dev/ubuntu-clock-app/utopic-3.0/app/ubuntu-clock-app.qml > ubuntu-clock-app.qml
获取二进制文件:
$ bzr cat lp:~ubuntu-art-pkg/ubuntu-themes/trunk/distributor-logo.png > distributor-logo.png
要获取文件夹的内容,您可以合并bzr ls -R
并bzr cat
复制文件夹
$ bzr ls -R lp:~ubuntu-clock-dev/ubuntu-clock-app/utopic-3.0/backend/
CMakeLists.txt
modules/
modules/Alarm/
modules/Alarm/Settings/
modules/Alarm/Settings/alarmsettings.cpp
modules/Alarm/Settings/alarmsettings.h
modules/Alarm/Settings/backend.cpp
modules/Alarm/Settings/backend.h
modules/Alarm/Settings/qmldir
modules/DateTime/
modules/DateTime/backend.cpp
modules/DateTime/backend.h
modules/DateTime/datetime.cpp
modules/DateTime/datetime.h
modules/DateTime/qmldir
modules/GeoLocation/
modules/GeoLocation/backend.cpp
modules/GeoLocation/backend.h
modules/GeoLocation/geolocation.cpp
modules/GeoLocation/geolocation.h
modules/GeoLocation/qmldir
modules/Timezone/
modules/Timezone/backend.cpp
modules/Timezone/backend.h
modules/Timezone/generictimezonemodel.cpp
modules/Timezone/generictimezonemodel.h
modules/Timezone/jsontimezonemodel.cpp
modules/Timezone/jsontimezonemodel.h
modules/Timezone/qmldir
modules/Timezone/timezonemodel.cpp
modules/Timezone/timezonemodel.h
modules/Timezone/xmltimezonemodel.cpp
modules/Timezone/xmltimezonemodel.h
tests/
tests/unit/