English 中文(简体)
A. 寻找对带有汞的一组案文的改动
原标题:Finding changes to a block of text with mercurial

I have a text file that I d like to track changes with. It s a file that stores values (as well as strings and arrays) and has the following format for its entries:

NAME: some_name
  UNIT: some_unit
  ...
  VALUE: 10
  ...
END

我可以在本档案中设置一个重复和跟踪变化,以了解何时出现<代码>。 页: 1 价值变化显示,但自“<代码”这一行文以来。 不结盟运动: 不要改变I m,看不到这一结果。 因此,从现在起,我看不出我如何能够看到最后的<条码>有些——姓名/代码。 变数或变数多少,等等。

我认为,这类似于了解功能的变化历史,用户希望了解各种修订之间整个功能的历史。

到现在为止,Im与TortoiseHg合作,建造一个初步装置,使Im现在能够转换工具,Im也完全是新的控制。

问题回答

In mercurial the hg ep command accepts python regular expressions.

ep

2. 特定档案中的一种模式的检索历史:

hg ep [OPTION]... PATTERN [FILE]... Search revision history for a regular expression in the specified files or the entire project.

So hg ep --diff "(some_name)(.|s)*?(END)" will match the text from some_name to END and will return the changes that happened within this chunk of text. Try it here and adapted from here.

另外,也可在下列领域取得同样的成就:在搜索领域使用TortoiseHg;Search和将regt(即:姓名)?(END)(见





相关问题
Tracking Versions, Builds, Revisions, with TortiseSVN

I am the sole developer on a project and have been using tortoiseSVN for quite a while. Now Id like to start getting version information working correctly in the project I.E. show Major Version, Minor ...

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 ...

How to handle different csproj [closed]

I am working in a team of five. We are working on a C# application with five csprojects. The problem is that for each csproject, each of my colleagues has their own ideas on how to reference a DLL; ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签