Index: git_map_branches.py |
diff --git a/git_map_branches.py b/git_map_branches.py |
index e18202b56349c9a406b10fe87c02a441911617b0..98134181ed80f0ab8eb4ba08cc0d057d540b4da8 100755 |
--- a/git_map_branches.py |
+++ b/git_map_branches.py |
@@ -110,9 +110,12 @@ class BranchMapper(object): |
def __init__(self): |
self.verbosity = 0 |
self.output = OutputManager() |
- self.__tracking_info = get_all_tracking_info() |
self.__gone_branches = set() |
Matt Giuca
2014/09/03 03:21:55
Make sure all the fields are initialized in the co
calamity
2014/09/03 04:38:53
Done.
|
- self.__roots = set() |
+ |
+ def start(self): |
+ self.__tracking_info = get_all_tracking_info( |
+ include_tracking_status=self.verbosity >= 1) |
+ roots = set() |
# A map of parents to a list of their children. |
self.parent_map = collections.defaultdict(list) |
@@ -129,7 +132,7 @@ class BranchMapper(object): |
else: |
self.__gone_branches.add(parent) |
# A parent that isn't in the tracking info is a root. |
- self.__roots.add(parent) |
+ roots.add(parent) |
self.parent_map[parent].append(branch) |
@@ -137,8 +140,7 @@ class BranchMapper(object): |
self.__current_hash = self.__tracking_info[self.__current_branch].hash |
self.__tag_set = tags() |
- def start(self): |
- for root in sorted(self.__roots): |
+ for root in sorted(roots): |
self.__append_branch(root) |
def __is_invalid_parent(self, parent): |