使用google gerrit做为版本控制,有时候我们发布版本后,想保存对应的manifest中,每个仓储的commit号,用于追溯当时发布产品的问题,google 的repo命令已经为我们封装好了:

repo manifest -r -o snapshot.xml

生成的xml 结果类似下面这样:

  <project name="platform/developers/build" path="developers/build" remote="aosp" revision="f49bfc3d06d0cc0eac0ce1a5620ef5bc8e38f064" upstream="refs/tags/android-4.4.2_r2"/>
  <project name="platform/developers/demos" path="developers/demos" remote="aosp" revision="a7254542b06878f0c3b34a6c3d91b9e7d3990f74" upstream="refs/tags/android-4.4.2_r2"/>
  <project name="platform/developers/docs" path="developers/docs" remote="aosp" revision="c0b835ddd9acc27176dc9a0f7d1aa2faf5d51806" upstream="refs/tags/android-4.4.2_r2"/>
  <project name="platform/developers/samples/android" path="developers/samples/android" remote="aosp" revision="8eadf92f54aa68fb937182b712aebdef3b3bd9ec" upstream="refs/tags/android-4.4.2_r2"/>
  <project name="platform/docs/source.android.com" path="docs/source.android.com" remote="aosp" revision="48fb042cf314333926a5146ee7acc004a9e953c8" upstream="refs/tags/android-4.4.2_r2"/>
  <project name="platform/external/ceres-solver" path="external/ceres-solver" remote="aosp" revision="399f7d09e0c45af54b77b4ab9508d6f23759b927" upstream="refs/tags/android-4.4.2_r2"/>
  <project name="platform/external/chromium-libpac" path="external/chromium-libpac" remote="aosp" revision="f34af54bcab917eb5943d1918f32d26364f45578" upstream="refs/tags/android-4.4.2_r2"/>

推荐一个很棒的第三方精简的 Laravel console

个人喜好经常写些命令行工具,laravel 很方便,但脚手架工程就 45M左右,使用 composer install --no-dev 也要24M左右,很笨重。 也尝试过 symfony 的 compos...

阅读全文

有关 PHP 和 js 浮点运算的坑

javascript 0.1 + 0.2 为啥不等于 0.3 ? (正确结果:0.30000000000000004) 0.8 * 7 为啥不等于 5.6 ? (正确结果:5.6000000000000005) PHP var_dump(intv...

阅读全文

彻底搞懂 PHP 变量结构体,多数文章观点不准确

PHP5 中的 zval // 1. zval typedef struct _zval_struct { zvalue_value value; zend_uint refcount__gc; zend_uchar type; zend_uchar is...

阅读全文

欢迎留言