Details
Details
- Reviewers
- Alphare - indygreg 
- Group Reviewers
- hg-reviewers 
- Commits
- rHG5fe25f8ef5d9: rhg: add a `Files` `Command` to prepare the `rhg files` subcommand
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
- Automatic diff as part of commit; lint not applicable. 
- Unit
- Automatic diff as part of commit; unit tests not applicable. 
Event Timeline
| rust/rhg/src/commands/files.rs | ||
|---|---|---|
| 47 | I imagine this pattern could become quite common. We may want to introduce some type of _writer_ type that has impl Drop so we can do something like the following: {
    let mut stdout = self.ui.stdout_writer();
    stdout.write(b"...")?;
} | |
| rust/rhg/src/commands/files.rs | ||
|---|---|---|
| 47 | I can see that being useful, we'll see if that comes up a lot. The question of doing line-buffering as a config option is still up for debate, maybe that'll complicate the pattern you're proposing somewhat. | |
I imagine this pattern could become quite common. We may want to introduce some type of _writer_ type that has impl Drop so we can do something like the following:
{ let mut stdout = self.ui.stdout_writer(); stdout.write(b"...")?; }