Tool for quick/simple edit of Word doc in SVN without manual checkout first?

228 views
Skip to first unread message

Christian Ridderström

unread,
Nov 19, 2013, 8:24:19 AM11/19/13
to us...@tortoisesvn.tigris.org
Hi,

The tl;dr version:
- Does anyone know of a tool that makes it streamlined/easy for less technical users to do a quick edit on a Word document from SVN for which they don't have any working copy? (I.e. do: lock, temporarily checkout, open in Word, save, commit & release?)

-------

Background:
At my company we have a "sign off" procedure for documents (MS Office [1]) where a sequence of reviewers (author, tech., PA and PM) check and "sign off" on the document.

We develop the documents in SVN, but currently the sign off is done with exported copies to a network share [2]. But many documents end up being e-mailed between the reviewers anyway...

Baseline solution:
Let the reviewers, in turn: create their working copy, lock, checkout, review, add date of review as "sign off", comitt. And then tell the next reviewer that's up.

However, these reviewers generally don't have working copies, nor SW developing experience, so the above would face... challenges. Some would manage, but others would flat out refuse.

Streamlined solution:
Does anyone know of a existing tool (script) that:
1. Inputs e.g. document URL to the SVN repo.
2. Locks document in repo
3. Checks out doc to a just created temporary dir
4. Launches Explorer (and hence Word etc) on the document
5. When Word etc is closed (or perhaps better,
no longer has it's own "lock" on the file),
opens dialog to commit
6. Deletes temporary directory

From a UI point of view, steps 5-6 probably require some kind of dialog to stay open, alerting the user he's not done yet.

Kind regards,
Chrstian

[1] Please don't tease me for having to use Office
[2] No teasing, I'm trying to fix it! :-)

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3068824

To unsubscribe from this discussion, e-mail: [users-un...@tortoisesvn.tigris.org].

Andy Levy

unread,
Nov 19, 2013, 8:37:50 AM11/19/13
to us...@tortoisesvn.tigris.org
Editing requires either a working copy, or a WebDAV-mounted repository
with autoversioning. See
http://svnbook.red-bean.com/en/1.7/svn.webdav.html .

For the usage you describe here though, SharePoint is a more
appropriate solution - get Office docs out of Subversion entirely.
It's built to manage & version Office documents and you can build
workflows to do exactly what you describe here with reviews, signoffs,
etc.
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3068828

David Aldrich

unread,
Nov 19, 2013, 8:50:27 AM11/19/13
to us...@tortoisesvn.tigris.org
At the 2012 WanDisco SVN conference, there was talk of adding facilities to TortoiseSVN 1.8 to enable quick checkouts/commits of single files. This seems to have never materialised. What happened to the ideas?

David

> unsub...@tortoisesvn.tigris.org].
>
> ------------------------------------------------------
> http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageI
> d=3068828


>
> To unsubscribe from this discussion, e-mail: [users-

> unsub...@tortoisesvn.tigris.org].
>
>
> Click
> https://www.mailcontrol.com/sr/MZjQcISbuU!GX2PQPOmvUpnwDS3JbRsAP!AU
> OO3Voaz4BWD3kTNI8e!!2Inlx7fC5E4rXeTr+FecrfMeL1fPjw== to report this
> email as spam.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3068831

Stefan Küng

unread,
Nov 19, 2013, 1:36:14 PM11/19/13
to us...@tortoisesvn.tigris.org
On 19.11.2013 14:50, David Aldrich wrote:
> At the 2012 WanDisco SVN conference, there was talk of adding
> facilities to TortoiseSVN 1.8 to enable quick checkouts/commits of
> single files. This seems to have never materialised. What happened
> to the ideas?

Create a shortcut to open the repobrowser at the repo url where the word
docs are stored:
TortoiseProc.exe /command:repobrowser
/path:"https://server/repo/trunk/folder"

Now have your users use that shortcut to open the repo browser dialog.
Browse to the word doc you want, right-click, choose "Edit".

In the background, TSVN will check out a temp working copy with that
file, open it in the default application (in this case word) and wait
for that application to exit. So after editing the document in word and
word has exited, TSVN asks for the commit message and then commits that
document, and finally removes the temp working copy with that file.

Stefan

--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest interface to (Sub)version control
/_/ \_\ http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3068844

Christian Ridderström

unread,
Nov 20, 2013, 3:01:49 PM11/20/13
to us...@tortoisesvn.tigris.org
Very nice Stefan!

In TSVN 1.8.3[*] using the function
Repo-browser->Edit
on a file works just as I'd like it! I think I'll also use the shortcut tip.

Apologies for not having tried "Edit" in 1.8, it's right there. And enough reason for us to migrate in itself I'd say.

Best regards and sincere appreciation of your work!
/Christian

[*] For users of e.g. TSVN 1.7.6:
Stefan's suggested solution works well for files that don't require a lock. In TSVN 1.8.3 the solution also handles locks as well.

Stefan wrote:
> Create a shortcut to open the repobrowser at the
> repo url where the word docs are stored:
> TortoiseProc.exe /command:repobrowser /path:"https://server/repo/trunk/folder"
>
> Now have your users use that shortcut to
> open the repo browser dialog.
> Browse to the word doc you want, right-click,
> choose "Edit".
>
> In the background, TSVN will check out a temp
> working copy with that file, open it in the default
> application (in this case word) and wait
> for that application to exit.
> So after editing the document in word and
> word has exited, TSVN asks for the commit
> message and then commits that document, and finally
> removes the temp working copy with that file.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3068929
Reply all
Reply to author
Forward
0 new messages