~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/send.py

  • Committer: Martin Pool
  • Date: 2010-02-10 02:17:15 UTC
  • mto: This revision was merged to the branch mainline in revision 5028.
  • Revision ID: mbp@canonical.com-20100210021715-4jlnmcxqxod7ut19
Move or remove some unconditionally loaded code

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009 Canonical Ltd
 
1
# Copyright (C) 2009, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
20
20
from bzrlib import (
21
21
    bzrdir,
22
22
    errors,
23
 
    merge_directive,
24
23
    osutils,
25
24
    registry,
26
25
    trace,
150
149
 
151
150
def _send_4(branch, revision_id, submit_branch, public_branch,
152
151
            no_patch, no_bundle, message, base_revision_id):
 
152
    from bzrlib import merge_directive
153
153
    return merge_directive.MergeDirective2.from_objects(
154
154
        branch.repository, revision_id, time.time(),
155
155
        osutils.local_time_offset(), submit_branch,
171
171
            patch_type = 'diff'
172
172
        else:
173
173
            patch_type = None
 
174
    from bzrlib import merge_directive
174
175
    return merge_directive.MergeDirective.from_objects(
175
176
        branch.repository, revision_id, time.time(),
176
177
        osutils.local_time_offset(), submit_branch,