Show More
@@ -617,14 +617,14 b' def deletecmd(ui, repo, pats):' | |||||
617 | def listshelves(repo): |
|
617 | def listshelves(repo): | |
618 | """return all shelves in repo as list of (time, name)""" |
|
618 | """return all shelves in repo as list of (time, name)""" | |
619 | try: |
|
619 | try: | |
620 |
names = repo.vfs. |
|
620 | names = repo.vfs.listdir(shelvedir) | |
621 | except OSError as err: |
|
621 | except OSError as err: | |
622 | if err.errno != errno.ENOENT: |
|
622 | if err.errno != errno.ENOENT: | |
623 | raise |
|
623 | raise | |
624 | return [] |
|
624 | return [] | |
625 | info = [] |
|
625 | info = [] | |
626 | seen = set() |
|
626 | seen = set() | |
627 |
for |
|
627 | for filename in names: | |
628 | name = filename.rsplit(b'.', 1)[0] |
|
628 | name = filename.rsplit(b'.', 1)[0] | |
629 | if name in seen: |
|
629 | if name in seen: | |
630 | continue |
|
630 | continue |
General Comments 0
You need to be logged in to leave comments.
Login now