1

This seems like it should be really easy, but I can't find anything that directly addresses it in my searching. I have a mercurial repo with subrepos, I have deleted one of the subrepos (the whole folder). How do I reclone that subrepo now? I could do it manually but surely there's a hg command that does the job?

radman
  • 17,675
  • 11
  • 42
  • 58

1 Answers1

1

Use the Clean parameter in your hg update to make it pull the subrepo again.

hg update -C

Beware that clean will discard any uncommitted changes in your working directory, so shelve or commit anything you want to keep before doing it.

Nanhydrin
  • 4,332
  • 2
  • 38
  • 51