#12342: things I don't like about the json <--> hg conversion code
----------------------------+-----------------------------------------------
   Reporter:  was           |          Owner:  tbd     
       Type:  defect        |         Status:  new     
   Priority:  critical      |      Milestone:  sage-5.0
  Component:  distribution  |       Keywords:          
Work_issues:                |       Upstream:  N/A     
   Reviewer:                |         Author:          
     Merged:                |   Dependencies:          
----------------------------+-----------------------------------------------

Comment(by mariah):

 The attachment
 [[[http://trac.sagemath.org/sage_trac/attachment/ticket/12342/hg_json]]
 does not work on {{{iml-1.0.1.p14.spkg}}},
 specifically in {{{iml-1.0.1.p14/src/src}}} after doing hg->json
 and now trying to convert back, json->hg:

 {{{
 %hg_json .
 Converting .hg.json plaintext file to .hg repo...
 hg init "."
 hg pull -R "." "./.hg.json.bundle"
 pulling from ./.hg.json.bundle
 requesting all changes
 adding changesets
 adding manifests
 adding file changes
 added 4 changesets with 34 changes to 25 files
 (run 'hg update' to get a working copy)
 hg update -R "."
 abort: untracked file in working directory differs from file in requested
 revision: 'nullspace.c'
 Traceback (most recent call last):
   File "hg_json", line 279, in <module>
     convert(args[0], destructive)
   File "hg_json", line 251, in convert
     convert_json_to_hg(path, destructive)
   File "hg_json", line 220, in convert_json_to_hg
     system('hg update -R "%s"'%path)
   File "hg_json", line 172, in system
     raise RuntimeError, "error running command '%s'"%cmd
 RuntimeError: error running command 'hg update -R "."'
 %
 }}}

 Or perhaps there is something wrong with {{{.hg}}} in
 {{{iml-1.0.1.p14.spkg}}}?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12342#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to