comparison hg_delta_editor.py @ 295:aacc8cf83e13

Ensure proper handling of nested tag paths by sorting and reversing them.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Thu, 26 Mar 2009 16:37:35 +0100
parents fa26c7ef0180
children 9be04de434ed
comparison
equal deleted inserted replaced
294:f98717473abc 295:aacc8cf83e13
103 f.close() 103 f.close()
104 else: 104 else:
105 self.tag_locations = tag_locations 105 self.tag_locations = tag_locations
106 pickle_atomic(self.tag_locations, self.tag_locations_file, 106 pickle_atomic(self.tag_locations, self.tag_locations_file,
107 self.meta_data_dir) 107 self.meta_data_dir)
108 # ensure nested paths are handled properly
109 self.tag_locations.sort()
110 self.tag_locations.reverse()
108 111
109 self.clear_current_info() 112 self.clear_current_info()
110 self.author_host = author_host 113 self.author_host = author_host
111 self.authors = {} 114 self.authors = {}
112 if os.path.exists(self.authors_file): 115 if os.path.exists(self.authors_file):