|
List Info
Thread: Pysvn diff_summarize
|
|
| Pysvn diff_summarize |

|
2008-02-05 07:01:47 |
Dear
I am a newbie in both Python and svn world. I want to create
a script that
writtes differences between two version of tags (e.g.
Added,modified and
deleted files revision number some log info comment as
well).
Using svn, it appears that svn diff --summarize and svn log
are the best
choices.
That's why I am using them in pysvn with the command line
pysvn.client.diff_summarize(urltag1,revision,urltag2,revisio
n,True,False) as
suggested on pysvn programmer's reference website.
Now I returned this kind of result as shown below :
[<PysvnDiffSummary u'tags_trunk.txt'>,
<PysvnDiffSummary u'trunk_tags.txt'>,
<PysvnDiffSummary u'gen_inf.py'>]
I can't understand how I could find the status for each of
these files
inside PysvnDiffSummary class.
I try to use the PysvnStatus methods but there aren't
existing...
Is there anyone that could help me finding out these
information?
Best regards
--
View this message in context: http://www.nabble.com/Pysvn-diff_summarize-tp
15289618p15289618.html
Sent from the pysvn - users mailing list archive at
Nabble.com.
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe pysvn.tigris.org
For additional commands, e-mail: users-help pysvn.tigris.org
|
|
| Re: Pysvn diff_summarize |

|
2008-02-06 15:07:26 |
On Feb 5, 2008, at 13:01, pyrofrag wrote:
>
> Dear
>
> I am a newbie in both Python and svn world. I want to
create a
> script that
> writtes differences between two version of tags (e.g.
> Added,modified and
> deleted files revision number some log info comment as
well).
>
> Using svn, it appears that svn diff --summarize and svn
log are the
> best
> choices.
>
> That's why I am using them in pysvn with the command
line
> pysvn.client.diff_summarize
> (urltag1,revision,urltag2,revision,True,False) as
> suggested on pysvn programmer's reference website.
>
> Now I returned this kind of result as shown below :
>
> [<PysvnDiffSummary u'tags_trunk.txt'>,
<PysvnDiffSummary
> u'trunk_tags.txt'>,
> <PysvnDiffSummary u'gen_inf.py'>]
>
> I can't understand how I could find the status for each
of these files
> inside PysvnDiffSummary class.
> I try to use the PysvnStatus methods but there aren't
existing...
>
> Is there anyone that could help me finding out these
information?
>
>
Sorry for the lack of docs.
You can find out what is in any python object with
dir(obj).
As if happens all the pysvn objects work as dictionaries as
well as class objects that you can access in a simpler way.
For example
obj['fred']
or
obj.fred
To find all the fields you can do:
print obj.keys()
Barry
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe pysvn.tigris.org
For additional commands, e-mail: users-help pysvn.tigris.org
|
|
| Re: Pysvn diff_summarize |

|
2008-02-08 04:12:05 |
Thank you for this tips
I success to find all methods for my psvn_diff summarize by
doing :
popo=svn.diff_summarize(trunk,pysvn.Revision(
pysvn.opt_revision_kind.head
),tags,pysvn.Revision( pysvn.opt_revision_kind.head
),True,False)
print popo[0].keys()
I think you should add this method in FAQ of Pysvn project
because it is a
little bit disturbing to find the detailes methods for
PysvnStatus and not
for PysvnLog, PsvnDiffsummarize and so on.
Anyway
Thanks again
Best regards
--
View this message in context: http://www.nabble.com/Pysvn-diff_summarize-tp
15289618p15352514.html
Sent from the pysvn - users mailing list archive at
Nabble.com.
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe pysvn.tigris.org
For additional commands, e-mail: users-help pysvn.tigris.org
|
|
| Re: Pysvn diff_summarize |

|
2008-02-09 02:22:00 |
On Feb 8, 2008, at 10:12, pyrofrag wrote:
>
> Thank you for this tips
>
> I success to find all methods for my psvn_diff
summarize by doing :
>
> popo=svn.diff_summarize(trunk,pysvn.Revision
> ( pysvn.opt_revision_kind.head
> ),tags,pysvn.Revision( pysvn.opt_revision_kind.head
),True,False)
> print popo[0].keys()
>
> I think you should add this method in FAQ of Pysvn
project because
> it is a
> little bit disturbing to find the detailes methods for
PysvnStatus
> and not
> for PysvnLog, PsvnDiffsummarize and so on.
>
I agree I need to add the docs for these or have them
contributed to me.
I've been working on getting pysvn ready for 1.5 when I get
spare time.
But I will need to work on the docs to catch up with these
details.
Barry
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe pysvn.tigris.org
For additional commands, e-mail: users-help pysvn.tigris.org
|
|
| Re: Pysvn diff_summarize |

|
2008-02-09 05:09:11 |
Well I'll try to help in your doc if you want i Have already
done
diff_summarize, log, info, info2 and propget.
--
View this message in context: http://www.nabble.com/Pysvn-diff_summarize-tp
15289618p15370581.html
Sent from the pysvn - users mailing list archive at
Nabble.com.
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe pysvn.tigris.org
For additional commands, e-mail: users-help pysvn.tigris.org
|
|
| Re: Pysvn diff_summarize |

|
2008-04-28 15:50:14 |
On Feb 9, 2008, at 11:09, pyrofrag wrote:
>
> Well I'll try to help in your doc if you want i Have
already done
> diff_summarize, log, info, info2 and propget.
I'm not sure if I merged your updated docs. Where is your
updated
version for me to double check?
Barry
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe pysvn.tigris.org
For additional commands, e-mail: users-help pysvn.tigris.org
|
|
[1-6]
|
|