-
Notifications
You must be signed in to change notification settings - Fork 8
restore_version can't handle too many object revert in one time since generate too long comment message #23
Copy link
Copy link
Open
Description
PS C:\Users\laoshubaby> restore_version n2389077143 -1 n9967576491 -1 n9967581025 -1 n9967581026 -1 n9967581027 -1 n9967708114 -1 n9967708115 -1 n9967725518 -1 n9967725519 -1 n9967725520 -1
Downloading history of node 2389077143
Downloading history of node 9967576491
Downloading history of node 9967581025
Downloading history of node 9967581026
Downloading history of node 9967581027
Downloading history of node 9967708114
Downloading history of node 9967708115
Downloading history of node 9967725518
Downloading history of node 9967725519
Downloading history of node 9967725520
HTTPError(400, ChangesetTag [173432112, "comment"]: v: 过长(最长为255个字符) ("Restoring version 4 of node 2389077143, version 1 of node 9967576491, version 1 of node 9967581025, version 1 of node 9967581026, version 1 of node 9967581027, version 1 of node 9967708114, version 1 of node 9967708115, version 1 of node 9967725518, version 2 of node 9967725519, version 1 of node 9967725520"))
Traceback (most recent call last):
File "C:\Environment\Python\Python312\Lib\site-packages\simple_revert\common.py", line 181, in upload_changes
changeset_id = int(auth_request(
^^^^^^^^^^^^^
File "C:\Environment\Python\Python312\Lib\site-packages\simple_revert\common.py", line 73, in auth_request
raise e
File "C:\Environment\Python\Python312\Lib\site-packages\simple_revert\common.py", line 67, in auth_request
raise HTTPError(resp.status_code, resp.text)
simple_revert.common.HTTPError: HTTPError(400, ChangesetTag [173432112, "comment"]: v: 过长(最长为255个字符) ("Restoring version 4 of node 2389077143, version 1 of node 9967576491, version 1 of node 9967581025, version 1 of node 9967581026, version 1 of node 9967581027, version 1 of node 9967708114, version 1 of node 9967708115, version 1 of node 9967725518, version 2 of node 9967725519, version 1 of node 9967725520"))
Failed to create changeset: HTTPError(400, ChangesetTag [173432112, "comment"]: v: 过长(最长为255个字符) ("Restoring version 4 of node 2389077143, version 1 of node 9967576491, version 1 of node 9967581025, version 1 of node 9967581026, version 1 of node 9967581027, version 1 of node 9967708114, version 1 of node 9967708115, version 1 of node 9967725518, version 2 of node 9967725519, version 1 of node 9967725520"))
in this log, 过长(最长为255个字符) means "too long, max is 255 characters", maybe because some of my computer still in zh-CN locale so it given warning in local language (but my windows system changed to ja)
I'll try to fix this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels