hgext/mq.py
branchstable
changeset 10690 ea85c01c7835
parent 10689 3b3bf520b428
child 10691 a778a367c20b
equal deleted inserted replaced
10689:3b3bf520b428 10690:ea85c01c7835
  1877 
  1877 
  1878     Source patch repository is looked for in <src>/.hg/patches by
  1878     Source patch repository is looked for in <src>/.hg/patches by
  1879     default. Use -p <url> to change.
  1879     default. Use -p <url> to change.
  1880 
  1880 
  1881     The patch directory must be a nested Mercurial repository, as
  1881     The patch directory must be a nested Mercurial repository, as
  1882     would be created by qinit -c.
  1882     would be created by init --mq.
  1883     '''
  1883     '''
  1884     def patchdir(repo):
  1884     def patchdir(repo):
  1885         url = repo.url()
  1885         url = repo.url()
  1886         if url.endswith('/'):
  1886         if url.endswith('/'):
  1887             url = url[:-1]
  1887             url = url[:-1]
  1895         patchespath = patchdir(sr)
  1895         patchespath = patchdir(sr)
  1896     try:
  1896     try:
  1897         hg.repository(ui, patchespath)
  1897         hg.repository(ui, patchespath)
  1898     except error.RepoError:
  1898     except error.RepoError:
  1899         raise util.Abort(_('versioned patch repository not found'
  1899         raise util.Abort(_('versioned patch repository not found'
  1900                            ' (see qinit -c)'))
  1900                            ' (see init --mq)'))
  1901     qbase, destrev = None, None
  1901     qbase, destrev = None, None
  1902     if sr.local():
  1902     if sr.local():
  1903         if sr.mq.applied:
  1903         if sr.mq.applied:
  1904             qbase = bin(sr.mq.applied[0].rev)
  1904             qbase = bin(sr.mq.applied[0].rev)
  1905             if not hg.islocal(dest):
  1905             if not hg.islocal(dest):