diff --git a/rhodecode/controllers/changeset.py b/rhodecode/controllers/changeset.py --- a/rhodecode/controllers/changeset.py +++ b/rhodecode/controllers/changeset.py @@ -382,7 +382,7 @@ class ChangesetController(BaseRepoContro revision=revision, f_path=request.POST.get('f_path'), line_no=request.POST.get('line'), - status_change=(ChangesetStatus.get_status_lbl(status) + status_change=(ChangesetStatus.get_status_lbl(status) if status and change_status else None) ) diff --git a/rhodecode/controllers/pullrequests.py b/rhodecode/controllers/pullrequests.py --- a/rhodecode/controllers/pullrequests.py +++ b/rhodecode/controllers/pullrequests.py @@ -62,7 +62,7 @@ class PullrequestsController(BaseRepoCon k, v in repo.branches.iteritems()], _("Branches")) bookmarks_group = ([('book:%s:%s' % (k, v), k) for k, v in repo.bookmarks.iteritems()], _("Bookmarks")) - tags_group = ([('tag:%s:%s' % (k, v), k) for + tags_group = ([('tag:%s:%s' % (k, v), k) for k, v in repo.tags.iteritems()], _("Tags")) hist_l.append(bookmarks_group) @@ -242,7 +242,7 @@ class PullrequestsController(BaseRepoCon pull_request=pull_request_id, f_path=request.POST.get('f_path'), line_no=request.POST.get('line'), - status_change=(ChangesetStatus.get_status_lbl(status) + status_change=(ChangesetStatus.get_status_lbl(status) if status and change_status else None) ) diff --git a/rhodecode/lib/base.py b/rhodecode/lib/base.py --- a/rhodecode/lib/base.py +++ b/rhodecode/lib/base.py @@ -216,4 +216,4 @@ class BaseRepoController(BaseController) # some globals counter for menu c.repository_followers = self.scm_model.get_followers(dbr) c.repository_forks = self.scm_model.get_forks(dbr) - c.repository_pull_requests = self.scm_model.get_pull_requests(dbr) \ No newline at end of file + c.repository_pull_requests = self.scm_model.get_pull_requests(dbr) diff --git a/rhodecode/lib/dbmigrate/schema/db_1_4_0.py b/rhodecode/lib/dbmigrate/schema/db_1_4_0.py --- a/rhodecode/lib/dbmigrate/schema/db_1_4_0.py +++ b/rhodecode/lib/dbmigrate/schema/db_1_4_0.py @@ -25,4 +25,4 @@ #TODO: replace that will db.py content after 1.5 Release -from rhodecode.model.db import * \ No newline at end of file +from rhodecode.model.db import * diff --git a/rhodecode/lib/diffs.py b/rhodecode/lib/diffs.py --- a/rhodecode/lib/diffs.py +++ b/rhodecode/lib/diffs.py @@ -566,7 +566,7 @@ class InMemoryBundleRepo(bundlerepositor def differ(org_repo, org_ref, other_repo, other_ref, discovery_data=None): """ - General differ between branches, bookmarks or separate but releated + General differ between branches, bookmarks or separate but releated repositories :param org_repo: diff --git a/rhodecode/lib/vcs/nodes.py b/rhodecode/lib/vcs/nodes.py --- a/rhodecode/lib/vcs/nodes.py +++ b/rhodecode/lib/vcs/nodes.py @@ -432,7 +432,7 @@ class RemovedFileNode(FileNode): RemovedFileNodeError. """ ALLOWED_ATTRIBUTES = [ - 'name', 'path', 'state', 'is_root', 'is_file', 'is_dir', 'kind', + 'name', 'path', 'state', 'is_root', 'is_file', 'is_dir', 'kind', 'added', 'changed', 'not_changed', 'removed' ] diff --git a/rhodecode/lib/vcs/utils/hgcompat.py b/rhodecode/lib/vcs/utils/hgcompat.py --- a/rhodecode/lib/vcs/utils/hgcompat.py +++ b/rhodecode/lib/vcs/utils/hgcompat.py @@ -12,4 +12,4 @@ from mercurial.match import match from mercurial.mdiff import diffopts from mercurial.node import hex from mercurial.encoding import tolocal -from mercurial import discovery \ No newline at end of file +from mercurial import discovery diff --git a/rhodecode/model/changeset_status.py b/rhodecode/model/changeset_status.py --- a/rhodecode/model/changeset_status.py +++ b/rhodecode/model/changeset_status.py @@ -120,7 +120,7 @@ class ChangesetStatusModel(BaseModel): if revision: new_status = _create_status(user=user, repo=repo, status=status, - comment=comment, revision=revision, + comment=comment, revision=revision, pull_request=None) self.sa.add(new_status) return new_status diff --git a/rhodecode/model/comment.py b/rhodecode/model/comment.py --- a/rhodecode/model/comment.py +++ b/rhodecode/model/comment.py @@ -59,7 +59,7 @@ class ChangesetCommentsModel(BaseModel): f_path=None, line_no=None, status_change=None): """ Creates new comment for changeset or pull request. - IF status_change is not none this comment is associated with a + IF status_change is not none this comment is associated with a status change of changeset or changesets associated with pull request :param text: diff --git a/rhodecode/model/user.py b/rhodecode/model/user.py --- a/rhodecode/model/user.py +++ b/rhodecode/model/user.py @@ -610,4 +610,4 @@ class UserModel(BaseModel): user = self._get_user(user) obj = UserEmailMap.query().get(email_id) if obj: - self.sa.delete(obj) \ No newline at end of file + self.sa.delete(obj) diff --git a/rhodecode/templates/admin/users/user_edit.html b/rhodecode/templates/admin/users/user_edit.html --- a/rhodecode/templates/admin/users/user_edit.html +++ b/rhodecode/templates/admin/users/user_edit.html @@ -209,7 +209,7 @@