When viewing history from command line, you need to specify -f (or -follow) when you are viewing the history: hg log -f. TortoiseHG will record the new file as a copy. Uncheck Only consider deleted files, let TortoiseHG find similar files and click the source file when it finishes. via cp), then in THG in Commit mode right-click at the left low pane with the unversioned new file and select Detect renames. ![]() ![]() In TortoiseHG the copy is a bit tricky: you have to copy the file manually (e.g. 46 Software known to have daylight-saving compensation is marked in the Aspects table. That allows you to specify more general patterns using filename globbing, described in the section below. Select those you want to revert and click on OK. Some, but not all, file comparison and synchronisation software can be configured to ignore the DST and time-zone differences. If you want to remove one or more items from the ignore list, right click on those items and select TortoiseSVN Remove from Ignore List You can also access a folders svn:ignore property directly. Mercurial does save the history log when you perform copy or rename (hg cp / hg mv). TortoiseGit Manual Undo Changes If you want to undo all changes you made in a file since your last commit you need to select the file, right click to pop up the context menu and then select the command TortoiseGit Revert A dialog will pop up showing you the files that youve changed and can revert. 推荐答案įrom command line, you can issue hg copy. Or to be more precise, my guess is that VisualHG cannot override the default functionality of Visual Studio, and therefore can only work with the copied file, rather than run the mercurial copy command. So I need to remember to use mercurial directly in the future! VHG must copy the file and then add it, rather than using the mercurial copy function. I just realised why it wasn't working: I didn't copy the file through either the command line or THG, but through Visual Studio (2010) using VisualHG. ![]() As I said in my comment to them, I was at fault. However, it would be exceedingly useful to be able to view the history of this copied file and see all the changes that took place on the original before the copy took place (as well as those that have taken place since the copy). Adding files to ignore list via TortoiseHg’s Commit dialog Click the image to enlarge it. Adding files to ignore list via the TestComplete Commit dialog Click the image to enlarge it. I have a file with a fairly long history of changes, but I now need to have have a 2nd copy of this file within the project which will contain it's own individual changes. In the Commit dialog, right-click the needed untracked file and then click Ignore (or Add to ignore list ). I'm pretty sure this is not possible, but I'm asking in the hope that it's just really well hidden in the documentation. In Mercurial (preferably via TortoiseHG interface) is it possible to copy a committed file, and for the new destination file to share the history for the source file?
0 Comments
Leave a Reply. |