hgext/rebase.py
changeset 7877 eba7f12b0c51
parent 7875 553aa0cbeab6
child 7891 3e0c28145e6a
equal deleted inserted replaced
7876:53c72ba36c2b 7877:eba7f12b0c51
   338 def buildstate(repo, dest, src, base, collapse):
   338 def buildstate(repo, dest, src, base, collapse):
   339     'Define which revisions are going to be rebased and where'
   339     'Define which revisions are going to be rebased and where'
   340     targetancestors = util.set()
   340     targetancestors = util.set()
   341 
   341 
   342     if not dest:
   342     if not dest:
   343          # Destination defaults to the latest revision in the current branch
   343         # Destination defaults to the latest revision in the current branch
   344         branch = repo[None].branch()
   344         branch = repo[None].branch()
   345         dest = repo[branch].rev()
   345         dest = repo[branch].rev()
   346     else:
   346     else:
   347         if 'qtip' in repo.tags() and (repo[dest].hex() in
   347         if 'qtip' in repo.tags() and (repo[dest].hex() in
   348                                 [s.rev for s in repo.mq.applied]):
   348                                 [s.rev for s in repo.mq.applied]):