Mercurial > hgsubversion
comparison hg_delta_editor.py @ 317:5dc8fee7fc96
Less import *
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sun, 03 May 2009 21:53:51 -0500 |
parents | c3c647aff97c |
children | b6c6d32c8ef1 33736e2e25f0 |
comparison
equal
deleted
inserted
replaced
316:c3c647aff97c | 317:5dc8fee7fc96 |
---|---|
14 from svn import delta | 14 from svn import delta |
15 from svn import core | 15 from svn import core |
16 | 16 |
17 import svnexternals | 17 import svnexternals |
18 import util | 18 import util |
19 from maps import * | 19 import maps |
20 | 20 |
21 def pickle_atomic(data, file_path, dir=None): | 21 def pickle_atomic(data, file_path, dir=None): |
22 """pickle some data to a path atomically. | 22 """pickle some data to a path atomically. |
23 | 23 |
24 This is present because I kept corrupting my revmap by managing to hit ^C | 24 This is present because I kept corrupting my revmap by managing to hit ^C |
123 # ensure nested paths are handled properly | 123 # ensure nested paths are handled properly |
124 self.tag_locations.sort() | 124 self.tag_locations.sort() |
125 self.tag_locations.reverse() | 125 self.tag_locations.reverse() |
126 | 126 |
127 self.clear_current_info() | 127 self.clear_current_info() |
128 self.authors = AuthorMap(self.ui, self.authors_file, | 128 self.authors = maps.AuthorMap(self.ui, self.authors_file, |
129 defaulthost=author_host) | 129 defaulthost=author_host) |
130 if authors: self.authors.load(authors) | 130 if authors: self.authors.load(authors) |
131 | 131 |
132 self.lastdate = '1970-01-01 00:00:00 -0000' | 132 self.lastdate = '1970-01-01 00:00:00 -0000' |
133 self.includepaths = {} | 133 self.includepaths = {} |