From 64219641b7ca52c8b0be4e6004aaec76b6e0795c Mon Sep 17 00:00:00 2001 From: jan Date: Sat, 6 Feb 2021 19:17:53 -0800 Subject: [PATCH] improve migration messages --- lethe/lethe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lethe/lethe.py b/lethe/lethe.py index 62c18d0..aa16c0c 100755 --- a/lethe/lethe.py +++ b/lethe/lethe.py @@ -290,7 +290,8 @@ def snap(parent_refs: Optional[Sequence[str]] = None, # Auto-migrate old commits to work with the new scheme old_base_commit = get_commit(target_base, cwd=cwd) if old_base_commit: - print(f'Migrating {target_base} to new naming scheme...') + print(f'Migrating {target_base} to new naming scheme ({target_base}/LEGACY)...') + print(f'You may also want to delete refs/lethe/HEAD with `git update-ref -d refs/lethe/HEAD`') _run('git update-ref -d ' + target_base) update_ref(target_base + '/LEGACY', old_base_commit, message='last commit using old refs/lethe/branchname approach')