~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/send.py

Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2009 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,
23
24
    osutils,
24
25
    registry,
25
26
    trace,
149
150
 
150
151
def _send_4(branch, revision_id, submit_branch, public_branch,
151
152
            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
175
174
    return merge_directive.MergeDirective.from_objects(
176
175
        branch.repository, revision_id, time.time(),
177
176
        osutils.local_time_offset(), submit_branch,