UNSUBSCRIBE !
"Chuck McGregor" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.gui.user |
|---|---|
| Message-ID | <362E9913D2FA4C34B85A4EE969BF2461@VistaT3604> |
----- Original Message ----- From: kingcrustybun To: [email protected] Sent: Friday, May 11, 2007 5:48 AM Subject: [cvsgui] Re: How to retrieve a revision from the repository using a Python macro I have tried to capture the standard output stream resulting from the -p update switch. like so: (just retrieving revision 1.1 for now) oldout = sys.stdout outf = open("testOutfile", 'wb') sys.stdout = outf code, out, err = cvs.Run("update", "-p", "-r1.1", "--", cvsfilename) outf.close() sys.stdout = oldout but testOutfile is empty afterward. --- In [email protected], "kingcrustybun" <eric.coetzee@...> wrote: > > My guess would be something like > cvs update -p -r <revision> <filename> > > but how do i get hold of the output from this command? > [Non-text portions of this message have been removed] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/cvsgui/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/cvsgui/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/