hgext/mq.py
changeset 15924 3f132207e92f
parent 15921 92e455f2866c
child 15926 f94513971767
equal deleted inserted replaced
15923:4b088ae9d47a 15924:3f132207e92f
  2076     except error.RepoError:
  2076     except error.RepoError:
  2077         raise util.Abort(_('versioned patch repository not found'
  2077         raise util.Abort(_('versioned patch repository not found'
  2078                            ' (see init --mq)'))
  2078                            ' (see init --mq)'))
  2079     qbase, destrev = None, None
  2079     qbase, destrev = None, None
  2080     if sr.local():
  2080     if sr.local():
  2081         if sr.mq.applied:
  2081         if sr.mq.applied and sr[qbase].phase() != phases.secret:
  2082             qbase = sr.mq.applied[0].node
  2082             qbase = sr.mq.applied[0].node
  2083             if not hg.islocal(dest):
  2083             if not hg.islocal(dest):
  2084                 heads = set(sr.heads())
  2084                 heads = set(sr.heads())
  2085                 destrev = list(heads.difference(sr.heads(qbase)))
  2085                 destrev = list(heads.difference(sr.heads(qbase)))
  2086                 destrev.append(sr.changelog.parents(qbase)[0])
  2086                 destrev.append(sr.changelog.parents(qbase)[0])