Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9DBCE200B66 for ; Thu, 18 Aug 2016 20:14:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9C757160AAE; Thu, 18 Aug 2016 18:14:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 93B3B160A86 for ; Thu, 18 Aug 2016 20:14:13 +0200 (CEST) Received: (qmail 27208 invoked by uid 500); 18 Aug 2016 18:14:12 -0000 Mailing-List: contact dev-help@allura.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@allura.apache.org Delivered-To: mailing list dev@allura.apache.org Received: (qmail 27193 invoked by uid 99); 18 Aug 2016 18:14:12 -0000 Received: from allura-vm.apache.org (HELO allura-vm) (140.211.11.147) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2016 18:14:12 +0000 Received: from allura-vm.apache.org (localhost [127.0.0.1]) by allura-vm (Postfix) with ESMTPS id 5BFF52802BD for ; Thu, 18 Aug 2016 18:14:12 +0000 (UTC) Content-Type: multipart/related; boundary="===============1470451553508307689==" MIME-Version: 1.0 To: dev@allura.apache.org From: "Dave Brondsema" Reply-To: "[allura:tickets] " <8001@tickets.allura.p.forge-allura.apache.org> Subject: [allura:tickets] #8001 Error with git status "T" in a commit Message-ID:

Sender: tickets@allura.p.forge-allura.apache.org In-Reply-To: <5613dbac6d19cd0a129ffb85.tickets@allura.p.forge-allura.apache.org> References: <5613dbac6d19cd0a129ffb85.tickets@allura.p.forge-allura.apache.org> Date: Thu, 18 Aug 2016 18:14:12 +0000 (UTC) archived-at: Thu, 18 Aug 2016 18:14:14 -0000 --===============1470451553508307689== Content-Type: multipart/alternative; boundary="===============2467660462001436290==" MIME-Version: 1.0 --===============2467660462001436290== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit - **status**: open --> in-progress - **assigned_to**: Dave Brondsema --- ** [tickets:#8001] Error with git status "T" in a commit** **Status:** in-progress **Milestone:** unreleased **Created:** Tue Oct 06, 2015 02:33 PM UTC by Dave Brondsema **Last Updated:** Tue Oct 06, 2015 02:33 PM UTC **Owner:** Dave Brondsema We need to handle the ["T" status](http://stackoverflow.com/questions/8691199/what-does-t-mean-in-git-status-it-isnt-in-the-man-page) from git. Currently we error: ~~~~ Traceback (most recent call last): File "/var/local/allura/Allura/allura/tasks/repo_tasks.py", line 47, in clone cloned_from_url) File "/var/local/allura/Allura/allura/model/repository.py", line 533, in init_as_clone self.refresh(notify=False, new_clone=True) File "/var/local/allura/Allura/allura/model/repository.py", line 663, in refresh refresh_repo(self, all_commits, notify, new_clone) File "/var/local/allura/Allura/allura/model/repo_refresh.py", line 122, in refresh_repo compute_lcds(ci, model_cache, lcid_cache) File "/var/local/allura/Allura/allura/model/repo_refresh.py", line 544, in compute_lcds _compute_lcds(tree, model_cache) File "/var/local/allura/Allura/allura/model/repo_refresh.py", line 554, in _compute_lcds lcd = LastCommit._build(tree) File "/var/local/allura/Allura/allura/model/repository.py", line 1573, in _build prev_lcd_cid = cls._prev_commit_id(tree.commit, path) File "/var/local/allura/Allura/allura/model/repository.py", line 1537, in _prev_commit_id if not commit.parent_ids or path in commit.added_paths: File "/var/local/env-allura/lib/python2.7/site-packages/Ming-0.4.7-py2.7.egg/ming/utils.py", line 18, in __get__ result = obj.__dict__[self.__name__] = self._func(obj) File "/var/local/allura/Allura/allura/model/repository.py", line 1241, in added_paths for path in self.paged_diffs()['added']: File "/var/local/allura/Allura/allura/model/repository.py", line 1170, in paged_diffs diffs = self.repo.paged_diffs(self._id, start, end) File "/var/local/allura/Allura/allura/model/repository.py", line 514, in paged_diffs return self._impl.paged_diffs(commit_id, start, end) File "/var/local/allura/ForgeGit/forgegit/model/git_repo.py", line 702, in paged_diffs }[status] KeyError: 'T' ~~~~ --- Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. --===============2467660462001436290== MIME-Version: 1.0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit
  • status: open --> in-progress
  • assigned_to: Dave Brondsema

[tickets:#8001] Error with git status "T" in a commit

Status: in-progress
Milestone: unreleased
Created: Tue Oct 06, 2015 02:33 PM UTC by Dave Brondsema
Last Updated: Tue Oct 06, 2015 02:33 PM UTC
Owner: Dave Brondsema

We need to handle the "T" status from git. Currently we error:

Traceback (most recent call last):
  File "/var/local/allura/Allura/allura/tasks/repo_tasks.py", line 47, in clone
    cloned_from_url)
  File "/var/local/allura/Allura/allura/model/repository.py", line 533, in init_as_clone
    self.refresh(notify=False, new_clone=True)
  File "/var/local/allura/Allura/allura/model/repository.py", line 663, in refresh
    refresh_repo(self, all_commits, notify, new_clone)
  File "/var/local/allura/Allura/allura/model/repo_refresh.py", line 122, in refresh_repo
    compute_lcds(ci, model_cache, lcid_cache)
  File "/var/local/allura/Allura/allura/model/repo_refresh.py", line 544, in compute_lcds
    _compute_lcds(tree, model_cache)
  File "/var/local/allura/Allura/allura/model/repo_refresh.py", line 554, in _compute_lcds
    lcd = LastCommit._build(tree)
  File "/var/local/allura/Allura/allura/model/repository.py", line 1573, in _build
    prev_lcd_cid = cls._prev_commit_id(tree.commit, path)
  File "/var/local/allura/Allura/allura/model/repository.py", line 1537, in _prev_commit_id
    if not commit.parent_ids or path in commit.added_paths:
  File "/var/local/env-allura/lib/python2.7/site-packages/Ming-0.4.7-py2.7.egg/ming/utils.py", line 18, in __get__
    result = obj.__dict__[self.__name__] = self._func(obj)
  File "/var/local/allura/Allura/allura/model/repository.py", line 1241, in added_paths
    for path in self.paged_diffs()['added']:
  File "/var/local/allura/Allura/allura/model/repository.py", line 1170, in paged_diffs
    diffs = self.repo.paged_diffs(self._id, start, end)
  File "/var/local/allura/Allura/allura/model/repository.py", line 514, in paged_diffs
    return self._impl.paged_diffs(commit_id, start, end)
  File "/var/local/allura/ForgeGit/forgegit/model/git_repo.py", line 702, in paged_diffs
    }[status]
KeyError: 'T'

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

--===============2467660462001436290==-- --===============1470451553508307689==--