You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Li...@viatech.com.cn on 2013/06/04 04:46:44 UTC
How to use SVN to setup CIMS
Dears,
I want to set up a cims by SVN. The system need to do a series test
before commit. The changes can be committed until the test passed. The
question is that the test machine is not the svn client the same as the
code committed, I want to know how can I get the changes before commit
by the test machine.
I found a way may be solve this question: by the svn client hook, but it
is not good way.
I want to do this on svn server side. I need a function like p4 shelve.
Can you give me some suggestion, thank.
If there is any puzzled, please let me know.
By LiberalJin
Re: How to use SVN to setup CIMS
Posted by Les Mikesell <le...@gmail.com>.
On Mon, Jun 3, 2013 at 9:46 PM, <Li...@viatech.com.cn> wrote:
> Dears,
>
> I want to set up a cims by SVN. The system need to do a series test before
> commit. The changes can be committed until the test passed. The question is
> that the test machine is not the svn client the same as the code committed,
> I want to know how can I get the changes before commit by the test machine.
>
> I found a way may be solve this question: by the svn client hook, but it is
> not good way.
>
> I want to do this on svn server side. I need a function like p4 shelve.
>
> Can you give me some suggestion, thank.
One approach would be to allow the commits to the trunk, then merge to
a 'tested' branch if the tests pass. Or the opposite, commit to an
'experimental' branch, then merge to trunk. You do end up with some
extra clutter in the repository but you can then use a separate system
(like jenkins) to perform the testing since it does not have to be
closely coupled to either the svn client performing the commit or the
repository.
--
Les Mikesell
lesmikesell@gmail.com
Re: 答复: How to use SVN to setup CIMS
Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag LiberalJin@viatech.com.cn,
am Mittwoch, 5. Juni 2013 um 08:47 schrieben Sie:
> I found that the tool of svnlook can cat the edit file with "-t"
> option in pre-commit script. I do this in the server side, can I do the same this in client side?
No, the client doesn't see the server generated transactions during
commits.
Mit freundlichen Grüßen,
Thorsten Schöning
--
Thorsten Schöning E-Mail:Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/
Telefon...........05151- 9468- 55
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
Re: How to use SVN to setup CIMS
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 5, 2013, at 01:47, <Li...@viatech.com.cn> wrote:
> I found that the tool of svnlook can cat the edit file with "-t" option in pre-commit script.
That's right, svnlook can look into transactions or revisions.
> I do this in the server side, can I do the same this in client side?
No; svnlook is the only tool that can look into transactions, and it only operates on local repositories, not over a network.
答复: How to use SVN to setup CIMS
Posted by Li...@viatech.com.cn.
Dears
I found that the tool of svnlook can cat the edit file with "-t" option in pre-commit script. I do this in the server side, can I do the same this in client side?
Best regards
LiberalJin
-----邮件原件-----
发件人: Ryan Schmidt [mailto:subversion-2012c@ryandesign.com]
发送时间: 2013年6月4日 13:03
收件人: Liberal Jin
抄送: users@subversion.apache.org
主题: Re: How to use SVN to setup CIMS
On Jun 3, 2013, at 21:46, LiberalJin@viatech.com.cn wrote:
> I want to set up a cims by SVN.
I don't know what "cims" is, but…
> The system need to do a series test before commit.
This has been recently discussed, and the consensus was "don't do that", because there's no way for you to obtain a consistent state of the repository to test until the commit has been finalized.
http://svn.haxx.se/users/archive-2013-05/0261.shtml
Instead, use a continuous integration system that tests your build after each commit, and reports build failures (e.g. to a group email list) so that whoever committed a bad revision will know about it and can fix it quickly.
Re: How to use SVN to setup CIMS
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 3, 2013, at 21:46, LiberalJin@viatech.com.cn wrote:
> I want to set up a cims by SVN.
I don't know what "cims" is, but…
> The system need to do a series test before commit.
This has been recently discussed, and the consensus was "don't do that", because there's no way for you to obtain a consistent state of the repository to test until the commit has been finalized.
http://svn.haxx.se/users/archive-2013-05/0261.shtml
Instead, use a continuous integration system that tests your build after each commit, and reports build failures (e.g. to a group email list) so that whoever committed a bad revision will know about it and can fix it quickly.