Re: How to retrieve a revision from the repository using a Python macro
"kingcrustybun" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.gui.user |
|---|---|
| Message-ID | <[email protected]> |
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?
>
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/