diff options
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -660,6 +660,7 @@ class Project(object): | |||
| 660 | groups=None, | 660 | groups=None, |
| 661 | sync_c=False, | 661 | sync_c=False, |
| 662 | sync_s=False, | 662 | sync_s=False, |
| 663 | sync_tags=True, | ||
| 663 | clone_depth=None, | 664 | clone_depth=None, |
| 664 | upstream=None, | 665 | upstream=None, |
| 665 | parent=None, | 666 | parent=None, |
| @@ -683,6 +684,7 @@ class Project(object): | |||
| 683 | groups: The `groups` attribute of manifest.xml's project element. | 684 | groups: The `groups` attribute of manifest.xml's project element. |
| 684 | sync_c: The `sync-c` attribute of manifest.xml's project element. | 685 | sync_c: The `sync-c` attribute of manifest.xml's project element. |
| 685 | sync_s: The `sync-s` attribute of manifest.xml's project element. | 686 | sync_s: The `sync-s` attribute of manifest.xml's project element. |
| 687 | sync_tags: The `sync-tags` attribute of manifest.xml's project element. | ||
| 686 | upstream: The `upstream` attribute of manifest.xml's project element. | 688 | upstream: The `upstream` attribute of manifest.xml's project element. |
| 687 | parent: The parent Project object. | 689 | parent: The parent Project object. |
| 688 | is_derived: False if the project was explicitly defined in the manifest; | 690 | is_derived: False if the project was explicitly defined in the manifest; |
| @@ -715,6 +717,7 @@ class Project(object): | |||
| 715 | self.groups = groups | 717 | self.groups = groups |
| 716 | self.sync_c = sync_c | 718 | self.sync_c = sync_c |
| 717 | self.sync_s = sync_s | 719 | self.sync_s = sync_s |
| 720 | self.sync_tags = sync_tags | ||
| 718 | self.clone_depth = clone_depth | 721 | self.clone_depth = clone_depth |
| 719 | self.upstream = upstream | 722 | self.upstream = upstream |
| 720 | self.parent = parent | 723 | self.parent = parent |
| @@ -1289,6 +1292,10 @@ class Project(object): | |||
| 1289 | elif self.manifest.default.sync_c: | 1292 | elif self.manifest.default.sync_c: |
| 1290 | current_branch_only = True | 1293 | current_branch_only = True |
| 1291 | 1294 | ||
| 1295 | if not no_tags: | ||
| 1296 | if not self.sync_tags: | ||
| 1297 | no_tags = True | ||
| 1298 | |||
| 1292 | if self.clone_depth: | 1299 | if self.clone_depth: |
| 1293 | depth = self.clone_depth | 1300 | depth = self.clone_depth |
| 1294 | else: | 1301 | else: |
| @@ -1900,6 +1907,7 @@ class Project(object): | |||
| 1900 | groups=self.groups, | 1907 | groups=self.groups, |
| 1901 | sync_c=self.sync_c, | 1908 | sync_c=self.sync_c, |
| 1902 | sync_s=self.sync_s, | 1909 | sync_s=self.sync_s, |
| 1910 | sync_tags=self.sync_tags, | ||
| 1903 | parent=self, | 1911 | parent=self, |
| 1904 | is_derived=True) | 1912 | is_derived=True) |
| 1905 | result.append(subproject) | 1913 | result.append(subproject) |
