我有一个单人单文件夹mercurial存储库.目录结构很简单:
P104 lecture_notes files under version control live here
过了一会儿,我意识到我想在存储库中有两个目录,就像这样
P104 lecture_notes files under version control live here (.hg is here) homework more files under version control
br@ymir:~/P104/lecture_notes$ll .. total 16 drwxr-xr-x 4 br br 4096 2012-02-02 18:05 ./ drwxr-xr-x 4 br br 4096 2012-02-01 20:46 ../ drwxr-xr-x 2 br br 4096 2012-02-02 17:44 homework/ drwxr-xr-x 4 br br 4096 2012-02-02 18:06 lecture_notes/ br@ymir:~/P104/lecture_notes$hg add ../homework/hw1_P104.tex abort: ../homework/hw1_P104.tex not under root
我的第一个想法是在目录结构中将repo克隆一级,将文件添加到克隆,并删除原始repo.但即使是克隆也失败了:
br@ymir:~/P104/2011/lecture_notes$hg clone . .. abort: destination '..' is not empty