equal
deleted
inserted
replaced
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]): |