RE: rollback to previous revision

2016-02-22 Thread Ren Wang
Maybe I didn't describe it clearly. I mean to rollback on the repository instead of the working copy. If a user checked in a "wrong" file, system administrator/project manager needs to rollback the file to the previous revision on the repository. -Original Message- From: Stefan Hett [m

rollback to previous revision

2016-02-21 Thread Ren Wang
How to rollback of a file or folder to previous revision? I can't find it from the command tool or API, is there a API for it? Regards, Ren

RE: svn_fs for rename file and folder

2016-02-21 Thread Ren Wang
Hi Bert, Thank you very much, the copies+delete works for me. Ren From: Bert Huijben [mailto:b...@qqmail.nl] Sent: Sunday, February 21, 2016 3:51 PM To: Ren Wang ; users@subversion.apache.org Subject: RE: svn_fs for rename file and folder Currently not. We still express moves as

svn_fs for rename file and folder

2016-02-21 Thread Ren Wang
Are there APIs for renaming file/folder in the svn_fs layer? Regards, Ren

RE: version number

2016-02-21 Thread Ren Wang
Hi Andreas, Thank you so much for the answer! Ren -Original Message- From: Andreas Mohr [mailto:a...@lisas.de] Sent: Sunday, February 21, 2016 9:40 AM To: Ren Wang Cc: users@subversion.apache.org Subject: Re: version number On Sun, Feb 21, 2016 at 08:45:56AM -0500, Ren Wang wrote

version number

2016-02-21 Thread Ren Wang
Is there a way or API to set and get a file version number instead of revision number? For my case, when a file is created, the version by default should be 1, every change the version number will be incremented by 1. Regards, Ren

RE: node unique id

2016-01-21 Thread Ren Wang
PI to get the latest revision for a node? Regards, Ren -Original Message- From: Stefan Sperling [mailto:s...@elego.de] Sent: Thursday, January 21, 2016 11:01 AM To: Ren Wang Cc: 'Subversion Users' Subject: Re: node unique id On Thu, Jan 21, 2016 at 10:25:09AM -0500, Ren Wang

node unique id

2016-01-21 Thread Ren Wang
Can I assume the node revision id is unique in subversion? If so, is there an API to get it by repository root, path and revision number parameters? Regards, Ren

RE: subversion export with node and revision properties

2015-12-07 Thread Ren Wang
Not sure how svnadmin dump works, does it export files/directory as svn export, plus metadata information for file/directory? From: jbl...@icloud.com [mailto:jbl...@icloud.com] Sent: Monday, December 7, 2015 2:39 PM To: Subversion Users Cc: Ren Wang Subject: Re: subversion export with

subversion export with node and revision properties

2015-12-07 Thread Ren Wang
Is there a tool to export a subversion repository with node and revision properties/metadata?

RE: FW: getting file or directory property/metadata

2015-11-28 Thread Ren Wang
Thank you for the response. I just did a test, svn_fs_node_created_rev() works great! -Original Message- From: Daniel Shahaf [mailto:d...@daniel.shahaf.name] Sent: Saturday, November 28, 2015 12:41 PM To: Ren Wang ; d...@subversion.apache.org Cc: users@subversion.apache.org Subject: Re

RE: FW: getting file or directory property/metadata

2015-11-28 Thread Ren Wang
Thank you, svn_fs_node_created_rev() is what I am looking for. -Original Message- From: Branko Čibej [mailto:br...@apache.org] Sent: Saturday, November 28, 2015 7:07 PM To: users@subversion.apache.org Subject: Re: FW: getting file or directory property/metadata On 28.11.2015 18:26, Danie

FW: getting file or directory property/metadata

2015-11-27 Thread Ren Wang
e latest version id showing on >the subversion client panel, such as on TortoseSVN, I guess it must has an >interface on the repos or fs layer. -Original Message- From: Branko Čibej [mailto:br...@apache.org] Sent: Thursday, November 26, 2015 11:13 AM To: Ren Wang Subject: Re: g

getting file or directory property/metadata

2015-11-26 Thread Ren Wang
How to get a file or directory property by using API, is it svn_fs_node_prop()? I was trying to get svn:author (a default property) for a file from the repository, but the API always returns NULL.

API for creating file and revision

2015-11-25 Thread Ren Wang
First of all, I would like to express my appreciation for the support from the community in the past few days. Here are some more another questions: The API svn_fs_make_file() will create an empty file, and the svn_fs_apply_text() will fill the text content to the repository. Is there a si

Re: svn_repos_fs_commit_txn error

2015-11-24 Thread Ren Wang
Thank you so much for the information. I wonder if there is a simple or any subversion programming guide? Sent from my iPhone > On Nov 24, 2015, at 11:31, Philip Martin wrote: > > "Ren Wang" writes: > >> After more google searching, I added the following line in

RE: svn_repos_fs_commit_txn error

2015-11-24 Thread Ren Wang
7; ; users@subversion.apache.org Subject: RE: svn_repos_fs_commit_txn error > -Original Message- > From: Branko Čibej [mailto:br...@apache.org] > Sent: dinsdag 24 november 2015 06:13 > To: users@subversion.apache.org > Subject: Re: svn_repos_fs_commit_txn error > > On 23.11.2015 21:0

svn_repos_fs_commit_txn error

2015-11-23 Thread Ren Wang
I got an error for creating a new directory to the repository. Strange to me is that enve the code failed at the svn_repos_fs_commit_txn, but the directory got created: 1) Open repository, repos 2) Get the latest revision, youngest 3) Do the following: svn_fs_txn_t *txn; s

RE: how to get node property by using C API

2015-11-21 Thread Ren Wang
Thanks for the response, I will check it out from the sample code. From: Bert Huijben [mailto:b...@qqmail.nl] Sent: Friday, November 20, 2015 1:25 PM To: 'Ren Wang' ; users@subversion.apache.org Subject: RE: how to get node property by using C API There should be an api fo

how to get node property by using C API

2015-11-20 Thread Ren Wang
I would like to know how to get a directory or file property with Subversion C API, if I already have the node ID and path, what's the API to get file size and author, creation time etc.? Regards, Ren

RE: Subversion C API

2015-11-10 Thread Ren Wang
Great, it works. Thank you so much! -Original Message- From: Philip Martin [mailto:philip.mar...@wandisco.com] Sent: Monday, November 9, 2015 11:08 AM To: Ren Wang Cc: 'Bert Huijben' ; users@subversion.apache.org Subject: Re: Subversion C API The svnlook client uses the FS A

RE: Subversion C API

2015-11-09 Thread Ren Wang
, November 9, 2015 9:43 AM To: Ren Wang Cc: 'Bert Huijben' ; users@subversion.apache.org Subject: Re: Subversion C API The FS API, svn_fs_ and svn_repos_, provides access to a repository on the local filesystem. It provides a transactional API to commits: create a txn, populate the txn,

RE: Subversion C API

2015-11-09 Thread Ren Wang
far, we only have the test code from subversion, such as test_fs project which is not enough for us. I will take a look of the svnmucc code. Regards, Ren From: Bert Huijben [mailto:b...@qqmail.nl] Sent: Sunday, November 8, 2015 12:28 PM To: 'Ren Wang' ; users@subversion.

Subversion C API

2015-11-06 Thread Ren Wang
I have posted the same question to the stackoverflow, here it is. Looking forward to hear from you: We are considering to use Subversion as the file system layer to store version enabled documents. Since the security function will be handled by other code, I am considering to directly use the S