Refactoring CLogDlg::ShowContextMenuForChangedPaths() by doing extract method
From: Friedrich Brunzema <brunzefb_at_yahoo.com>
Date: Wed, 29 May 2013 19:23:52 -0700 (PDT)
Hi,
I am proposing to change the CLogDlg::ShowContextMenuForChangedPaths() method to make it shorter and have each menu-handling case: statement call one function. The refactoring shortens the 650+ line function significantly, reduces cyclomatic complexity, promotes re-use and makes things easier to understand in my opinion. Downside is that you now have to navigate to each "Execute..." method to see the code. Attached, please find a proposed patch. Functionally nothing should be changed, even though some break statements are now return statements.
If I don't hear anything negative about this in the next little while, I will commit.
Best,
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
|
This is an archived mail posted to the TortoiseSVN Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.