Mercurial/TortoiseHg: Move Files or Directories

A move is called a rename in Mercurial. So, to move a tracked file/directory called Foobar into FooDir use:

$ hg rename Foobar FooDir\Foobar

The UI of TortoiseHg does not seem to be as mature as TortoiseSVN right now (v0.9.3). One cannot move a file/directory by keeping the right mouse button pressed while moving the picked items across to the destination directory. To move a file or directory, right-click and choose TortoiseHgRename File.

About these ads

One thought on “Mercurial/TortoiseHg: Move Files or Directories

  1. […] rename/move. HG rename (move is just specifying a longer path including directories) Note that the default HG log will not […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s