I have a single-user mercury repository with one folder. The directory structure is simple:
P104 lecture_notes files under version control live here
After some time, I realize that I want to have two directories in the repository, for example
P104 lecture_notes files under version control live here (.hg is here) homework more files under version control
Now, if I just try to add files to the repository, it fails:
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
My first idea was to clone the repo one level in the directory structure, add files to the clone, and delete the original repo. But even cloning fails:
br@ymir :~/P104/2011/lecture_notes$ hg clone . .. abort: destination '..' is not empty
So the question is, is there a way for Mercurial-ish to do this differently than creating a clean repository somewhere else and copying the files manually?
ev-br source share