[BangPypers] python SVN delete functionality
shashidhar85 at gmail.com
Thu Jun 23 06:03:46 CEST 2011
>>> I will explain the situation completely
>>> I have 3 files : F1 , F2, F3
>>> I make version V1 which has all 3 files in it.
>>> Now user deletes file F3 manually i.e normal right click and
delete not "svn delete" from working copy and add file F4 to it.
>>> when I make version V2 i should make sure that file F3 shouldn't
be included and F4 is added into V2.
>>> Now V2 will have only F1, F2, F4 files.
>>> Again when I recall V1 now I should check both working copy and
repository have similar files if not delete respective file from
repository. In my case F3 shouldnt be included in version V3.
>>> arguments I get is absolute path of both repository and working
This is were I got struct unable to understand how to do please help
Thanking you in advance.
On Thu, Jun 23, 2011 at 9:07 AM, brijithp at gmail.com <brijithp at gmail.com>wrote:
> You mean the *svn delete* must work when you *svn update?. *Yes
> we can do it. but its a tricky way. What I suggest is to create a
> shell/python script named *svn *and put in higher path hierarchy (for
> example /usr/local/bin). In side the script you code like if its ran with
> argument other than *up* or *update* the run /usr/bin/svn <arguments>. if
> the argument is *update* or *up* you have to do your tasks like checking
> the removed files in the working copy and /usr/bin/svn delete the files you
> got , and then you can run /usr/bin/svn update inside the script. :)
> That means write a script to override the existing svn command.. this may
> work.. try it..
> Note:- Every svn command you use in side the script must contain absolute
> path other wise it will end up in a looping call
> Brijith P
> On Thu, Jun 23, 2011 at 12:34 AM, Noufal Ibrahim <noufal at gmail.com> wrote:
> > Sriram Narayanan <sriramnrn at gmail.com> writes:
> > > There's also the python API to SVN which let's you d a lot of stuff.
> > [...]
> > The last time I checked (and it was a long time ago), it needed physical
> > access to the repository file system (not just the checkout) to be able
> > to do anything. That makes it useless for the OPs needs.
> > --
> > ~noufal
> > http://nibrahim.net.in
> > Thank God I'm an atheist.
> > _______________________________________________
> > BangPypers mailing list
> > BangPypers at python.org
> > http://mail.python.org/mailman/listinfo/bangpypers
> BangPypers mailing list
> BangPypers at python.org
shashidhar85 at gmail.com
More information about the BangPypers