import urllib
from django.db import models
-from mercurial import hg, ui
from south.db import db
from south.v2 import DataMigration
except:
print 'repository not configured, skipping'
else:
+ from mercurial import hg, ui
+
print 'migrate from', hg_path
repo = hg.repository(ui.ui(), hg_path)
tip = repo['tip']
from django.db import models, transaction
from django.db.models.base import ModelBase
from django.utils.translation import ugettext_lazy as _
-from mercurial import mdiff, simplemerge
+from mercurial import simplemerge
from django.conf import settings
from dvcs.signals import post_commit, post_publishable