今天晃到自己的專案 django-pgpauth 時,才發現多了 Mercurial 的選項。原來早在 5 月 28 日時就己經正式推出了。
要轉移原來的 subversion 資料庫到 hg 儲存庫中是很簡單的一件事。
在 Ubuntu 下,先安裝 python-subversion 套件。然後將 /etc/mercurial/hgrc.d/hgext.rc 中「# hgext.convert =」的註解拿掉。
接下來,作轉換的動作。
# hg convert http://projectname.googlecode.com/svn hg-client
# cd hg-client
# hg push https://projectname.googlecode.com/hg
最後,記得到 administer > source > Repository type,把 Version control system 改成 Mercurial 即可。
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。