python script for tortoise cvs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sandeep

    #1

    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
  • Simon Brunning

    #2
    Re: python script for tortoise cvs

    On Thu, Jun 19, 2008 at 2:14 PM, sandeep <shiningsandy@g mail.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.or g/- and nothing you mention is Tortoise
    specific.

    --
    Cheers,
    Simon B.
    simon@brunningo nline.net

    GTalk: simon.brunning | MSN: small_values | Yahoo: smallvalues | Twitter: brunns

    Comment

    • Gabriel Genellina

      #3
      Re: python script for tortoise cvs

      En Tue, 24 Jun 2008 12:16:07 -0300, sandeep <shiningsandy@g mail.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:\Archivo s de programa\CVSNT\ cvs.exe"
      pyimport subprocess
      pyp = subprocess.Pope n([cvsexe, "status", "dinglob.pa s"],
      stdout=subproce ss.PIPE, stderr=subproce ss.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

      Comment

      Working...