Example #1
0
def test():
    print win32helper.getargs()
    print sys.argv

    uargs = ['P:\\hg-fixutf8\\fixutf8.py', 'thi\xc5\x9b', 'i\xc5\x9b',
             '\xc4\x85', 't\xc4\x99\xc5\x9bt']
    for s in uargs:
        win32helper.rawprint(win32helper.hStdOut, s + "\n")
Example #2
0
def test():
    print win32helper.getargs()
    print sys.argv

    uargs = [
        'P:\\hg-fixutf8\\fixutf8.py', 'thi\xc5\x9b', 'i\xc5\x9b', '\xc4\x85',
        't\xc4\x99\xc5\x9bt'
    ]
    for s in uargs:
        win32helper.rawprint(win32helper.hStdOut, s + "\n")
Example #3
0
 def disp_parse(orig, ui, args):
     if type(ui) == _ui.ui:
         args = win32helper.getargs()[:]
         dispatch._earlygetopt(['--config'], args)
         dispatch._earlygetopt(['--cwd'], args)
         dispatch._earlygetopt(["-R", "--repository", "--repo"], args)
     return orig(ui, args)
Example #4
0
 def disp_parse(orig, ui, args):
     if type(ui) == _ui.ui:
         args = win32helper.getargs()[:]
         dispatch._earlygetopt(['--config'], args)
         dispatch._earlygetopt(['--cwd'], args)
         dispatch._earlygetopt(["-R", "--repository", "--repo"], args)
     return orig(ui, args)
Example #5
0
 def disp_parse(orig, ui, args):
     # if getattr(os, 'hgcmdsvr', None):
     #     os.hgcmdsvr.cout.write('_parse~~~~~~~~~~'+'\0'.join(args))
     if type(ui) == _ui.ui:
         args = win32helper.getargs()[-len(args):]
     else:
         args = map(fixutf8_fromlocal, args)
     return orig(ui, args)
Example #6
0
 def disp_parse(orig, ui, args):
     if type(ui) == _ui.ui:
         args = win32helper.getargs()[-len(args):]
     return orig(ui, args)