Changeset 2391025fcf43…
Parent 90517899657b…
by
Changes to 2 files · Browse files at 2391025fcf43 Showing diff from parent 90517899657b Diff from another changeset...
@@ -658,11 +658,8 @@
def get_head_info(self):
def ishead(ctx):
- for cctx in ctx.children():
- if cctx.branch() == ctx.branch():
- return False
- else:
- return True
+ childbranches = [cctx.branch() for cctx in ctx.children()]
+ return ctx.branch() not in childbranches
if self.mqmode:
ctxs = self.repo['.'].parents()
else:
|
@@ -300,7 +300,8 @@ else:
return None
elif item == 'ishead':
- return len(ctx.children()) == 0
+ childbranches = [cctx.branch() for cctx in ctx.children()]
+ return ctx.branch() not in childbranches
raise UnknownItem(item)
if custom.has_key('data') and not kargs.get('usepreset', False):
try:
|
Loading...