~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generate unique patch names
[stgit]
/
stgit
/
commands
/
uncommit.py
diff --git
a/stgit/commands/uncommit.py
b/stgit/commands/uncommit.py
index
45a2087
..
9798f19
100644
(file)
--- a/
stgit/commands/uncommit.py
+++ b/
stgit/commands/uncommit.py
@@
-97,9
+97,8
@@
def func(parser, options, args):
if patchnames:
patchname = patchnames[n]
else:
if patchnames:
patchname = patchnames[n]
else:
- patchname = make_patch_name(commit.get_log())
- if not patchname:
- raise CmdException, 'Unknown patch name for commit %s' % commit_id
+ patchname = make_patch_name(commit.get_log(),
+ crt_series.patch_exists)
crt_series.new_patch(patchname,
can_edit = False, before_existing = True,
crt_series.new_patch(patchname,
can_edit = False, before_existing = True,