hgext3rd/topic/topicmap.py
changeset 4528 4c3667220267
parent 4464 05f8908df4ce
child 4563 8b3781d9a616
equal deleted inserted replaced
4526:ede9b37572f0 4528:4c3667220267
   100     ret = orig(repo, node, branch, bheads=bheads, opts=opts)
   100     ret = orig(repo, node, branch, bheads=bheads, opts=opts)
   101 
   101 
   102     # logic copy-pasted from cmdutil.commitstatus()
   102     # logic copy-pasted from cmdutil.commitstatus()
   103     if opts is None:
   103     if opts is None:
   104         opts = {}
   104         opts = {}
   105     ctx = repo[node]
       
   106     if ctx.topic():
   105     if ctx.topic():
   107         return ret
   106         return ret
   108     parents = ctx.parents()
   107     parents = ctx.parents()
   109 
   108 
   110     if (not opts.get('amend') and bheads and node not in bheads and not
   109     if (not opts.get('amend') and bheads and node not in bheads and not