By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,797 Members | 1,439 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,797 IT Pros & Developers. It's quick & easy.

python script for tortoise cvs

P: n/a
hi

we are using tortoise cvs and putty. i want to write a python script
to whom i can provide a tag and module.now what this script will do is
look for this specific tag and checks for whether its a individual tag
or its inside a branch.if its inside a branch then find out what is
the branch tag and then check out that branch for me else it checks
out that module with that tag.

Actually the thing is i am not able to find the way how i will do it
and for where i have to look for the info.so any help will be
appreciated.

thanks and regards
sandeep kumar sharma
Jun 27 '08 #1
Share this Question
Share on Google+
2 Replies

P: n/a
On Thu, Jun 19, 2008 at 2:14 PM, sandeep <sh**********@gmail.comwrote:
hi

we are using tortoise cvs and putty. i want to write a python script
to whom i can provide a tag and module.now what this script will do is
look for this specific tag and checks for whether its a individual tag
or its inside a branch.if its inside a branch then find out what is
the branch tag and then check out that branch for me else it checks
out that module with that tag.

Actually the thing is i am not able to find the way how i will do it
and for where i have to look for the info.so any help will be
appreciated.
I don't know if Tortoise is scriptable, but Subversion certainly is -
<http://pysvn.tigris.org/- and nothing you mention is Tortoise
specific.

--
Cheers,
Simon B.
si***@brunningonline.net
http://www.brunningonline.net/simon/blog/
GTalk: simon.brunning | MSN: small_values | Yahoo: smallvalues | Twitter: brunns
Jun 27 '08 #2

P: n/a
En Tue, 24 Jun 2008 12:16:07 -0300, sandeep <sh**********@gmail.com>
escribió:
i think ur suggestions do formulate my problem.now since i know some
commands i wanted to know how can i execute cvs commands from python
or we can say how can i capture the output from the cvs command ?.
Use the subprocess module
<http://docs.python.org/lib/module-subprocess.html>

pycvsexe = r"c:\Archivos de programa\CVSNT\cvs.exe"
pyimport subprocess
pyp = subprocess.Popen([cvsexe, "status", "dinglob.pas"],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
pyoutput = p.communicate()[0]
pyprint output
================================================== =================
File: dinglob.pas Status: Up-to-date

Working revision: 1.102
Repository revision: 1.102 /.../DINW/dinglob.pas,v
Expansion option: kv
Commit Identifier: 484474257304f18
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: (none)
Merge From: (none)
--
Gabriel Genellina

Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.