#2698 Mercurial Code repository not showing any code. [21384]

v1.0.0
closed
nobody
support (446)
General
nobody
2015-08-20
2011-08-26
Anonymous
No

Originally created by: elizabethn

https://sourceforge.net/apps/trac/sourceforge/ticket/21384

I pushed code into my project's hg repository.
I tested a pull and it was successful, code is there.
But Code tab of my project is not showing anything:
https://sourceforge.net/p/codereplicator/code/ref/default~/
It just says 'Analyzing'

Related

Tickets: #2709
Tickets: #2823
Tickets: #3150
Tickets: #3581

Discussion

  • Chris Tsai - 2011-08-26
    • labels: Support --> support
     
  • Dave Brondsema

    Dave Brondsema - 2011-08-26
    • milestone: limbo --> forge-sep-16
     
  • Dave Brondsema

    Dave Brondsema - 2011-08-26
    Module allura.model.monq_model:219 in __call__
    <<                      c.app = c.project.app_instance(app_config)
                       c.user = M.User.query.get(_id=self.context.user_id)
                       self.result = func(*self.args, **self.kwargs)
                       self.state = 'complete'
                       return self.result
    >>  self.result = func(*self.args, **self.kwargs)
    Module allura.tasks.repo_tasks:35 in refresh
    <<  @task
           def refresh(**kwargs):
               c.app.repo.refresh()
    
           @task
    >>  c.app.repo.refresh()
    Module allura.model.repository:323 in refresh
    <<                  )
                           commit_msgs.append('%s by %s <%s%s>' % (
                                   ci.summary, ci.committed.name, config.common_prefix,ci.url()))
                   if commit_msgs:
                       if len(commit_msgs) > 1:
    >>  ci.summary, ci.committed.name, config.common_prefix,ci.url()))
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 6: ordinal not in range(128)
    
     
    • size: --> 2
     
    • status: open --> in-progress
    • assigned_to: Tim Van Steenburgh
     
  • forge:tv/2698

    To test, create an hg repo on a sandbox project. Clone it on your sandbox. Update hgrc in the clone, making the username something with non-ascii characters, e.g.:

    (env-allura)root@h6v6024:~/test-hgcode2$ cat .hg/hgrc
    [paths]
    default = /hg/p/test/hgcode2
    [ui]
    username = Čohadarević <admin1@users.sf.net>
    verbose = True
    

    Add a file in the repo and commit it, using non-ascii characters in the commit msg. Now push the repo. Refresh the repo homepage in allura and make sure you see the commit, and not a 500 error.

     
    • status: in-progress --> code-review
    • assigned_to: Tim Van Steenburgh --> Dave Brondsema
     
  • Dave Brondsema

    Dave Brondsema - 2011-09-19
    • status: code-review --> open
    • size: 2 --> 0
     
  • Dave Brondsema

    Dave Brondsema - 2011-09-19

    The fix so far is okay, but doesn't completely fix the problem. I made [#2823] to record the work done so far.

    Keeping this ticket open until [#2709] is done.

     

    Related

    Tickets: #2709
    Tickets: #2823

  • Dave Brondsema

    Dave Brondsema - 2011-09-19
    • assigned_to: Dave Brondsema --> nobody
     
  • Yaroslav Luzin - 2012-07-17

    this works now

    • status: open --> closed
    • milestone: forge-backlog --> forge-jul-27
     

Log in to post a comment.