a/ForgeHg/forgehg/model/hg.py b/ForgeHg/forgehg/model/hg.py
...
...
95
            self._setup_special_files(source_url)
95
            self._setup_special_files(source_url)
96
        except:
96
        except:
97
            self._repo.status = 'ready'
97
            self._repo.status = 'ready'
98
            session(self._repo).flush(self._repo)
98
            session(self._repo).flush(self._repo)
99
            raise
99
            raise
100
        log.info('... %r cloned', self._repo)
101
        g.post_event('repo_cloned', source_url)
102
        self._repo.refresh(notify=False)
103
100
104
    def commit(self, rev):
101
    def commit(self, rev):
105
        '''Return a Commit object.  rev can be _id or a branch/tag name'''
102
        '''Return a Commit object.  rev can be _id or a branch/tag name'''
106
        # See if the rev is a named ref that we have cached, and use the sha1
103
        # See if the rev is a named ref that we have cached, and use the sha1
107
        # from the cache. This ensures that we don't return a sha1 that we
104
        # from the cache. This ensures that we don't return a sha1 that we