diff options
author | frej <frej.drejhammar@gmail.com> | 2012-08-10 09:10:44 -0700 |
---|---|---|
committer | frej <frej.drejhammar@gmail.com> | 2012-08-10 09:10:44 -0700 |
commit | e63f780004ac72056aa864fd7e6ead5cd01e2c9f (patch) | |
tree | 81a3c1d4c75b83e10557f39b87f260766277b565 | |
parent | 11224c6c0b48d5eb0207307a9b503f611dc7ffc5 (diff) | |
parent | 0dcbd3d1951ed7b3685f7a07cfe3dfcc9b121391 (diff) | |
download | hg-fast-export-e63f780004ac72056aa864fd7e6ead5cd01e2c9f.tar.gz |
Merge pull request #6 from aried3r/masterupstream/20120921
Fix for Mercurial 2.3 compatibility
-rwxr-xr-x | hg-fast-export.py | 3 | ||||
-rwxr-xr-x | hg-reset.py | 2 | ||||
-rwxr-xr-x | hg2git.py | 2 | ||||
-rwxr-xr-x | svn-fast-export.py | 8 |
4 files changed, 7 insertions, 8 deletions
diff --git a/hg-fast-export.py b/hg-fast-export.py index 076d432..0e0fa87 100755 --- a/hg-fast-export.py +++ b/hg-fast-export.py @@ -3,10 +3,9 @@ # Copyright (c) 2007, 2008 Rocco Rutte <pdmef@gmx.net> and others. # License: MIT <http://www.opensource.org/licenses/mit-license.php> -from mercurial import repo,hg,cmdutil,util,ui,revlog,node +from mercurial import node from hg2git import setup_repo,fixup_user,get_branch,get_changeset from hg2git import load_cache,save_cache,get_git_sha1,set_default_branch,set_origin_name -from tempfile import mkstemp from optparse import OptionParser import re import sys diff --git a/hg-reset.py b/hg-reset.py index 79719a8..000ed6d 100755 --- a/hg-reset.py +++ b/hg-reset.py @@ -3,7 +3,7 @@ # Copyright (c) 2007, 2008 Rocco Rutte <pdmef@gmx.net> and others. # License: GPLv2 -from mercurial import repo,hg,cmdutil,util,ui,revlog,node +from mercurial import node from hg2git import setup_repo,load_cache,get_changeset,get_git_sha1 from optparse import OptionParser import sys @@ -3,7 +3,7 @@ # Copyright (c) 2007, 2008 Rocco Rutte <pdmef@gmx.net> and others. # License: MIT <http://www.opensource.org/licenses/mit-license.php> -from mercurial import repo,hg,cmdutil,util,ui,revlog,node,templatefilters +from mercurial import hg,util,ui,templatefilters import re import os import sys diff --git a/svn-fast-export.py b/svn-fast-export.py index 77496f1..be39ae3 100755 --- a/svn-fast-export.py +++ b/svn-fast-export.py @@ -15,11 +15,11 @@ tags_path = '/tags/' first_rev = 1 final_rev = 0 -import gc, sys, os.path +import sys, os.path from optparse import OptionParser -from time import sleep, mktime, localtime, strftime, strptime -from svn.fs import svn_fs_dir_entries, svn_fs_file_length, svn_fs_file_contents, svn_fs_is_dir, svn_fs_revision_root, svn_fs_youngest_rev, svn_fs_revision_proplist, svn_fs_revision_prop, svn_fs_paths_changed -from svn.core import svn_pool_create, svn_pool_clear, svn_pool_destroy, svn_stream_read, svn_stream_for_stdout, svn_stream_copy, svn_stream_close, run_app +from time import mktime, strptime +from svn.fs import svn_fs_file_length, svn_fs_file_contents, svn_fs_is_dir, svn_fs_revision_root, svn_fs_youngest_rev, svn_fs_revision_proplist, svn_fs_paths_changed +from svn.core import svn_pool_create, svn_pool_clear, svn_pool_destroy, svn_stream_for_stdout, svn_stream_copy, svn_stream_close, run_app from svn.repos import svn_repos_open, svn_repos_fs ct_short = ['M', 'A', 'D', 'R', 'X'] |