Beispiel #1
0
def upgrade(args):
    '''upgrade cinnabar metadata'''

    try:
        store = GitHgStore()
        print('No metadata to upgrade')
        return 2
    except UpgradeAbort:
        store = UpgradeGitHgStore()

    if not GitHgHelper.upgrade():
        print('Cannot finish upgrading... You may need to reclone.')
        return 1

    print('Finalizing upgrade...')
    store.close(refresh=store.METADATA_REFS)
    print('You may want to run `git cinnabar fsck` to ensure the upgrade '
          'went well.\n')
    return 0
Beispiel #2
0
def upgrade(args):
    '''upgrade cinnabar metadata'''

    try:
        store = GitHgStore()
        print 'No metadata to upgrade'
        return 2
    except UpgradeAbort:
        store = UpgradeGitHgStore()

    if not GitHgHelper.upgrade():
        print 'Cannot finish upgrading... You may need to reclone.'
        return 1

    print 'Finalizing upgrade...'
    store.close()
    print(
        'You may want to run `git cinnabar fsck --manifests --files` to '
        'ensure the upgrade went well.\n'
        'Please be aware this might take a while.')
    return 0
Beispiel #3
0
def upgrade(args):
    '''upgrade cinnabar metadata'''

    try:
        store = GitHgStore()
        print 'No metadata to upgrade'
        return 2
    except UpgradeAbort:
        store = UpgradeGitHgStore()

    if not GitHgHelper.upgrade():
        print 'Cannot finish upgrading... You may need to reclone.'
        return 1

    print 'Finalizing upgrade...'
    store.close(refresh=store.METADATA_REFS)
    print (
        'You may want to run `git cinnabar fsck` to ensure the upgrade '
        'went well.\n'
    )
    return 0