chiark / gitweb /
Clear up the semantics of Series.new_patch
authorDavid Kågedal <davidk@lysator.liu.se>
Fri, 14 Sep 2007 22:31:54 +0000 (00:31 +0200)
committerKarl Hasselström <kha@treskal.com>
Sun, 23 Sep 2007 22:54:06 +0000 (00:54 +0200)
commitc0af9df25a01b9d6eb4dd7fddbff3c56be588123
tree88d4f6e96ffed74db9ea7224c21d93e4b976bfab
parent6889c93cb0d60acea1af4b490559cc88b4128de5
Clear up the semantics of Series.new_patch

This patch adds a number of assertions to document and verify the
complex restrictions of the input parameters to the Series.new_patch
function. It also adds the requirement that 'before_existing' and
'commit' cannot be true at the same time when calling it, instead of
updating 'commit' inside the function.

Signed-off-by: David Kågedal <davidk@lysator.liu.se>
Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/uncommit.py
stgit/stack.py