~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update the TODO file
[stgit]
/
stgit
/
commands
/
export.py
diff --git
a/stgit/commands/export.py
b/stgit/commands/export.py
index
1fd0dad
..
db7b560
100644
(file)
--- a/
stgit/commands/export.py
+++ b/
stgit/commands/export.py
@@
-65,7
+65,7
@@
def func(parser, options, args):
if len(boundaries) == 1:
start = boundaries[0]
stop = boundaries[0]
if len(boundaries) == 1:
start = boundaries[0]
stop = boundaries[0]
- if len(boundaries) == 2:
+
el
if len(boundaries) == 2:
if boundaries[0] == '':
start = applied[0]
else:
if boundaries[0] == '':
start = applied[0]
else:
@@
-75,19
+75,19
@@
def func(parser, options, args):
else:
stop = boundaries[1]
else:
else:
stop = boundaries[1]
else:
- raise
Main
Exception, 'incorrect parameters to "--range"'
+ raise
Cmd
Exception, 'incorrect parameters to "--range"'
if start in applied:
start_idx = applied.index(start)
else:
if start in applied:
start_idx = applied.index(start)
else:
- raise
Main
Exception, 'Patch "%s" not applied' % start
+ raise
Cmd
Exception, 'Patch "%s" not applied' % start
if stop in applied:
stop_idx = applied.index(stop) + 1
else:
if stop in applied:
stop_idx = applied.index(stop) + 1
else:
- raise
Main
Exception, 'Patch "%s" not applied' % stop
+ raise
Cmd
Exception, 'Patch "%s" not applied' % stop
if start_idx >= stop_idx:
if start_idx >= stop_idx:
- raise
Main
Exception, 'Incorrect patch range order'
+ raise
Cmd
Exception, 'Incorrect patch range order'
else:
start_idx = 0
stop_idx = len(applied)
else:
start_idx = 0
stop_idx = len(applied)
@@
-137,10
+137,10
@@
def func(parser, options, args):
try:
descr = tmpl % tmpl_dict
except KeyError, err:
try:
descr = tmpl % tmpl_dict
except KeyError, err:
- raise
Main
Exception, 'Unknown patch template variable: %s' \
+ raise
Cmd
Exception, 'Unknown patch template variable: %s' \
% err
except TypeError:
% err
except TypeError:
- raise
Main
Exception, 'Only "%(name)s" variables are ' \
+ raise
Cmd
Exception, 'Only "%(name)s" variables are ' \
'supported in the patch template'
f = open(pfile, 'w+')
f.write(descr)
'supported in the patch template'
f = open(pfile, 'w+')
f.write(descr)