aboutsummaryrefslogtreecommitdiff
path: root/pomu/repo
diff options
context:
space:
mode:
authorMykyta Holubakha <hilobakho@gmail.com>2019-06-09 02:41:37 +0300
committerMykyta Holubakha <hilobakho@gmail.com>2019-06-09 02:41:37 +0300
commitff361ddeb5b97dcb912da2faa065ccee20607752 (patch)
tree80f385f56bd159a75718b2e38f95a4be937785a7 /pomu/repo
parentMark handlers as static with to make pylint happy (diff)
downloadpomu-ff361ddeb5b97dcb912da2faa065ccee20607752.tar.gz
pomu-ff361ddeb5b97dcb912da2faa065ccee20607752.tar.bz2
pomu-ff361ddeb5b97dcb912da2faa065ccee20607752.zip
Some more minor fixes and improvements
Diffstat (limited to 'pomu/repo')
-rw-r--r--pomu/repo/remote/git.py2
-rw-r--r--pomu/repo/remote/remote.py3
-rw-r--r--pomu/repo/repo.py2
3 files changed, 4 insertions, 3 deletions
diff --git a/pomu/repo/remote/git.py b/pomu/repo/remote/git.py
index 2738c1a..b6142b0 100644
--- a/pomu/repo/remote/git.py
+++ b/pomu/repo/remote/git.py
@@ -1,5 +1,5 @@
"""A class for remote git repos"""
-from os import chdir, path
+from os import path
from shutil import rmtree
from subprocess import call
from tempfile import mkdtemp
diff --git a/pomu/repo/remote/remote.py b/pomu/repo/remote/remote.py
index 1c2a6df..0b216c1 100644
--- a/pomu/repo/remote/remote.py
+++ b/pomu/repo/remote/remote.py
@@ -15,7 +15,8 @@ class RemoteRepo():
tp = RemoteRepo.type_for_name(type_)
if not tp:
from pomu.repo.remote.git import RemoteGitRepo
- from pomu.repo.remote.hg import RemoteHgRepo
+ # no custom schemes for hg, assume git for common ones
+ #from pomu.repo.remote.hg import RemoteHgRepo
from pomu.repo.remote.rsync import RemoteRsyncRepo
from pomu.repo.remote.svn import RemoteSvnRepo
try:
diff --git a/pomu/repo/repo.py b/pomu/repo/repo.py
index ef7e784..db6b607 100644
--- a/pomu/repo/repo.py
+++ b/pomu/repo/repo.py
@@ -1,5 +1,5 @@
"""Subroutines with repositories"""
-123
+
from os import path, rmdir, makedirs
from shutil import copy2