# HG changeset patch # User Christian Ebert # Date 1192633568 -7200 # Node ID 231b408b1f6b41512e0cf608d8ae8ab225243508 # Parent a283665ad7cd18815da4f863f02840b2ae728d48 Sort files before overwriting diff -r a283665ad7cd -r 231b408b1f6b hgkw/keyword.py --- a/hgkw/keyword.py Wed Oct 17 17:03:59 2007 +0200 +++ b/hgkw/keyword.py Wed Oct 17 17:06:08 2007 +0200 @@ -344,6 +344,7 @@ if not f in files and match(f) and _iskwfile(ui, man, f): files.append(f) if files: + files.sort() kwt = kwtemplater(ui, repo, expand, node=ctx.node()) # 3rd argument sets commit to False kwt.overwrite(files, man, False) @@ -553,6 +554,7 @@ candidates = [f for f in cl[3] if mn.has_key(f) and _iskwfile(ui, mn, f)] if candidates: + candidates.sort() # 3rd argument sets expansion to True kwt = kwtemplater(ui, self, True, node=node) # 3rd argument sets commit to True