Erik, 
indeed, it is not working right:
commit does not get changed, and I get

$ git commit -a -m "test"
[m2fix 22d0952] test
 1 file changed, 1 insertion(+), 1 deletion(-)
clpc171[/home/scratch/dimpase/sage/sage/src/sage/interfaces]$ git push trac 
HEAD:u/dimpase/m2fix
X11 forwarding request failed on channel 0
Counting objects: 6, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 485 bytes | 0 bytes/s, done.
Total 6 (delta 5), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote:   File "./hooks/post-receive.d/01-trac_branch", line 180, in 
<module>
remote:     for number, ticket in trac.ticket_iter(branch):
remote:   File "./hooks/post-receive.d/01-trac_branch", line 75, in 
ticket_iter
remote:     for result in self.rpc.search.branch(branch):
remote:   File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__
remote:     return self.__send(self.__name, args)
remote:   File "/usr/lib/python2.7/xmlrpclib.py", line 1587, in __request
remote:     verbose=self.__verbose
remote:   File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request
remote:     return self.single_request(host, handler, request_body, verbose)
remote:   File 
"/srv/git/repositories/sage.git/hooks/post-receive.d/digest_transport.py", 
line 154, in single_request
remote:     return self.parse_response(response)
remote:   File "/usr/lib/python2.7/xmlrpclib.py", line 1482, in 
parse_response
remote:     return u.close()
remote:   File "/usr/lib/python2.7/xmlrpclib.py", line 792, in close
remote:     raise ResponseError()
remote: xmlrpclib.ResponseError: ResponseError()
To g...@trac.sagemath.org:sage.git
   0c1f89f..22d0952  HEAD -> u/dimpase/m2fix

It appears that git/trac interaction is half-broken.
Specifically I am testing https://trac.sagemath.org/ticket/20659

Dima

On Friday, June 24, 2016 at 3:54:51 PM UTC+1, Travis Scrimshaw wrote:
>
>
>
> On Friday, June 24, 2016 at 3:03:24 AM UTC-5, Dima Pasechnik wrote:
>>
>>
>>
>> On Friday, June 24, 2016 at 3:06:22 AM UTC+1, David Roe wrote:
>>>
>>> I just updated git-trac-command and tried "git trac push", and got
>>>
>>> remote: Traceback (most recent call last):        
>>> remote:   File "./hooks/post-receive.d/01-trac_branch", line 180, in 
>>> <module>        
>>> remote:     for number, ticket in trac.ticket_iter(branch):        
>>> remote:   File "./hooks/post-receive.d/01-trac_branch", line 75, in 
>>> ticket_iter        
>>> remote:     for result in self.rpc.search.branch(branch):        
>>> remote:   File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__ 
>>>        
>>> remote:     return self.__send(self.__name, args)        
>>> remote:   File "/usr/lib/python2.7/xmlrpclib.py", line 1587, in 
>>> __request        
>>> remote:     verbose=self.__verbose        
>>> remote:   File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request 
>>>        
>>> remote:     return self.single_request(host, handler, request_body, 
>>> verbose)        
>>> remote:   File 
>>> "/srv/git/repositories/sage.git/hooks/post-receive.d/digest_transport.py", 
>>> line 154, in single_request        
>>> remote:     return self.parse_response(response)        
>>> remote:   File "/usr/lib/python2.7/xmlrpclib.py", line 1482, in 
>>> parse_response        
>>> remote:     return u.close()        
>>> remote:   File "/usr/lib/python2.7/xmlrpclib.py", line 792, in close     
>>>    
>>> remote:     raise ResponseError()        
>>> remote: xmlrpclib.ResponseError: ResponseError()        
>>> To g...@trac.sagemath.org:sage.git
>>>  * [new branch]      HEAD -> u/roed/p_adic_floating_point_rings
>>>
>>> Any suggestions?
>>>
>>  
>> needless to say, probably, but "git the hard way 
>> <http://doc.sagemath.org/html/en/developer/manual_git.html#git-the-hard-way>"
>>  
>> works:
>>
>> git  push trac HEAD:u/roed/p_adic_floating_point_rings
>>
>> That does not work for me, both before and after: I am still getting the 
> remote issues. Although the branch is being synced on the trac server. 
> However, it does not update the ticket (i.e., the commit field) when I 
> push. I really would like to get an e-mail when I (or anyone else) pushes 
> something to a ticket. My remote for "trac" is setup as in the Git The Hard 
> Way.
>
> Best,
> Travis
>
>  
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to