Refactor Series.push_patch
commit74b457cd77928ecfc1dbddb503a08018db93b183
authorDavid Kågedal <davidk@lysator.liu.se>
Fri, 14 Sep 2007 22:31:39 +0000 (15 00:31 +0200)
committerKarl Hasselström <kha@treskal.com>
Sun, 23 Sep 2007 22:54:06 +0000 (24 00:54 +0200)
tree3b69542b9fe4190865f67c845e9d2a038a8dfe0f
parentd12b37ad2e67c914ec0d63d0877bf1ac90f7e044
Refactor Series.push_patch

Refactor the Series.push_patch function to make the code flow
simpler. It identifies the simple case and handles it early, and
reduces the number of if statements.

Most changes are simply indentation changes.

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