forked from Tencent/CodeAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscminfo.py
More file actions
30 lines (24 loc) · 655 Bytes
/
scminfo.py
File metadata and controls
30 lines (24 loc) · 655 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- encoding: utf-8 -*-
# Copyright (c) 2021-2025 Tencent
#
# This source code file is made available under MIT License
# See LICENSE for details
# ==============================================================================
"""
scm
"""
import logging
logger = logging.getLogger(__name__)
class ScmInfo(object):
def __init__(self):
self.repo_url = None
self.scm_url = None
self.scm_type = None
self.scm_revision = None
self.scm_time = None
self.branch = None
class ScmAuthInfo(object):
def __init__(self):
self.username = ""
self.password = ""
self.ssh_file = None