> From: STF [mailto:[email protected]] > Sent: Wednesday, June 10, 2015 11:49 PM > To: [email protected] > Subject: [thg] Changing computer > > I had to change computer the other day. So one of the preparations was > to collect info about all the HG repositories scattered here and there > in the hard drive: I had to collect the local path in the hard drive and > source path. I need local path because I also need to see if there's > any *ignored* files that I had to move them out first. Well, I suppose > I could also move the whole working copy (local repository) folder out > of the hard drive first -- but for that, I need to know where it is > beforehand (cf below). > > It turns out to be quite a tough task. If the repository is not > registered for some reason, it won't be shown in Hg Workbench. The > source path has to be found in Hg Workbench, while the local path has to > be found in Repository Settings dialog. It would be nice to conceive a > way to export some essential infos into a file, at least the source > paths of all registered repository. I understand that this use case is > not very common -- we don't change computer everyday after all -- so I'd > be OK if this is some kind of "Advanced function" hidden inside THg. > Don't hesitate to give your opinion on this topic.
If you want to find *all* the repositories on a computer, it seems to me it would be simpler to do this in the operating system. Just search for '.hg' folders to find all the repositories. If a repository has any paths associated with it they will be in the .hg\hgrc file. Open the file up and look for the [paths] section. In fact, if you only care about repositories that have a source path, skip searching for .hg folders and just do a search for all hgrc files instead. Mischa ________________________________ This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is confidential and protected by law from unauthorized disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ------------------------------------------------------------------------------ _______________________________________________ Tortoisehg-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

