incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [9/15] git commit: [#5076] Moved repo_cloned event to before refresh to reduce window of missing hooks
Date Thu, 01 Nov 2012 19:51:24 GMT
[#5076] Moved repo_cloned event to before refresh to reduce window of missing hooks

Signed-off-by: Cory Johns <johnsca@geek.net>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/f0a6bdbc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/f0a6bdbc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/f0a6bdbc

Branch: refs/heads/db/5080
Commit: f0a6bdbc18affa210c17c27f18faafde02a69612
Parents: e643bd5
Author: Cory Johns <johnsca@geek.net>
Authored: Tue Oct 30 18:07:34 2012 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Tue Oct 30 18:07:34 2012 +0000

----------------------------------------------------------------------
 ForgeGit/forgegit/model/git_repo.py |    2 +-
 ForgeHg/forgehg/model/hg.py         |    2 +-
 ForgeSVN/forgesvn/model/svn.py      |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/f0a6bdbc/ForgeGit/forgegit/model/git_repo.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/model/git_repo.py b/ForgeGit/forgegit/model/git_repo.py
index 12db065..cd4728b 100644
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -111,8 +111,8 @@ class GitImplementation(M.RepositoryImplementation):
             session(self._repo).flush(self._repo)
             raise
         log.info('... %r cloned', self._repo)
-        self._repo.refresh(notify=False)
         g.post_event('repo_cloned')
+        self._repo.refresh(notify=False)
 
     def commit(self, rev):
         '''Return a Commit object.  rev can be _id or a branch/tag name'''

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/f0a6bdbc/ForgeHg/forgehg/model/hg.py
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/model/hg.py b/ForgeHg/forgehg/model/hg.py
index c1fe85d..22c5bae 100644
--- a/ForgeHg/forgehg/model/hg.py
+++ b/ForgeHg/forgehg/model/hg.py
@@ -98,8 +98,8 @@ class HgImplementation(M.RepositoryImplementation):
             session(self._repo).flush(self._repo)
             raise
         log.info('... %r cloned', self._repo)
-        self._repo.refresh(notify=False)
         g.post_event('repo_cloned')
+        self._repo.refresh(notify=False)
 
     def commit(self, rev):
         '''Return a Commit object.  rev can be _id or a branch/tag name'''

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/f0a6bdbc/ForgeSVN/forgesvn/model/svn.py
----------------------------------------------------------------------
diff --git a/ForgeSVN/forgesvn/model/svn.py b/ForgeSVN/forgesvn/model/svn.py
index 4b69b92..8ce62ec 100644
--- a/ForgeSVN/forgesvn/model/svn.py
+++ b/ForgeSVN/forgesvn/model/svn.py
@@ -188,9 +188,9 @@ class SVNImplementation(M.RepositoryImplementation):
                           self._repo.name,
                           c.app.config.options['checkout_url'])):
             c.app.config.options['checkout_url'] = ""
-        self._repo.refresh(notify=False)
         self._setup_special_files(source_url)
         g.post_event('repo_cloned')
+        self._repo.refresh(notify=False)
 
     def refresh_heads(self):
         info = self._svn.info2(


Mime
View raw message