Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG25136e03012e: lfcommands: use %d on known-int in format string
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
| indygreg |
| hg-reviewers |
| Lint Skipped |
| Unit Tests Skipped |
| Path | Packages | |||
|---|---|---|---|---|
| M | hgext/largefiles/lfcommands.py (2 lines) |
| Status | Author | Revision | |
|---|---|---|---|
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 |
| revs = opts.get(r'rev', []) | revs = opts.get(r'rev', []) | ||||
| if not revs: | if not revs: | ||||
| raise error.Abort(_('no revisions specified')) | raise error.Abort(_('no revisions specified')) | ||||
| revs = scmutil.revrange(repo, revs) | revs = scmutil.revrange(repo, revs) | ||||
| numcached = 0 | numcached = 0 | ||||
| for rev in revs: | for rev in revs: | ||||
| ui.note(_('pulling largefiles for revision %s\n') % rev) | ui.note(_('pulling largefiles for revision %d\n') % rev) | ||||
| (cached, missing) = cachelfiles(ui, repo, rev) | (cached, missing) = cachelfiles(ui, repo, rev) | ||||
| numcached += len(cached) | numcached += len(cached) | ||||
| ui.status(_("%d largefiles cached\n") % numcached) | ui.status(_("%d largefiles cached\n") % numcached) | ||||
| @command('debuglfput', | @command('debuglfput', | ||||
| [] + cmdutil.remoteopts, | [] + cmdutil.remoteopts, | ||||
| _('FILE')) | _('FILE')) | ||||
| def debuglfput(ui, repo, filepath, **kwargs): | def debuglfput(ui, repo, filepath, **kwargs): | ||||
| hash = lfutil.hashfile(filepath) | hash = lfutil.hashfile(filepath) | ||||
| storefactory.openstore(repo).put(filepath, hash) | storefactory.openstore(repo).put(filepath, hash) | ||||
| ui.write('%s\n' % hash) | ui.write('%s\n' % hash) | ||||
| return 0 | return 0 | ||||