Skip to content

Commit

Permalink
Renamed repository/git.py -> git.py, and associated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pchakraborty committed Apr 4, 2024
1 parent 0264e98 commit 27ca42f
Show file tree
Hide file tree
Showing 30 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion src/mepo/command/branch_create.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/branch_delete.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/branch_list.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/changed-files.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from ..utilities import verify
from ..utilities.version import version_to_string
from ..utilities.version import sanitize_version_string
from ..repository.git import GitRepository
from ..git import GitRepository

VER_LEN = 30

Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/checkout-if-exists.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository
from ..utilities import colors

def run(args):
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/checkout.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from ..state.state import MepoState
from ..utilities import verify
from ..utilities import colors
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from ..state.state import MepoState
from ..state.state import StateDoesNotExistError
from ..state.component import MepoComponent
from ..repository.git import GitRepository
from ..git import GitRepository
from ..utilities import shellcmd
from ..utilities import colors
from ..utilities import mepoconfig
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/commit.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository

from .stage import stage_files

Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ..utilities.version import version_to_string
from ..utilities.version import sanitize_version_string

from ..repository.git import GitRepository
from ..git import GitRepository

VER_LEN = 30

Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/develop.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository
from ..utilities import colors

def run(args):
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from shutil import get_terminal_size

from ..state.state import MepoState
from ..repository.git import GitRepository
from ..git import GitRepository
from ..utilities import verify

def run(args):
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/fetch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from ..state.state import MepoState
from ..utilities import colors
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/pull-all.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..state.component import MepoVersion
from ..repository.git import GitRepository
from ..git import GitRepository
from ..utilities import colors

def run(args):
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from ..state.component import MepoVersion
from ..utilities import verify
from ..utilities import colors
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/push.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..utilities import verify
from ..state.state import MepoState
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/restore-state.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import atexit

from ..state.state import MepoState
from ..repository.git import GitRepository
from ..git import GitRepository
from ..utilities.version import version_to_string
from ..utilities import colors

Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from ..state.state import MepoState
from ..state.component import MepoVersion
from ..repository.git import GitRepository
from ..git import GitRepository
from ..registry import Registry
from ..utilities.version import sanitize_version_string

Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/stage.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository
from ..state.component import MepoVersion

def run(args):
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/stash_apply.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/stash_list.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from ..state.state import MepoState
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/stash_pop.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/stash_push.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/stash_show.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from ..state.state import MepoState

from ..repository.git import GitRepository
from ..git import GitRepository

from ..utilities.version import version_to_string
from ..utilities.version import sanitize_version_string
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/tag_create.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository

# Popping up an EDITOR is based on https://stackoverflow.com/a/39989442
import os, tempfile, subprocess
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/tag_delete.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/tag_list.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/tag_push.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..state.state import MepoState
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
2 changes: 1 addition & 1 deletion src/mepo/command/unstage.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from ..state.state import MepoState
from ..utilities import shellcmd
from ..utilities import verify
from ..repository.git import GitRepository
from ..git import GitRepository

def run(args):
allcomps = MepoState.read_state()
Expand Down
6 changes: 3 additions & 3 deletions src/mepo/repository/git.py → src/mepo/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

from urllib.parse import urljoin

from ..utilities import shellcmd
from ..utilities import colors
from .utilities import shellcmd
from .utilities import colors

from ..utilities.exceptions import RepoAlreadyClonedError
from .utilities.exceptions import RepoAlreadyClonedError

class GitRepository(object):
"""
Expand Down

0 comments on commit 27ca42f

Please sign in to comment.