Use Patches.make_name() in various commands
commit7e972a6608cb2395386fc87646a1bf0c14f073db
authorPeter Grayson <pete@jpgrayson.net>
Tue, 2 Feb 2021 04:46:16 +0000 (1 23:46 -0500)
committerPeter Grayson <pete@jpgrayson.net>
Sun, 7 Feb 2021 04:12:36 +0000 (6 23:12 -0500)
tree609c01cb474ab9f72aa0f3fb3c1b7e25a6893ebd
parent0e569fd4bfc661f922f48bb65b2579d98f5e8ef3
Use Patches.make_name() in various commands

The new Patches.make_name() method replaces various uses of the
utils.make_patch_name() and utils.find_patch_name() functions, which are
removed. make_name() is expected to be more robust at ensuring valid and
unique patch names.

Signed-off-by: Peter Grayson <pete@jpgrayson.net>
stgit/commands/new.py
stgit/commands/pick.py
stgit/commands/refresh.py
stgit/commands/repair.py
stgit/commands/squash.py
stgit/commands/uncommit.py
stgit/lib/stack.py
stgit/utils.py
t/t1300-uncommit.sh
t/t2600-squash.sh
t/t3400-pick.sh