Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to manually mark files as moved/renamed using Tortoise Hg (mercurial)

I have repository with a lot of files of different type (including binary files). The thing is I decided to restructure my repository and moved most of files (it is about 5G) to another folder (inside the same repository). So, of course, I want to use find renames tool in Tortoise Hg but since the are a lot of files application client freezes and after some time stops responding. I know that those files are only moved so how can I manually force the TortoiseHg to mark them as renamed without using the tool?

P.S. of course I can use this tool several time for only part of all files, but I want to know is it possible to do without find renames tool.

like image 958
Dmytro Avatar asked Mar 25 '14 23:03

Dmytro


People also ask

How do you Untrack a file in Heartgold?

If you see the help for hg rm --help : hg remove [OPTION]... FILE... Schedule the indicated files for removal from the current branch. This command schedules the files to be removed at the next commit.

How to remove files from hg?

' hg forget ' is just shorthand for ' hg remove -Af '. From the ' hg remove ' help: ...and -Af can be used to remove files from the next revision without deleting them from the working directory. Bottom line: ' remove ' deletes the file from your working copy on disk (unless you uses -Af ) and ' forget ' doesn't.

What is TortoiseHg used for?

TortoiseHg is a Windows shell extension and a series of applications for the Mercurial distributed revision control system that includes a Gnome/Nautilus extension and a CLI wrapper application to be able to used on non-Windows platforms.

How do I add files to my TortoiseHg?

Explorer: select TortoiseHg ‣ Add Files… in the context menu. A dialog will open for you to check the selected files and accept the add operation. You can also open the status tool by selecting TortoiseHg ‣ View File Status. Check the files you want to add and select Add from the file context menu.

What is TortoiseHg and the mercurial?

Welcome to TortoiseHg and the Mercurial! TortoiseHg is a set of graphical applications and Windows Explorer shell extension that serve as a friendly front-end to the Mercurial distributed version control system (DVCS). All TortoiseHg functionality is reachable from 3 places:

How to rename files in TortoiseGit?

So there are menu entries for delete and rename in the TortoiseGit submenu. However, unlike SVN Git does not track filenames. Git only tracks the content of files. So there is in general no need to use the Git rename or remove functionality or even to "repair renames" as in SVN. Renames and copies are automatically detected when showing the log.

How to define repository paths and global options in mercurial?

In the second case, repository paths and global options can be defined using a dedicated configuration file common to hg serve, hgweb.wsgi, hgweb.cgiand hgweb.fcgi. This file uses the same syntax as other Mercurial configuration files but recognizes only the following sections:


1 Answers

You can try running the following command in the terminal:

hg addremove --similarity 90

This will effectively tell Mercurial to detect renames of files which are 90% similar.

like image 93
Anton Gogolev Avatar answered Oct 14 '22 00:10

Anton Gogolev