Featured post
repository - Using Mercurial when I've done a complete rewrite -
this repository:
https://bitbucket.org/sergiotapia/sharpdic
basically, i've rewritten entire library. doesn't resemble original @ all. command can run erase/neglect existing code base , replace newer code version?
i've done hg init
on folder on local disc (it has newer code), have delete before trying upload?
thanks.
just go revision 0 (hg null
), commit (creates new branch), , close old branch. that's if not replacing repo altogether.
i assume new files not yet in repo directory. make backup first!
hg tip -c hg commit -m 'old code branch' --close-branch hg null -c
you'll have empty reporsitory directoy, starting @ revision 0. copy new files (don't copy .hg
folder new file directory).
hg addremove hg commit -m 'new code branch'
that should trick. did mention backup files , repo first? ;-)
another option force push of new repo onto remote repo, you'll still need close old branch after doing in order have 1 active head. choose option if did commit nbew repo (you mentionned having done init, assumed no commit yet).
- Get link
- X
- Other Apps
Comments
Post a Comment