SCM repo: add reset-first option
Change-Id: Iafb79bb98ac3863f996027caa9136725cc59e973 Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
This commit is contained in:
parent
e5d291b79b
commit
993e82a409
|
@ -579,6 +579,9 @@ def repo(parser, xml_parent, data):
|
||||||
recent commit (default 0)
|
recent commit (default 0)
|
||||||
:arg bool current-branch: Fetch only the current branch from the server
|
:arg bool current-branch: Fetch only the current branch from the server
|
||||||
(default true)
|
(default true)
|
||||||
|
:arg bool reset-first: Remove any commits that are not on the repositories
|
||||||
|
by running the following command before anything else (default false):
|
||||||
|
``repo forall -c "git reset --hard"``
|
||||||
:arg bool quiet: Make repo more quiet
|
:arg bool quiet: Make repo more quiet
|
||||||
(default true)
|
(default true)
|
||||||
:arg bool force-sync: Continue sync even if a project fails to sync
|
:arg bool force-sync: Continue sync even if a project fails to sync
|
||||||
|
@ -611,6 +614,7 @@ def repo(parser, xml_parent, data):
|
||||||
("jobs", 'jobs', 0),
|
("jobs", 'jobs', 0),
|
||||||
("depth", 'depth', 0),
|
("depth", 'depth', 0),
|
||||||
("current-branch", 'currentBranch', True),
|
("current-branch", 'currentBranch', True),
|
||||||
|
("reset-first", 'resetFirst', False),
|
||||||
("quiet", 'quiet', True),
|
("quiet", 'quiet', True),
|
||||||
("force-sync", 'forceSync', False),
|
("force-sync", 'forceSync', False),
|
||||||
("local-manifest", 'localManifest', ''),
|
("local-manifest", 'localManifest', ''),
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
<jobs>3</jobs>
|
<jobs>3</jobs>
|
||||||
<depth>2</depth>
|
<depth>2</depth>
|
||||||
<currentBranch>false</currentBranch>
|
<currentBranch>false</currentBranch>
|
||||||
|
<resetFirst>false</resetFirst>
|
||||||
<quiet>false</quiet>
|
<quiet>false</quiet>
|
||||||
<forceSync>false</forceSync>
|
<forceSync>false</forceSync>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
<jobs>3</jobs>
|
<jobs>3</jobs>
|
||||||
<depth>0</depth>
|
<depth>0</depth>
|
||||||
<currentBranch>false</currentBranch>
|
<currentBranch>false</currentBranch>
|
||||||
|
<resetFirst>true</resetFirst>
|
||||||
<quiet>false</quiet>
|
<quiet>false</quiet>
|
||||||
<forceSync>true</forceSync>
|
<forceSync>true</forceSync>
|
||||||
<localManifest><?xml version="1.0" encoding="UTF-8"?>
|
<localManifest><?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
|
@ -9,6 +9,7 @@ scm:
|
||||||
mirror-dir: ~/git/project/
|
mirror-dir: ~/git/project/
|
||||||
jobs: 3
|
jobs: 3
|
||||||
current-branch: false
|
current-branch: false
|
||||||
|
reset-first: true
|
||||||
quiet: false
|
quiet: false
|
||||||
force-sync: true
|
force-sync: true
|
||||||
local-manifest: |
|
local-manifest: |
|
||||||
|
|
Loading…
Reference in New Issue