Rev 2309: Fix formatting. in http://people.samba.org/bzr/jelmer/bzr-svn/0.5
Jelmer Vernooij
jelmer at samba.org
Thu Jan 15 02:18:57 GMT 2009
At http://people.samba.org/bzr/jelmer/bzr-svn/0.5
------------------------------------------------------------
revno: 2309
revision-id: jelmer at samba.org-20090115021855-3255b4v3azy2zkqo
parent: jelmer at samba.org-20090115012844-r06l8fa3ixg5rfdt
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.5
timestamp: Thu 2009-01-15 03:18:55 +0100
message:
Fix formatting.
modified:
fetch.py fetch.py-20060625004942-x2lfaib8ra707a8p-1
=== modified file 'fetch.py'
--- a/fetch.py 2009-01-15 01:28:44 +0000
+++ b/fetch.py 2009-01-15 02:18:55 +0000
@@ -312,7 +312,8 @@
class DirectoryRevisionBuildEditor(DirectoryBuildEditor):
- def __init__(self, editor, old_path, path, old_id, new_id, parent_file_id, parent_revids=[]):
+ def __init__(self, editor, old_path, path, old_id, new_id, parent_file_id,
+ parent_revids=[]):
super(DirectoryRevisionBuildEditor, self).__init__(editor, path)
assert isinstance(new_id, str)
self.old_id = old_id
@@ -368,7 +369,8 @@
old_path = None
old_file_id = None
- return DirectoryRevisionBuildEditor(self.editor, old_path, path, old_file_id, file_id, self.new_id, [])
+ return DirectoryRevisionBuildEditor(self.editor, old_path, path,
+ old_file_id, file_id, self.new_id, [])
def _open_directory(self, path, base_revnum):
base_file_id = self.editor._get_old_id(self.old_id, path)
@@ -381,7 +383,8 @@
old_path = None
file_parents = []
self._delete_entry(path, base_revnum)
- return DirectoryRevisionBuildEditor(self.editor, old_path, path, base_file_id, file_id, self.new_id, file_parents)
+ return DirectoryRevisionBuildEditor(self.editor, old_path, path,
+ base_file_id, file_id, self.new_id, file_parents)
def _add_file(self, path, copyfrom_path=None, copyfrom_revnum=-1):
file_id = self.editor._get_new_id(path)
@@ -421,13 +424,13 @@
old_path = None
file_parents = []
self._delete_entry(path, base_revnum)
- return FileRevisionBuildEditor(self.editor, old_path, path, file_id, self.new_id,
- file_parents, file_data, is_symlink=is_symlink)
+ return FileRevisionBuildEditor(self.editor, old_path, path, file_id,
+ self.new_id, file_parents, file_data, is_symlink=is_symlink)
class FileRevisionBuildEditor(FileBuildEditor):
- def __init__(self, editor, old_path, path, file_id, parent_file_id, file_parents=[], data="",
- is_symlink=False):
+ def __init__(self, editor, old_path, path, file_id, parent_file_id,
+ file_parents=[], data="", is_symlink=False):
super(FileRevisionBuildEditor, self).__init__(editor, path)
self.old_path = old_path
self.file_id = file_id
@@ -456,7 +459,8 @@
actual_checksum = md5_strings(lines)
assert checksum is None or checksum == actual_checksum
- text_revision = self.editor._get_text_revid(self.path) or self.editor.revid
+ text_revision = (self.editor._get_text_revid(self.path) or
+ self.editor.revid)
text_parents = self.editor._get_text_parents(self.path)
if text_parents is None:
text_parents = self.file_parents
@@ -464,10 +468,11 @@
[(self.file_id, revid) for revid in text_parents], lines)
if self.is_special is not None:
- self.is_symlink = (self.is_special and len(lines) > 0 and lines[0].startswith("link "))
+ self.is_symlink = (self.is_special and
+ len(lines) > 0 and lines[0].startswith("link "))
elif (len(lines) > 0 and lines[0].startswith("link ")):
- # This file just might be a file that is svn:special but didn't contain a symlink
- # but does now
+ # This file just might be a file that is svn:special but didn't
+ # contain a symlink but does now
if not self.is_symlink:
pass # FIXME: Query whether this file has svn:special set.
else:
@@ -640,7 +645,8 @@
def _close(self, checksum=None):
text_changed = (self.base_checksum != checksum)
- metadata_changed = (self.is_special is not None or self.is_executable is not None)
+ metadata_changed = (self.is_special is not None or
+ self.is_executable is not None)
if self.is_special:
# FIXME: A special file doesn't necessarily mean a symlink
# we need to fetch it and see if it starts with "link "...
More information about the bazaar-commits
mailing list