Commits

Marcin Kuzminski  committed 1129c8c Merge

merge default into demo

  • Participants
  • Parent commits 5221734, 5d56039
  • Branches demo

Comments (0)

Files changed (8)

 a7a282a902b207ce34e830d643c79b7ab52e3b35 v1.2.4
 b6b611e7722e754abebaae6e265cbb4c823d344d v1.2.5
 dbc82e3362a25d2aece42060089824c4342efd17 v1.3.0
+79a95f338fd0115b2cdb77118f39e17d22ff505c v1.3.1

File docs/changelog.rst

 =========
 
 
+1.3.1 (**2012-02-27**)
+----------------------
+
+news
+++++
+
+
+fixes
++++++
+
+- redirection loop occurs when remember-me wasn't checked during login
+- fixes issues with git blob history generation 
+- don't fetch branch for git in file history dropdown. Causes unneeded slowness
+
 1.3.0 (**2012-02-26**)
 ----------------------
 

File rhodecode/controllers/files.py

         changesets_group = ([], _("Changesets"))
         branches_group = ([], _("Branches"))
         tags_group = ([], _("Tags"))
-
+        _hg = cs.repository.alias == 'hg'
         for chs in changesets:
-            n_desc = 'r%s:%s (%s)' % (chs.revision, chs.short_id, chs.branch)
+            _branch = '(%s)' % chs.branch if _hg else ''
+            n_desc = 'r%s:%s %s' % (chs.revision, chs.short_id, _branch)
             changesets_group[0].append((chs.raw_id, n_desc,))
 
         hist_l.append(changesets_group)

File rhodecode/controllers/login.py

                 # If they want to be remembered, update the cookie
                 if c.form_result['remember'] is not False:
                     session.cookie_expires = False
-                    session._set_cookie_values()
+                session._set_cookie_values()
                 session._update_cookie_out()
                 session.save()
 

File rhodecode/lib/auth.py

                     setattr(self, k, v)
                 self.set_authenticated()
                 is_user_loaded = True
+        else:
+            log.debug('No data in %s that could been used to log in' % self)
 
         if not is_user_loaded:
             # if we cannot authenticate user try anonymous
 
     def __call__(self, check_Location=''):
         user = request.user
+        log.debug('checking %s %s %s', self.__class__.__name__,
+                  self.required_perms, user)
         if not user:
+            log.debug('Empty request user')
             return False
         self.user_perms = user.permissions
         self.granted_for = user
-        log.debug('checking %s %s %s', self.__class__.__name__,
-                  self.required_perms, user)
 
         if self.check_permissions():
             log.debug('Permission granted %s @ %s', self.granted_for,

File rhodecode/lib/base.py

             cookie_store = CookieStoreWrapper(session.get('rhodecode_user'))
             user_id = cookie_store.get('user_id', None)
             username = get_container_username(environ, config)
-
             auth_user = AuthUser(user_id, api_key, username)
             request.user = auth_user
             self.rhodecode_user = c.rhodecode_user = auth_user

File rhodecode/lib/vcs/backends/git/changeset.py

         which is generally not good. Should be replaced with algorithm
         iterating commits.
         """
-        cmd = 'log --name-status -p %s -- "%s" | grep "^commit"' \
-            % (self.id, path)
+        cmd = 'log --pretty="format: %%H" --name-status -p %s -- "%s"' % (
+                  '', path
+               )
         so, se = self.repository.run_git_command(cmd)
         ids = re.findall(r'\w{40}', so)
         return [self.repository.get_changeset(id) for id in ids]

File rhodecode/lib/vcs/backends/git/repository.py

         sortkey = lambda ctx: ctx[0]
         _branches = [('/'.join(ref.split('/')[2:]), head)
             for ref, head in refs.items()
-            if ref.startswith('refs/heads/') or
-            ref.startswith('refs/remotes/') and not ref.endswith('/HEAD')]
+            if ref.startswith('refs/heads/') and not ref.endswith('/HEAD')]
         return OrderedDict(sorted(_branches, key=sortkey, reverse=False))
 
     def _get_tags(self):