How to delete the changelist history and reset the changelist change number? - perforce

I've uploaded a pic of my p4v changelists history. What I would like is for this changelist to be number 1 under the "Change" column, basically delete the history to reset the number.
Also for the future, I would like to know how to delete all the changelists there and just a single head revision.

Related

Where can I find list of changes I made in excel worksheet? [migrated]

This question was migrated from Stack Overflow because it can be answered on Super User.
Migrated 21 days ago.
I made some changes in my excel worksheet and want to view for the list of changes I made, however, the history sheet is not displaying after I click the "OK" button in the Highlight changes dialog box. I watched the video about Track changes, and part of the video shows that after clicking "OK" button the history (list of changes) sheet is displaying. I expect the same thing I saw in the video,
These are the steps I followed:
Click Review > Track Changes > Highlight Changes.
Under Highlight which changes, select the When check box and then, in the When list, click All.
Clear the Who and Where check boxes.
4.Select the List changes on a new sheet check box.
Click OK.
# In the history worksheet, click the filter arrows next to the column labels to find the information that you want.
*

SharePoint List items dropdown value automatically changes when edited

I've encountered a very weird behavior when editing any field on an Item(new or old) in a custom list where this specific dropdown field's text value changes from "Temporary" to "Permanent".
As a background we've added this field a year ago and just moved the position of this field by manually cutting and pasting on the first portion of the NewForm and EditForm.
I've already checked that there are no workflows that automatically start when an item is edited because they are configured to be manually started.
Could this be a content type issue? Not sure why it automatically changes value as soon as I press save in the Edit Form. I would like to experiment in deleting the portion below from the EditForm, but i'm concerned if I delete this in the EditForm will I lose any data?
Admittedly, I don't have much knowledge about SP :(
Try to check is any event receiver attached to the list.
$spWeb = Get-SPWeb Identity http://Site
$spList = $spWeb.Lists["Custom List"]
$spList.EventReceivers | Select Name, Assembly, Type

Remove Redo actions in Memento?

In my application a user can add rows to a DataGrid and change properties of each row. The user can also delete rows. It works fine to undo and redo these actions but if the user adds rows, say three, modify some values and then undo back to where there is only one row and then add a new row it seems illogical to be able to redo the undos(having new rows appear after the last added one). Thus when the user adds a new row I want to delete all Redos.
I tried to use RedoBatches to get an enumeration of all redos and then do Clear on each to remove them but the Redo button is still active and will Redo these actions when pressed.
Is this the proper way to try to achieve this or is it not possible or should I do it differently?
When adding items using an object, you can use UnregisterObject to unregister. It will automatically remove empty batches as well.
Another hack is to cast the Undo / Redo batches properties to a List<> and modify them accordingly (but note that you are "messing" with internals in that case).

Lotus Notes - Move email to folder quickly

I have several folders to manage emails in a Lotus Notes database.
And I want to move email(s) to a specific folder just by a few key strokes.
It would act like this:
1. Click a button (It seems one cannot create a user-defined shortcut for user command)
2. prompt an ComboEdit box, whose options are the folders in current database.
3. input a few letters and the filtered results shows.
4. Choose the folder and press {enter}, the email(s) gets filed.
Just like Launchy to start a MS Windows application.
Is it possible to do this by using the #function and #command?
I've got some info here:
#Prompt([OkCancelEditCombo]; "Select a Database"; "Select a database to open, or type a database specification."; "Schedule"; "Schedule":"Phone Book": #Subset(#MailDbName;-1))
So how can I get a list of folder and to enable step3 to work?
In my Lotus Notes client I move my mails to a folder by just doing the following:
Click Alt + 5, M
(the number and the letter depend on the version and language of your mailtemplate, 5 is the fifth Button in the action- bar and "M" is the underlined letter for the action "Move to folder")
Start typing the name of the folder where you want to put the mail
Press Enter
No need to write even one line of code... And it even searches for folders CONTAINING the text, that I typed, not only folders STARTING with that characters...
No, there's no capability in Notes formula language or even in LotusScript that could allow typing a few characters and filtering the available folder names without requiring the user to press the Enter key or click on something first.
You could mock that up in a dialogbox using the onchange event of a dialoglist field that allows new values and doesn't define any values -- you would have to calculate the matching values yourself and put them up as the choices in a second keyword field. Or you could take advantage of the typeahead of the dialogbox field and give it all the folder names as its choices, but that wouldn't work exactly as you described.
BTW did you have a look at SwiftFile for Notes?

How to Delete (desired text), delete (undesired text), and paste (desired text) in Vim

I don't know if its a retarded problem but it's a funny dilemma. When I want to delete text that I want to place somewhere else, but that place has other bunch of text that I don't want, I would delete that text, but in the process I copy a new clipboard so the previously deleted text disappear.
Any suggestions to solve this?
A few possible solutions:
Delete the undesired text first :)
or
When deleting the desired text store it in a register other than the default register e.g. to delete the desired text to the end of the current line and store it in register b:
"bd$
Then delete your undesired text.
Then paste the contents of register b:
"bp
or
Delete the undesired text to the black hole register as suggested in the answer linked to by Yarek T using:
"_d
maybe this question might shed some light onto your problem. 54255
It uses the "black hole buffer" to delete lines without adding them to the yank buffer.
Another solution is to use the number registers. When you delete a chunk of text it is moved into register 1, the current contents of register 1 is moved into register 2, etc. The contents of register 9 are discarded. However this only works for changes longer than a line, so small deletes are not captured.
So you can delete the first region, delete the second region, then paste from register 2.
Personally I prefer to use registers a-z, but the numbered registers are useful if you delete some text and then realise you forgot to specify a register.
Do :help "1 for more information.
You can also see what is currently in all the registers, including 1-9, with :registers
Type:
:registers
And you'll get a list of registers that contain all previous deletions. You can always pick one to paste. E.g. for registers:
"1 Item1^J
"2 Item3^J
"3 Item2^J
pick the second one and paste it with:
"2p
Try the yankring plugin.

Resources