Extra directory can be created in hg rename-ing directory

Viewed 33

I try to rename directory which includes largefile-normal mixed via hg rename <orig-dir> <dest-dir>, and results as this:

  • orig/foo.png(largefile) → dest/orig/foo.png
  • orig/bar.txt(normal) → dest/bar.txt
    ...

I'm annoyed by this behavior, I'd like to know how to resolve this problem.

1 Answers

I guess what you are seeing is because the folder has a file which isn't tracked by mercurial.

Workaround might be to rename the folder then run hg rename --after

For example (windows):

  ren orig dest
  hg rename --after orig dest
Related