Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'svn': 0.05; 'true,': 0.05; '"""': 0.07; 'revision': 0.07; 'wednesday,': 0.07; 'subject:help': 0.08; '"""create': 0.09; 'callback': 0.09; 'exit': 0.09; 'os.path': 0.09; 'try:': 0.09; 'cc:addr:python-list': 0.11; 'def': 0.12; 'subject: \n ': 0.16; 'subject: .....': 0.16; 'subject:log': 0.16; 'url:svn': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'options.': 0.19; 'command': 0.22; 'import': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'login': 0.25; 'primary': 0.26; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'list:': 0.30; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'os,': 0.31; 'checked': 0.32; 'url:python': 0.33; 'subject:the': 0.34; 'transaction': 0.35; 'received:google.com': 0.35; 'false': 0.36; 'subject:one': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'mailing': 0.39; 'url:mail': 0.40; 'how': 0.40; 'subject:Can': 0.60; 'to:addr:gmail.com': 0.65; 'here': 0.66; 'internally.': 0.84; 'subject:.....': 0.84; 'url:demo': 0.84; 'capture': 0.91; 'joel': 0.91; 'subject:want': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JBlMWWjkIzCyHMUrmKMCsr2kJ6/npomz9SkO9H6aWEw=; b=NpUUY/KMXs/Kf8oHveBpTXiwinIUnrz9ueXlLmKqc6hfO7FDQa5hk5gdLt/q2ly9Ng fVLC9Lynq9O6qMg1gXqsMoavWAJQo3Qbunu97xd95lnUxitOop287/9L9fXsAUN24VTP LGeyKrsu5/kvvpSO2wquH+uFLUbf1ey7hYebjV4r4N/1+Bns4wJ7JlHdpQSroWaPqkQ5 KTqs3Y86Y5b3lJU12HwryMzF+lmUH/NNqPUSsahsMoOoWMhemY1SYHRoJKY8ha5cf01G MEZnaoioMnp/VjBK+3wGVg4oR7HdmcD6vqmL9awYyJltpM/Ko5GNIpi+7MHEPfqQgjYE kk6Q== MIME-Version: 1.0 X-Received: by 10.204.232.207 with SMTP id jv15mr1636435bkb.39.1381323729048; Wed, 09 Oct 2013 06:02:09 -0700 (PDT) In-Reply-To: <7dd26e84-88df-4b4f-829b-f14a9819d5ce@googlegroups.com> References: <7dd26e84-88df-4b4f-829b-f14a9819d5ce@googlegroups.com> Date: Wed, 9 Oct 2013 09:02:08 -0400 Subject: Re: Can ay one help me on pysvn , i want to capture the log and status of checkout call ..... From: Joel Goldstick To: bab mis Content-Type: text/plain; charset=UTF-8 Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 53 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1381323737 news.xs4all.nl 15900 [2001:888:2000:d::a6]:42038 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:56485 On Wed, Oct 9, 2013 at 5:53 AM, bab mis wrote: > On Wednesday, October 9, 2013 11:39:04 AM UTC+5:30, bab mis wrote: >> > > Here is the code i am trying: > > > > 2 from pysvn import wc_status_kind > 3 import pysvn > 4 > import os, os.path > 6 import re > 7 > 8 def createSVNClient(): > 9 """Create a pysvn client, and setup some callback and options. > 10 """ > 11 > 12 def login(*args): > 13 return True, 'root', 'pass', False > 16 > 17 client = pysvn.Client() > 18 client.set_interactive(True) > 19 client.callback_get_login = login > 20 return client > 21 > 22 client = createSVNClient() > > 23 link = "http://demo.com/svn/trunk" > 24 path = '/tmp/ux' > 25 client.exception_style = 1 > 26 > 27 try: > 28 revision = client.checkout(link, path, recurse=True) > > > > > > primary intention is > > revision = client.checkout(link, path, recurse=True) > > After this how can i check the exit code and capture the specific log that would have generated during this transaction of svn co command internally. > -- > https://mail.python.org/mailman/listinfo/python-list have you checked the pysvn mailing list: http://pysvn.tigris.org/ds/viewForums.do -- Joel Goldstick http://joelgoldstick.com