emacs & BitKeeper?

Robert Vojta robert na v0jta.net
Sobota Únor 9 10:32:01 CET 2002


Zdravím,
  nemá někdo zkušenosti s výše uvedenou kombinací? Hledám nějaké ucelenější
informace jak toto rozchodit se všemi vymoženostmi BitKeepera, ale bohužel.
Co jsem se dočetl v BitKeeperu, v Emacsu se s tím dá pracovat pouze přes
vc-mode (vc-path ...) a umí to velmi málo. Kdyby někdo věděl o nějakém
contribu do Emacsu ohledně BitKeepera, byl bych mu velmi vděčen.
  Nepracuje třeba na tom někdo? Pavle nevíš? BTW nikdy jsem do Emacsu nic
nedělal, takže ani nevím jak moc by to bylo práce se do toho dostat. Myslíš,
že by to bylo moc složité? Teda složité, časově náročné?
  Komentář z BitKeepera je velmi jednoduchý a zejména poslední odstavec
o rušení bufferů, přejmenovávání, užívání bk, přejmenovávání zpět, ...

       BitKeeper  is  similar  to  SCCS, and vc-mode more or less
       supports SCCS, so most of the things that you can do  with
       vc-mode  work:  visit-file  will check out files automati-
       cally, C-x C-q locks files  for  editing,  C-x  v  v  will
       prompt for comments and check in an individual file, C-x v
       = will compare versions, and so on.   Filename  completion
       doesn't  know  about  sfiles; this appears to be a general
       problem with vc-mode, not a BitKeeper specific issue.

       You cannot create changesets with vc-mode; use  bk  citool
       or  bk  commit.   vc-mode  does not understand BitKeeper's
       symbol handling and lines of development, neither of which
       were  in  the  original  SCCS.  Do not attempt to use vc's
       symbol, snapshot, and branch commands with BitKeeper.

       vc-mode expects to be  able  to  refer  to  SCCS  commands
       directly  instead  of via the bk front end.  In theory, it
       should suffice to put

           setq vc-path /usr/libexec/bitkeeper

       in .emacs, but this didn't work when last tested (most  of
       the  BK  developers use vi).  The commands vc wants to run
       are: bk admin, bk get, bk delta, bk unget,  bk rmdel,  and
       bk prs.  This just happens to be the list of commands that
       we symlink into /usr/bin during a standard installation.

       If you check in a file using bk citool or bk  delta  in  a
       shell window, vc-mode will not notice; you can go right on
       editing the buffer, and BitKeeper will get  very  confused
       the  next  time  you  try to check out the file (locked or
       not).  The right way to get out of this mess  is  to  kill
       off  the offending buffer, rename the modified file out of
       the way, check out the file for  editing,  and  rename  it
       back.  Do all the rearrangement from a shell prompt.  Kill
       all your buffers before running bk  citool  to  avoid  the
       problem.

-- 
Robert V0jta

  The abuse of greatness is when it disjoins remorse from power
                                      -- William Shakespeare, "Julius Caesar"



Další informace o konferenci Editors