Mercurial & Sphinx

CVSとの Hybrid

«  並行独立更新 (transplant)   ::   Contents

CVSとの Hybrid

LastUpdated: $IsoDate$

CVS checkout

commands:

> mkdir ~/work_hg/`whoami`/documents
> cd ~/work_hg/`whoami`/documents/
> cvs checkout sample-cvs

hg init

commands:

> cd sample-cvs/
> hg init

configure ignore files

~/work_hg/whoami/documents/sample-cvs/.hgignore:

syntax: re

^CVS/
/CVS/

check import files

commands:

> hg status
(CVS関連ファイルが含まれていないことを確認)

import files

commands:

> hg commit -A -m 'added all contents files.'

make index.rst

commands:

> mkdir rst
> cd rst/
> sphinx-quickstart

  > Project name:
  > Author name(s):
  > Project version:

modify Makefile

Makefile:

- BUILDDIR      = _build
+ BUILDDIR      = ../doc-new

- $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/

- @echo "Build finished. The HTML pages are in $(BUILDDIR)/html.
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/.

make test

commands:

> make html

operation

directory add

commands:

> cvs add $dir

file add

commands:

> cvs add $file

> hg add $file

commit

commands:

> cvs commit

> hg commit

update

commands:

> cvs update

> hg update

rename file

commands:

> hg mv $oldfile $newfile

> cvs add $newfile
> cvs rm $oldfile

rename directory

commands:

> ls -R $dir > ~/for-cvs-rename.list

> hg mv $olddir $newdir

> cvs add $newfiles
> cvs rm $oldfiles

rm file

commands:

> hg rm $file

> cvs rm $file

rm directory

commands:

> ls -R $dir > ~/for-cvs-delete.list

> hg rm $dir

> cvs rm $dir/$files
> cvs rm $dir

«  並行独立更新 (transplant)   ::   Contents