[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Commit - Approve cycle ?

From: David James <james82_at_gmail.com>
Date: 2005-08-23 00:59:29 CEST

On 22 Aug 2005 15:42:15 -0500, kfogel@collab.net <kfogel@collab.net> wrote:
> Chia-liang Kao <clkao@clkao.org> writes:
> What Subversion needs is a small change, a way to commit such that the
> txn is left dangling. Then the bindings offer the rest of what's
> needed.
Here's a quick hack that'll let you commit dangling transactions to a
local file:// repository.

Open up tools/examples/putfile.py, and comment out the lines which
commit the transaction. Then run the following commands:
  svnadmin create repo
  python putfile.py -m "dangling transaction" putfile.py repo
  svnlook --transaction 0-1 diff repo

You will see a "diff" of your uncommitted transaction. If you later
decide to commit the transaction, you can also do this using the
Python bindings.

The patch to comment out the lines which commit the transaction is shown below:

Index: putfile.py
===================================================================
--- putfile.py (revision 15884)
+++ putfile.py (working copy)
@@ -44,8 +44,8 @@
                                 handler, baton,
                                 pool)

- newrev = repos.fs_commit_txn(repos_ptr, txn, pool)
- print "revision: ", newrev
+ #newrev = repos.fs_commit_txn(repos_ptr, txn, pool)
+ #print "revision: ", newrev

 def usage():
   print "USAGE: putfile.py [-m commitmsg] [-u username] file repos-path"

-- 
David James -- http://www.cs.toronto.edu/~james
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 23 01:00:33 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.