English 中文(简体)
搜索科索沃统计局负责人
原标题:Searching the head of CVS
  • 时间:2010-06-07 22:18:06
  •  标签:
  • cvs

I m 寻求一种比较容易的方法,通过护卫会修订稿中寻找特别的体。

我认识到,CVS储存版本使这一困难变得非常困难。 但是,我试图拿出一些文字来进行这种搜查(这里预计不会有业绩)。

Currently this command will output the contents of the head files cvs co -r HEAD -p

stdout = file contents (to be grepped for the search string) stderr = the file name/header info (to be grepped for the line that signifies file name).

理想的情况是,我想总结一下内容,并在搜索项目之前和之后展示头盔+几条线(这种结果可能针对一些档案)。

我找到了一种办法,利用不同的价值观来挖掘 st和 st。 由此而来的 st/st,符合正确的顺序。 但是,有人试图将命令转至档案中?

{
  { cvs co -r HEAD -p myModule 4>&- | grep  myString  2>&4 4>&-
  } 4>&2 2>&1 >&3 3>&- | grep  Check  >&2 3>&-
} 3>&1

问题1. 这样做是否比较容易?

问 题 2. 如果不是的话,我如何获得上述法典的产出,以便按照在圣殿上显示的顺序附上档案?

问题回答

这里有两项建议:

  • You can use the "script" command to log your session in the right order. (See: man script )
  • For grep, if you want to insert context, you can use the -A, -B, -C options. (See: man grep , look for Context Line Control .

Good luck.





相关问题
Use the commit message in a CVS pre-commit hook

Is it possible to use the commit message in a pre-commit hook in CVS? The CVS server is running remotely, and I access it using pserver. Ideally, I want to allow the commit if the files pass the ...

Using CVS to #ifdef my changes

I have a large project that has many changes not yet checked in. I want to check them in but have them only take effect when a certain symbol is #define d CVS does have the ability to format diffs ...

Netbeans CVS - existing repo - existing working copy

I m using Netbeans to develop with Drupal. I m trying to let Netbeans get drupal core and modules from the repository on drupal.org to my local working copy. Problem is: I already have a working ...

Does an Eclipse CVS merge appear in the log view of a file?

I m not new to the Branch/Merge idea, but I m new to CVS. I have a sample file that I have brached off of the main trunk, and have made non-conflicting edits to both the branch and the main. When I ...

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

Get local cvs comment history when committing file/s in emacs

I often commit files with similar cvs comment but not in a single operation. I would like to able to bring up previous comments I ve used in a previous commit when I am in the process of writing a ...

热门标签