##// 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 if node:
833 if node:
834 fdict = dict.fromkeys(files)
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 for ffn in fdict:
839 for ffn in fdict:
837 # match if the file is the exact name or a directory
840 # match if the file is the exact name or a directory
838 if ffn == fn or fn.startswith("%s/" % ffn):
841 if ffn == fn or fn.startswith("%s/" % ffn):
@@ -840,7 +843,9 b' class localrepository(repo.repository):'
840 break
843 break
841 if match(fn):
844 if match(fn):
842 yield 'm', fn
845 yield 'm', fn
843 for fn in fdict:
846 ffiles = fdict.keys()
847 ffiles.sort()
848 for fn in ffiles:
844 if badmatch and badmatch(fn):
849 if badmatch and badmatch(fn):
845 if match(fn):
850 if match(fn):
846 yield 'b', fn
851 yield 'b', fn
@@ -16,9 +16,9 b' t/x'
16 a
16 a
17 NONEXISTENT: No such file in rev ce18e5bc5cd3
17 NONEXISTENT: No such file in rev ce18e5bc5cd3
18 a
18 a
19 t/x
20 b
19 b
21 t.h
20 t.h
21 t/x
22 % -I/-X with relative path should work
22 % -I/-X with relative path should work
23 b
23 b
24 t.h
24 t.h
General Comments 0
You need to be logged in to leave comments. Login now