~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use get/set_name for a stack's name.
[stgit]
/
stgit
/
commands
/
branch.py
diff --git
a/stgit/commands/branch.py
b/stgit/commands/branch.py
index
07bdca8
..
c22e143
100644
(file)
--- a/
stgit/commands/branch.py
+++ b/
stgit/commands/branch.py
@@
-68,7
+68,7
@@
options = [make_option('-c', '--create',
def __is_current_branch(branch_name):
def __is_current_branch(branch_name):
- return crt_series.get_
branch
() == branch_name
+ return crt_series.get_
name
() == branch_name
def __print_branch(branch_name, length):
initialized = ' '
def __print_branch(branch_name, length):
initialized = ' '
@@
-168,7
+168,7
@@
def func(parser, options, args):
elif options.clone:
if len(args) == 0:
elif options.clone:
if len(args) == 0:
- clone = crt_series.get_
branch
() + \
+ clone = crt_series.get_
name
() + \
time.strftime('-%C%y%m%d-%H%M%S')
elif len(args) == 1:
clone = args[0]
time.strftime('-%C%y%m%d-%H%M%S')
elif len(args) == 1:
clone = args[0]
@@
-215,7
+215,7
@@
def func(parser, options, args):
elif options.protect:
if len(args) == 0:
elif options.protect:
if len(args) == 0:
- branch_name = crt_series.get_
branch
()
+ branch_name = crt_series.get_
name
()
elif len(args) == 1:
branch_name = args[0]
else:
elif len(args) == 1:
branch_name = args[0]
else:
@@
-249,7
+249,7
@@
def func(parser, options, args):
elif options.unprotect:
if len(args) == 0:
elif options.unprotect:
if len(args) == 0:
- branch_name = crt_series.get_
branch
()
+ branch_name = crt_series.get_
name
()
elif len(args) == 1:
branch_name = args[0]
else:
elif len(args) == 1:
branch_name = args[0]
else:
@@
-269,7
+269,7
@@
def func(parser, options, args):
elif options.description is not None:
if len(args) == 0:
elif options.description is not None:
if len(args) == 0:
- branch_name = crt_series.get_
branch
()
+ branch_name = crt_series.get_
name
()
elif len(args) == 1:
branch_name = args[0]
else:
elif len(args) == 1:
branch_name = args[0]
else:
@@
-303,4
+303,4
@@
def func(parser, options, args):
if len(args) != 0:
parser.error('incorrect number of arguments')
if len(args) != 0:
parser.error('incorrect number of arguments')
- print crt_series.get_
branch
()
+ print crt_series.get_
name
()