##// END OF EJS Templates
localrepo.walk: if we're walking a specific revision, sort the files...
Alexis S. L. Carvalho -
r4194:8e947b0e default
parent child Browse files
Show More
@@ -832,7 +832,10 b' class localrepository(repo.repository):'
832 832
833 833 if node:
834 834 fdict = dict.fromkeys(files)
835 for fn in self.manifest.read(self.changelog.read(node)[0]):
835 mdict = self.manifest.read(self.changelog.read(node)[0])
836 mfiles = mdict.keys()
837 mfiles.sort()
838 for fn in mfiles:
836 839 for ffn in fdict:
837 840 # match if the file is the exact name or a directory
838 841 if ffn == fn or fn.startswith("%s/" % ffn):
@@ -840,7 +843,9 b' class localrepository(repo.repository):'
840 843 break
841 844 if match(fn):
842 845 yield 'm', fn
843 for fn in fdict:
846 ffiles = fdict.keys()
847 ffiles.sort()
848 for fn in ffiles:
844 849 if badmatch and badmatch(fn):
845 850 if match(fn):
846 851 yield 'b', fn
@@ -16,9 +16,9 b' t/x'
16 16 a
17 17 NONEXISTENT: No such file in rev ce18e5bc5cd3
18 18 a
19 t/x
20 19 b
21 20 t.h
21 t/x
22 22 % -I/-X with relative path should work
23 23 b
24 24 t.h
General Comments 0
You need to be logged in to leave comments. Login now