Confirmed users, Bureaucrats and Sysops emeriti
792
edits
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
How I use hg with cvs. | |||
I assume that you're doing everything in some dir where you keep your moz stuff. | |||
<pre> | |||
mkdir cvssrc | |||
cd cvssrc | |||
... cvs co mozilla/client.mk ... | |||
... MOZ_CO_PROJECT=... pull_all ... | |||
</pre> | |||
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. | |||
<pre> | |||
cd cvssrc/mozilla | |||
cat > .hgignore <<EOF | |||
.*~$ | |||
^CVS | |||
.*/CVS | |||
.*/CVS/.* | |||
.*/NONE | |||
#\.\#.*$ | |||
EOF | |||
hg init | |||
hg add | |||
hg commit -m "Initial cvs import" | |||
</pre> | |||
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 import''' took a while; didn't time. Just imported a CVS checkout, ignoring CVS dirs. | ||