|
|
@@ -40,6 +40,10 @@ revision specified in the manifest.
|
|
|
p.add_option('--all',
|
|
|
dest='all', action='store_true',
|
|
|
help='begin branch in all projects')
|
|
|
+ p.add_option('-r', '--rev', '--revision', dest='revision',
|
|
|
+ help='point branch at this revision instead of upstream')
|
|
|
+ p.add_option('--head', dest='revision', action='store_const', const='HEAD',
|
|
|
+ help='abbreviation for --rev HEAD')
|
|
|
|
|
|
def ValidateOptions(self, opt, args):
|
|
|
if not args:
|
|
|
@@ -108,7 +112,8 @@ revision specified in the manifest.
|
|
|
else:
|
|
|
branch_merge = self.manifest.default.revisionExpr
|
|
|
|
|
|
- if not project.StartBranch(nb, branch_merge=branch_merge):
|
|
|
+ if not project.StartBranch(
|
|
|
+ nb, branch_merge=branch_merge, revision=opt.revision):
|
|
|
err.append(project)
|
|
|
pm.end()
|
|
|
|