Topic "Ideas for SVN / WinSCP automation"

Author Message
Philip
[View user's profile]

Joined: 2007-11-30
Posts: 3
Location: Huntsville, AL, USA
I'm trying to improvise a way around my organization's lack of proper source code management (SCM). I've been using Subversion locally, and manually SFTPing changes from the server when I want to place those changes under SVN.

I keep thinking there's got to be a good way to automate this. (Never mind that installing SVN on the server would be far better; so far, that hasn't gotten anywhere.) What I'd like to do is this:

local windows prompt> svn ci foo.txt -m"This is a change."

[WinSCP goes out and gets foo.txt off the server]

Sending foo.txt
Transmitting file data .
Committed revision 1234.

[WinSCP puts the new foo.txt with embedded version info in the $Id$ keyword back on the server.]

I'd probably want to set a flag somehow to make it optional whether I get the server-side version or whether I commit the actual local file.

Any thoughts on how I might go about this? I know SVN hooks are quite powerful but I haven't really played with them. I've done a little bit of WinSCP command line scripting.

Thanks in advance.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I'll think about that. However this is quite complex feature and I do not think I'm going to implement it unless more people ask for that.
_________________
Martin Prikryl
Philip
[View user's profile]

Joined: 2007-11-30
Posts: 3
Location: Huntsville, AL, USA
Martin,

I wouldn't be surprised if there's a way to do this with existing functionality. I think it's just a matter of passing parameters back and forth among WinSCP, SVN, and the shell (in my case Windows batch files). I was just hoping someone could point me to a similar (if not exactly the same) example.

Oh well, I could be wrong and it may not be possible.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Philip wrote:
I wouldn't be surprised if there's a way to do this with existing functionality. I think it's just a matter of passing parameters back and forth among WinSCP, SVN, and the shell (in my case Windows batch files). I was just hoping someone could point me to a similar (if not exactly the same) example.

You can use local custom command for the first part of the task (download file locally and to the check in). But WinSCP wont't upload the file back. See documentation.
_________________
Martin Prikryl
mabdalla

Guest


Why dont you simply integrate a simple svn client WITHIN winscp?
kovacsbv

Guest


Tortoise manages local copies of SVN code and updates, checkouts, etc from your windows machine. It supports svn+ssh (which is what I think you want). Is there a reason you need to use WinSCP for this?
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License