Read about our upcoming Code of Conduct on this issue

Commit b41a332c authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

convert-git-tags-push: moved revert() function aside

also to make it easier to create a main() function
parent d643ea222dfa
......@@ -35,6 +35,10 @@, *a, **kw)
def revert():
check_call(('hg', 'revert', '.hgtags'))
parser = argparse.ArgumentParser(
description="Copy Git tags in Mercurial global tags."
......@@ -72,11 +76,6 @@
remote = check_output(('hg', 'config', 'paths.default')).strip().decode()
def revert():
check_call(('hg', 'revert', '.hgtags'))
confirmation = input("Commit and push those changes to '%s'?\n"
"Please enter 'YES' to confirm: " % remote)
if confirmation.strip() != 'YES':
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment