Commits

Anonymous committed 7ef4b21

respect ordering of rewrite rules

  • Participants
  • Parent commits 9c0aac6

Comments (0)

Files changed (1)

 import re
 
 def rewrite_url(ui, path, section):
-    rules = {}
-    rules.update(ui.configitems(section))
-    for pattern, repl in rules.items():
+    for pattern, repl in ui.configitems(section):
         # Turn r'C:\foo\bar' into r'C:\\foo\\bar' since re.sub
         # does a string decode.
         pattern = '^' + pattern.strip() + '$'