Show More
@@ -1016,7 +1016,7 b' class queue(object):' | |||||
1016 | def lookup(self, patch, strict=False): |
|
1016 | def lookup(self, patch, strict=False): | |
1017 | patch = patch and str(patch) |
|
1017 | patch = patch and str(patch) | |
1018 |
|
1018 | |||
1019 |
def partial |
|
1019 | def partialname(s): | |
1020 | if s in self.series: |
|
1020 | if s in self.series: | |
1021 | return s |
|
1021 | return s | |
1022 | matches = [x for x in self.series if s in x] |
|
1022 | matches = [x for x in self.series if s in x] | |
@@ -1049,12 +1049,12 b' class queue(object):' | |||||
1049 | return self.series[sno] |
|
1049 | return self.series[sno] | |
1050 |
|
1050 | |||
1051 | if not strict: |
|
1051 | if not strict: | |
1052 |
res = partial |
|
1052 | res = partialname(patch) | |
1053 | if res: |
|
1053 | if res: | |
1054 | return res |
|
1054 | return res | |
1055 | minus = patch.rfind('-') |
|
1055 | minus = patch.rfind('-') | |
1056 | if minus >= 0: |
|
1056 | if minus >= 0: | |
1057 |
res = partial |
|
1057 | res = partialname(patch[:minus]) | |
1058 | if res: |
|
1058 | if res: | |
1059 | i = self.series.index(res) |
|
1059 | i = self.series.index(res) | |
1060 | try: |
|
1060 | try: | |
@@ -1066,7 +1066,7 b' class queue(object):' | |||||
1066 | return self.series[i - off] |
|
1066 | return self.series[i - off] | |
1067 | plus = patch.rfind('+') |
|
1067 | plus = patch.rfind('+') | |
1068 | if plus >= 0: |
|
1068 | if plus >= 0: | |
1069 |
res = partial |
|
1069 | res = partialname(patch[:plus]) | |
1070 | if res: |
|
1070 | if res: | |
1071 | i = self.series.index(res) |
|
1071 | i = self.series.index(res) | |
1072 | try: |
|
1072 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now