Show More
@@ -1015,9 +1015,9 b' class queue:' | |||||
1015 | del mm[mm.index(x)] |
|
1015 | del mm[mm.index(x)] | |
1016 | dd.append(x) |
|
1016 | dd.append(x) | |
1017 |
|
1017 | |||
1018 |
m = |
|
1018 | m = util.unique(mm) | |
1019 |
r = |
|
1019 | r = util.unique(dd) | |
1020 |
a = |
|
1020 | a = util.unique(aa) | |
1021 | filelist = filter(matchfn, util.unique(m + r + a)) |
|
1021 | filelist = filter(matchfn, util.unique(m + r + a)) | |
1022 | if opts.get('git'): |
|
1022 | if opts.get('git'): | |
1023 | self.diffopts().git = True |
|
1023 | self.diffopts().git = True |
@@ -128,10 +128,12 b' def binary(s):' | |||||
128 | def unique(g): |
|
128 | def unique(g): | |
129 | """return the uniq elements of iterable g""" |
|
129 | """return the uniq elements of iterable g""" | |
130 | seen = {} |
|
130 | seen = {} | |
|
131 | l = [] | |||
131 | for f in g: |
|
132 | for f in g: | |
132 | if f not in seen: |
|
133 | if f not in seen: | |
133 | seen[f] = 1 |
|
134 | seen[f] = 1 | |
134 |
|
|
135 | l.append(f) | |
|
136 | return l | |||
135 |
|
137 | |||
136 | class Abort(Exception): |
|
138 | class Abort(Exception): | |
137 | """Raised if a command needs to print an error and exit.""" |
|
139 | """Raised if a command needs to print an error and exit.""" |
General Comments 0
You need to be logged in to leave comments.
Login now