Reputation: 7881
Dumb thing, we are changing our code standard that all C++ header files need to be ".hpp" instead of ".h" (leaving .h to be C compatible headers). So my library only has *.h files in it. Is there a quick way built in to mercurial to do this rename or do I need to write my own script?
Upvotes: 1
Views: 460
Reputation: 78330
Mercurial has a way to do it if you want to rename them in all revisions back to the start of time (and thus change history and invalidate any clones), but since you probably don't want do do that you can just do:
for thefile in $(find $(hg root) -name '*.h') ; do hg rename $thefile ${thefile}pp ; done
Upvotes: 1