[Cvsshell-devel] CVS: cvsshell/src cvs_cmds.py,1.19,1.20
Status: Beta
Brought to you by:
stefanheimann
From: Stefan H. <ste...@us...> - 2003-04-19 18:19:15
|
Update of /cvsroot/cvsshell/cvsshell/src In directory sc8-pr-cvs1:/tmp/cvs-serv17151/src Modified Files: cvs_cmds.py Log Message: started with diff command Index: cvs_cmds.py =================================================================== RCS file: /cvsroot/cvsshell/cvsshell/src/cvs_cmds.py,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** cvs_cmds.py 15 Apr 2003 13:40:10 -0000 1.19 --- cvs_cmds.py 19 Apr 2003 18:19:10 -0000 1.20 *************** *** 656,657 **** --- 656,681 ---- app.runCvsCmd('logout', globOpts=globOpts, args=opts, checkLogin=0) except CvsError: return + + + def diff(app, name, args): + """Prints a diff of two revisions of a file. + + There are 4 ways of invoking the diff command: + + (1) diff <filename or id> + Prints a diff between the latest repository revion and the local version. + + (2) diff <revision> <filename or id> + Prints a diff between the given repository revision and the local version. + + (3) diff <revision 1> <revsion 2> <filename or id> + Prints a diff between the two given repository revisions. + + (4) diff + Prompts you for all arguments needed. + """ + print 'Not yet implemented' + # try: + # (globOpts, opts, + # myOpts, rest) = app.parseArgs(args, + # app.getCmdToAllowedOpts().get(name, '')) |