473,513 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

python script for tortoise cvs

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
2 2110
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
4576
by: Erik Johnson | last post by:
This is somewhat a NEWBIE question... My company maintains a small RDBS driven website. We currently generate HTML using PHP. I've hacked a bit in Python, and generally think it is a rather cool language. I've done Perl and like it, there are a few features of PHP I like but overall am not too excited about it. I have found PHP's...
2
4887
by: DeepBleu | last post by:
When one is using an HTML form via a web broswer, the user submits the form contents and these are passed to a CGI Python script on the web server. I need to write a client script that connects to a web site, runs a Python CGI script on the web server AND passes a string to the CGI Python script that the Python CGI script can...
3
6667
by: Parano | last post by:
Is there a Python library to access CVS? I tried to google search for it, but with "python cvs" you actually find alot of python projects that have CVS repository...
22
2176
by: stephen.mayer | last post by:
Anyone know which is faster? I'm a PHP programmer but considering getting into Python ... did searches on Google but didn't turn much up on this. Thanks! Stephen
63
5067
by: Davor | last post by:
Is it possible to write purely procedural code in Python, or the OO constructs in both language and supporting libraries have got so embedded that it's impossible to avoid them? Also, is anyone aware of any scripting language that could be considered as "Python minus OO stuff"? (As you can see I'm completely new to Python and initially...
4
4112
by: Shock | last post by:
Hi everybody, I have been getting so much good advice here that I figured I would post another question. I am still learning c++ from a text that I inherited from my brother. I am now working on a problem that seems lame, but I really want it to work. It is a tortoise & hare sim. I am pretty sure I have everything right except printing...
10
10620
by: Vince | last post by:
The following is code for the classic tortoise and hare C assignment. I am posting this for educational purposes only. Please do not plagiarize as comp sci instructors regularly read newsgroups. However, this program does help one learn about arrays and pointers. #include<stdio.h> #include<stdlib.h> #include<time.h>
2
1948
by: FUGATO | last post by:
How I can design a Hare and tortoise using pointer? Somebody can give an idea about that.
0
2665
by: Buckaroo Banzai | last post by:
Hello, newbie here... I'm writing this program but when I click the start button which should initiate either the Hare or the Tortoise, it does not, this is the first time I use threads, so the problem might be the way I'm passing the value. can someone please take a look at this code and maybe give me some guidance on what I'm doing wrong....
0
7270
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7178
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7397
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
5703
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4757
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3239
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.