hit counter
   
 

Random ramblings of a paranoid git
"The question is not if you are paranoid, it is if you are paranoid enough."


All | Security | Work | Wine & Dine | Leisure

   
   
20060906 Wednesday September 06, 2006
Mercurial for TeamWare users
Permalink | Comments [4] | 2006-09-06 05:57

Since OpenSolaris have choosen Mercurial for Source Code Management, abandoning TeamWare, I thought I'd write a quick transition guide to help people out.

Note: TeamWare talks about workspaces while Mercurial talks about repositories.

TeamWare/SCCS commandMercurial commandComments
bringover -p /ws/onnv-clone -w ~/ws/onnv .hg clone /ws/onnv-clone onnvIf you leave out the last argument you get a repository with the same name as the parent repository
sccs edit file.cn/aYou don't have to go through this step when using Mercurial, just start editing the file
sccs prs -e file.chg log file.cShow all changes for file.c
sccs get -pm file.chg annotate -n file.cPrint file.c with the revision of each line
sccs printhg status
sccs diffshg diffMercurial shows diffs in unified diff format
sccs delget file.cn/aThis step is done when you issue hg commit (see below)
sccs unedit file.chg revert file.c
bringoverhg pull && hg updateI.e sync with parent, can be done in one step using hg pull --update
resolve -w ~/ws/onnvn/aResolving conflicts is done as part of the hg update command
workspace parenthg pathsDisplays the parent repository
workspace parent -p /ws/onnv-gaten/aIf you want to putback to a different parent you specify it when you push the changes, e.g. hg push /ws/onnv-gate
putback -n .hg status
putback < comments.txthg commit -l comments.txt && hg pushIt is the hg push that pushes the changes to the parent

I will try to add more hints for TeamWare users once we have a Mercurial repository of OpenSolaris.

[Technorati Tags: ]

   
 
   
XML
« September 2006 »
SunMonTueWedThuFriSat
     
2
3
4
8
9
10
12
18
19
21
22
23
24
25
26
28
29
30
       
Today


Old entries


Bloggtoppen.se
OpenSolaris: Love at First Boot