1216 1216 3. Initialize a new git repository.
1217 1217 4. Modify the .hg/hgrc file.
1218 1218 5. Push the Mercurial repository into the new git repository.
1219 1219 6. Export git to fossil.
1220 1220 7. Take a look at your new fossil repository.
1221 1221
1222 1222 <verbatim>
1223 -mkdir /tmp/crap
1224 -cd /tmp/crap
1223 +mkdir /tmp/moretmp
1224 +cd /tmp/moretmp
1225 1225 hg clone ssh://hg@hg/repos/wpkg
1226 1226 git clone git://github.com/schacon/hg-git.git
1227 1227 git init --bare git-wpkg
1228 1228 cd wpkg
1229 1229 cat >> .hg/hgrc << EOF
1230 1230
1231 1231 [extensions]
1232 1232 hgext.bookmarks =
1233 -hggit = /tmp/crap/hg-git/hggit
1233 +hggit = /tmp/moretmp/hg-git/hggit
1234 1234 EOF
1235 1235
1236 1236 hg push ../git-wpkg
1237 1237 cd ../git-wpkg
1238 -git fast-export --all | fossil import --git ../wpkg.fossil
1239 -cd ..
1238 +git fast-export --all | fossil import --git ~/wpkg.fossil
1239 +cd ~
1240 +rm -rf /tmp/moretmp
1240 1241 fossil ui wpkg.fossil
1241 1242 </verbatim>