We've been running out of a Mercurial repo from within a CC snapshot view successfully for some time now. We have the source repo on the view, and the team's base repo is a clone from that one. That keeps a layer of separation to make checkout-checkins in CC easier to manage.
Now, for reasons internal to where I work, we need to switch to a new view. How can we do this? There are other teams within the company checking in files directly to CC (hopefully we'll convince them away soon), so that should be a consideration.
How can I overlay our existing repo into a new view (and then I can rebase the team's base repo no problem)?
The problem is the delta that might exist between your current Mercurial repo and the new snapshot view (especially with a different config spec).
Since the OP mentions in the comments that the config spec of the new view won't change, he suggest a simpler method than the one below:
.hg
directory of the original Mercurial repo in the new (empty) viewcleartool update -overwrite
in order to force ClearCase to erase those files by the versions from ClearCase. (see man cleartool update
)Mercurial would then detect any change between the files restored by ClearCase and the ones managed in the repo.
(Original answer)
I would:
The rest would be about: