how to clone a local kernel src tree
Will Maier
willmaier at ml1.net
Wed Jun 6 09:58:29 UTC 2007
On Wed, Jun 06, 2007 at 12:36:29PM +0530, pradeep singh rautela wrote:
> BTW it is not valid i guess.source and destination are same here.
>
> Thanks for the tip, but didn't work out :(
>
> This is what i did.
> $cd /mnt/reiser
> $cd linux-2.6.18
> $hg init [this created a .hg in the kernel src]
> $hg commit -A[why am i supposed to do this now? :(]
Because 'init' only creates the repo -- it doesn't add files.
'commit' with the -A option adds and commits all files to the repo.
If you don't add anything, you don't have anything to clone.
See
$ hg help init
$ hg help commit
> $hg clone /mnt/reiser/linux-2.6.18 /mnt/reiser/hg-kernel-repo
> $ls hg-kernel-repo [all i get is a dir with .hg]
>
> Why no src files?
By default (at least in Mercurial 0.9.3; I assume older versions as
well), clone automatically runs an update on the new repo. You
_should_ see the files there after the clone.
Read the output of
$ hg help clone
for more information.
Here's what I see:
$ mkdir repo-test
$ cd repo-test/
$ for i in a b c d e f; do
> date > $i
> done
$ hg init
$ hg status
? a
? b
? c
? d
? e
? f
$ hg commit -A -m "Add all files."
adding a
adding b
adding c
adding d
adding e
adding f
$ hg tip
changeset: 0:d87561552bb8
tag: tip
user: Will Maier <willmaier at ml1.net>
date: Wed Jun 06 04:50:26 2007 -0500
summary: Add all files.
$ hg manifest
a
b
c
d
e
f
$ hg clone . ../kernel-clone
$ cd ../kernel-clone
$ ls
$ a b c d e f
$ hg tip
changeset: 0:d87561552bb8
tag: tip
user: Will Maier <willmaier at ml1.net>
date: Wed Jun 06 04:50:26 2007 -0500
summary: Add all files.
--
[Will Maier]-----------------[willmaier at ml1.net|http://www.lfod.us/]
More information about the Mercurial
mailing list