equal
deleted
inserted
replaced
555 if self.resuming: |
555 if self.resuming: |
556 self.resuming = False # avoids updating at subsequent commits |
556 self.resuming = False # avoids updating at subsequent commits |
557 return updatestandinsbymatch(repo, match) |
557 return updatestandinsbymatch(repo, match) |
558 else: |
558 else: |
559 return match |
559 return match |
|
560 |
|
561 def getstatuswriter(ui, repo, forcibly=None): |
|
562 '''Return the function to write largefiles specific status out |
|
563 |
|
564 If ``forcibly`` is ``None``, this returns the last element of |
|
565 ``repo._lfupdatereporters`` as "default" writer function. |
|
566 |
|
567 Otherwise, this returns the function to always write out (or |
|
568 ignore if ``not forcibly``) status. |
|
569 ''' |
|
570 if forcibly is None: |
|
571 return repo._lfstatuswriters[-1] |
|
572 else: |
|
573 if forcibly: |
|
574 return ui.status # forcibly WRITE OUT |
|
575 else: |
|
576 return lambda *msg, **opts: None # forcibly IGNORE |