Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hard to open a file in a numbered pending changelist #187

Closed
gareth-rees opened this issue Feb 7, 2015 · 2 comments
Closed

Hard to open a file in a numbered pending changelist #187

gareth-rees opened this issue Feb 7, 2015 · 2 comments
Assignees
Labels

Comments

@gareth-rees
Copy link
Owner

miheer vaidya wrote in e-mail (quoted with permission):

Hi Gareth, I am using p4el for some time. I liked it. But I think it give more of wrapper for executing p4 commands, sure it helps to fire off commands from emacs than reaching bash but still I am dependent on p4v for doing my daily job (hence intern using mouse and gui)
Does this plugin suffice for your daily workflow?

My workflow goes like this:

  • Create new change
  • Visit file and mark it for edit I use C-x p e but that opens file for edit in default change. What I would expect is C-X p e should open small buffer with list of recent n cls. and open file in selected change. As cl numbers are >9 digits and i don't think i can always provide prefix argument.
  • Periodically take a look at recent cls and then shelve all files in cl/ if all files are saved in cl revert files in cl.

Need your thoughts on

  1. if I am missing something obvious (which can already be done with plugin)
  2. Your workflow using plugin.
@gareth-rees gareth-rees self-assigned this Feb 7, 2015
@gareth-rees
Copy link
Owner Author

The workflow that I use is:

  1. open files in the default changelist;
  2. submit the default changelist.

In particular, I don’t want to be interrupted at step (1) to have to choose a numbered changelist. I don’t often use numbered pending changelists, or keep files open in my workspace for very long, or make much use of shelves. If I need to keep changes isolated from other Perforce users, then I use branches.

But if I understand correctly, you’d like an easier way to add/edit/delete a file in a numbered pending changelist. At the moment the easiest way to do this is probably:

  1. open the file in the default changelist;
  2. type C-x p o (p4-opened);
  3. in the *P4 opened* buffer, find the file you opened;
  4. type c (p4-opened-list-change);
  5. enter the pending changelist (using TAB for completion on your pending changelists)

However, it would be straightforward to add commands of the form “edit/add/delete file in numbered pending changelist” (with TAB-completion on your pending changelists). But this needs #188 to be fixed first.

@gareth-rees
Copy link
Owner Author

miheer, in commit 8c2fae4 I added a new customization option, p4-open-in-changelist, that might help you work more easily with numbered pending changelists. Please download the latest version of the code, try it out, and let me know if it works for you. I won't be using this option myself (as explained above), so I'm relying on you to report any problems you find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant