def CMDbaseurl(parser, args):
    'Gets or sets base-url for this branch.'
    branchref = RunGit(['symbolic-ref', 'HEAD']).strip()
    branch = ShortBranchName(branchref)
    (_, args) = parser.parse_args(args)
    if (not args):
        print('Current base-url:')
        return RunGit(['config', ('branch.%s.base-url' % branch)], error_ok=False).strip()
    else:
        print(('Setting base-url to %s' % args[0]))
        return RunGit(['config', ('branch.%s.base-url' % branch), args[0]], error_ok=False).strip()
Gets or sets base-url for this branch.
def CMDbaseurl(parser, args):
    
    branchref = RunGit(['symbolic-ref', 'HEAD']).strip()
    branch = ShortBranchName(branchref)
    (_, args) = parser.parse_args(args)
    if (not args):
        print('Current base-url:')
        return RunGit(['config', ('branch.%s.base-url' % branch)], error_ok=False).strip()
    else:
        print(('Setting base-url to %s' % args[0]))
        return RunGit(['config', ('branch.%s.base-url' % branch), args[0]], error_ok=False).strip()