User:VladVukicevic/Mercurial Testing

From MozillaWiki
Jump to navigation Jump to search

How I use hg with cvs.

I assume that you're doing everything in some dir where you keep your moz stuff.

mkdir cvssrc
cd cvssrc
... cvs co mozilla/client.mk ...
... MOZ_CO_PROJECT=... pull_all ...

You now have a mozilla checkout in cvssrc/mozilla. This is your mozilla master. Keep this clean; it's better to do a fresh checkout of this.

cd cvssrc/mozilla

cat > .hgignore <<EOF
.*~$
^CVS
.*/CVS
.*/CVS/.*
.*/NONE
#\.\#.*$
EOF

hg init
hg add
hg commit -m "Initial cvs import"

Note: hg add should add all the files into the repo; if it doesn't, try hg add .

Old misc notes.

hg import took a while; didn't time. Just imported a CVS checkout, ignoring CVS dirs.

hg clone from this to a new dir took 4.5min

hg status on a clean dir: 7s. (lots of stuff is in the memory cache at this point)

hg diff on a clean dir: 8s.

hg diff on dirty dir: 8s still. (!!!)