|
|
@@ -38,7 +38,8 @@ The -r option can be used to generate a manifest file with project
|
|
|
revisions set to the current commit hash. These are known as
|
|
|
"revision locked manifests", as they don't follow a particular branch.
|
|
|
In this case, the 'upstream' attribute is set to the ref we were on
|
|
|
-when the manifest was generated.
|
|
|
+when the manifest was generated. The 'dest-branch' attribute is set
|
|
|
+to indicate the remote ref to push changes to via 'repo upload'.
|
|
|
"""
|
|
|
|
|
|
@property
|
|
|
@@ -62,6 +63,11 @@ when the manifest was generated.
|
|
|
help='If in -r mode, do not write the upstream field. '
|
|
|
'Only of use if the branch names for a sha1 manifest are '
|
|
|
'sensitive.')
|
|
|
+ p.add_option('--suppress-dest-branch', dest='peg_rev_dest_branch',
|
|
|
+ default=True, action='store_false',
|
|
|
+ help='If in -r mode, do not write the dest-branch field. '
|
|
|
+ 'Only of use if the branch names for a sha1 manifest are '
|
|
|
+ 'sensitive.')
|
|
|
p.add_option('-o', '--output-file',
|
|
|
dest='output_file',
|
|
|
default='-',
|
|
|
@@ -79,7 +85,8 @@ when the manifest was generated.
|
|
|
fd = open(opt.output_file, 'w')
|
|
|
self.manifest.Save(fd,
|
|
|
peg_rev=opt.peg_rev,
|
|
|
- peg_rev_upstream=opt.peg_rev_upstream)
|
|
|
+ peg_rev_upstream=opt.peg_rev_upstream,
|
|
|
+ peg_rev_dest_branch=opt.peg_rev_dest_branch)
|
|
|
fd.close()
|
|
|
if opt.output_file != '-':
|
|
|
print('Saved manifest to %s' % opt.output_file, file=sys.stderr)
|