English 中文(简体)
如何获得档案的完整历史,包括删除、改名和复制/名称的来源?
原标题:How to get complete history of a file, including deletes, renames and the source of copy/rename?
  • 时间:2011-01-16 04:59:32
  •  标签:
  • mercurial

——删除和——下面的开关似乎不兼容,因此我可以删除或复制/改名。

我也想找到更名或复印件的来源。

最佳回答

http://code>-removed <代码>- <>-follow 似乎就好像样。 1. 请使用:

hg --verbose -C -f <file>

a. 使用<代码>{file_cplica}的习惯模板:

hg log --template "changeset: {node|short}
user: {author}
date: {date|rfc822date}
file+: {file_adds}
filem: {file_mods}
file-: {file_dels}
filec: {file_copies}
summary: {desc|firstline}

" -f file2
问题回答

您可以使用一个习俗模板,展示和妥善整理档案信息:

hg log --template "{rev}
{file_copies %    {file_copy}
 }
" --follow <file_name>    

更多关于习俗模板:

hg help -v templates




相关问题
Can I clone part of a Mercurial repository?

Is it possible to clone part of a Mercurial repository? Let s say the repository is quite large, or contains multiple projects, or multiple branches. Can I clone only part of the repository? E.g. in ...

Sync files in Two Different Repos using HG

I ve got a problem when I try to sync files in two different repos. What I want to do is: I ve got 2 repos A and B, and they share some common files, suppose they lie in A/docs/common/ and B/docs/...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

git for mercurial like git-svn

Hello is there a tool for git that allow to work with mercurial repositories F.e. for svn there is a git-svn package, that allows to clone/commit/update from svn and work in a git way.. So is there ...

Useful Mercurial Hooks [closed]

What are some useful Mercurial hooks that you have come across? A few example hooks are located in the Mercurial book: acl bugzilla notify check for whitespace I personally don t find these very ...

热门标签