diff 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
line wrap: on
line diff
--- a/hg_delta_editor.py
+++ b/hg_delta_editor.py
@@ -105,6 +105,9 @@ class HgChangeReceiver(delta.Editor):
             self.tag_locations = tag_locations
         pickle_atomic(self.tag_locations, self.tag_locations_file,
                       self.meta_data_dir)
+        # ensure nested paths are handled properly
+        self.tag_locations.sort()
+        self.tag_locations.reverse()
 
         self.clear_current_info()
         self.author_host = author_host