equal
deleted
inserted
replaced
159 else: |
159 else: |
160 return super(shallowrepository, self).filectx(path, *args, |
160 return super(shallowrepository, self).filectx(path, *args, |
161 **kwargs) |
161 **kwargs) |
162 |
162 |
163 @localrepo.unfilteredmethod |
163 @localrepo.unfilteredmethod |
164 def commitctx(self, ctx, error=False): |
164 def commitctx(self, ctx, error=False, origctx=None): |
165 """Add a new revision to current repository. |
165 """Add a new revision to current repository. |
166 Revision information is passed via the context argument. |
166 Revision information is passed via the context argument. |
167 """ |
167 """ |
168 |
168 |
169 # some contexts already have manifest nodes, they don't need any |
169 # some contexts already have manifest nodes, they don't need any |
177 fparent1 = m1.get(f, nullid) |
177 fparent1 = m1.get(f, nullid) |
178 if fparent1 != nullid: |
178 if fparent1 != nullid: |
179 files.append((f, hex(fparent1))) |
179 files.append((f, hex(fparent1))) |
180 self.fileservice.prefetch(files) |
180 self.fileservice.prefetch(files) |
181 return super(shallowrepository, self).commitctx(ctx, |
181 return super(shallowrepository, self).commitctx(ctx, |
182 error=error) |
182 error=error, |
|
183 origctx=origctx) |
183 |
184 |
184 def backgroundprefetch(self, revs, base=None, repack=False, pats=None, |
185 def backgroundprefetch(self, revs, base=None, repack=False, pats=None, |
185 opts=None): |
186 opts=None): |
186 """Runs prefetch in background with optional repack |
187 """Runs prefetch in background with optional repack |
187 """ |
188 """ |