开发者

a question about clearcase: how to open a file checked out in emacs?

开发者 https://www.devze.com 2023-03-14 05:38 出处:网络
I have a question about clearcase. in linux, I open a terminal, and use \"xclearcase\" 开发者_如何学Ccommand to lunch file browser of clearcase. Then I check out a file and I want to open it in Emacs,

I have a question about clearcase. in linux, I open a terminal, and use "xclearcase" 开发者_如何学Ccommand to lunch file browser of clearcase. Then I check out a file and I want to open it in Emacs, I know I should cd to the folder contains the checked out file, but before I do this, the terminal still effected by the "xclearcase" command, how could I type some commands now?


When you launch xclearcase, do so by adding a & to the end of it. This will make the shell send it to the background so you can do more stuff in your shell. E.g.

xclearcase &

That will allow you to further interact with your shell while xclearcase is running.

Also, if you're working in the terminal, I would recommend getting comfortable with cleartool for basic operations. For example, to checkout and edit a file:

cleartool co src/path/to/file.c
emacs src/path/to/file.c

Then, to checkin the file:

cleartool ci src/path/to/file.c


As Nemo mentions in the comments, the vc-clearcase Emacs mode allows you to checkout a file right from an Emacs session (C-x v v).

  • It will handle hijacked file, asking whether to keep the changes in said hijacked file through the question "Claim lock retaining changes?"
  • It will ask for a comment
  • It allows for checkouting a directory
  • It handle file with a -nocheckout rule on their config spec
0

精彩评论

暂无评论...
验证码 换一张
取 消