Details
Details
- Reviewers
pulkit durin42 - Group Reviewers
hg-reviewers - Commits
- rHGc33a99506e13: py3: compare against bytes instead of str
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
pulkit | |
durin42 |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | hgext/mq.py (2 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Needs Revision | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg |
if bad: | if bad: | ||||
raise error.Abort(bad) | raise error.Abort(bad) | ||||
drop = self.guard_re.sub('', self.fullseries[idx]) | drop = self.guard_re.sub('', self.fullseries[idx]) | ||||
self.fullseries[idx] = drop + ''.join([' #' + g for g in guards]) | self.fullseries[idx] = drop + ''.join([' #' + g for g in guards]) | ||||
self.parseseries() | self.parseseries() | ||||
self.seriesdirty = True | self.seriesdirty = True | ||||
def pushable(self, idx): | def pushable(self, idx): | ||||
if isinstance(idx, str): | if isinstance(idx, bytes): | ||||
idx = self.series.index(idx) | idx = self.series.index(idx) | ||||
patchguards = self.seriesguards[idx] | patchguards = self.seriesguards[idx] | ||||
if not patchguards: | if not patchguards: | ||||
return True, None | return True, None | ||||
guards = self.active() | guards = self.active() | ||||
exactneg = [g for g in patchguards if g[0] == '-' and g[1:] in guards] | exactneg = [g for g in patchguards if g[0] == '-' and g[1:] in guards] | ||||
if exactneg: | if exactneg: | ||||
return False, repr(exactneg[0]) | return False, repr(exactneg[0]) |