Get all files from VSS for a given date? - visual-sourcesafe

Is there a way I can ask Visual source safe to get all the files from a given date for a project? We don't use labels, so I can't roll back to a specific label and am hoping that I can somehow just call a certain date range to get the files as they existed on a specific date? Impossible?

As far as I know you have to use the get command at a command prompt, not the gui. Something like this should do:
ss Get "$/AFolder" -R -Vd15-03-2009;2:00a
The -R option makes the get recursive and the -vd option gets the version at the specified date.

You can right-click the project, choose Show History and get the version of a given date from the history explorer.

Using SourceSafe: Get by Date
http://web.archive.org/web/20120615102028/http://brennan.offwhite.net/mtblog/archives/000282.htmll

Using the command line, use the get command with the -Vd parameter
ss get $/Project -R -GTU -Vd4/30/2009;3:00a
I'm not sure, but I don't think there is a way to do this with the ui.

Related

How to use nirsoft's BulkFileChanger's Command-Line Option to change a file's DateTime

I cannot figure out how to change a win10 file's modified time using the command line option for Nirsoft's BulkFileChanger.exe
There are examples on the information web page under the heading Using BulkFileChanger, Command-Line Options showing how to use a command-line statement to change a file's DateTime, but I apparently cannot figure out how to change a file's modified date. Here's the code I used in my failed attempt:
"E:\Apps\NirSoft\x64\bulkfilechanger.exe" /ChangeTimeAttrSingle "E:\Apps\Delete01\test4 - Copy.bat" 10 0
I'd appreciate any suggestions about how to change a file's modified date using a command line operation. A python program would be best.

SVN: How to list author, date and comments from svn log

I am using SVN on Windows 10 machine. I want to list Author, Date and Comment of all commits within a date range. So I want to report 1 line per commit and each line has 3 columns. How can I do that?
I want to be able to copy that report and paste in Excel.
Thanks
Short answer
Nohow. You can't change format of log output in pure SVN, you can only disable (-q option) log-message in separate line(s)
Longer answer
Because svn log have always single (documented) format of output and -r option accept date as parameters you can write appropriate log-command and post-process results (in standard human-readable form or in xml-output)
Long answer
If generating different custom reports from SVN-repositories is your long-running regular task, you can to think (at least) about using Mercurial (with hgsubversion) as interface for processing data. With HG you'll have
- transparent access to original SVN-repos
- full power of templating and revsets for extracting and manipulating of data for your needs and requirements
What you are looking for is called the Subversion Webview. These are third party mostly free to use web view of your repository where you can filter out commints like the following:
You can either filter there in the view or copy it in excel and add a filter yourself.
Hope this helps.

It it possible to configure Compare to use the Merge tool instead of the Diff tool?

I often need to compare the current version of a file with some previous one, and copy bits from one to the other. I can get close with TFS Compare:
except that by default, Compare uses the Diff tool, which only lets me view the diffs, but not copy from one file to another:
TFS comes with a Merge tool, which does let me copy, so is there a way to use this for comparing, or some other way to invoke the Merge tool, specifying the current file and a previous version? (I know that I could set this up with command line arguments, but then I'd have to do a lot of manual work to pass the current filename, get the previous version from TFS into a temp file and pass that filename. I'm looking for something that's integrated into Solution Explorer, and works like Compare, so it's just a couple of clicks away.)
I love using WinMerge for both the operations. You can find instructions on how to do it here: http://blog.degree.no/2013/12/using-winmerge-as-the-default-diffmerge-tool-in-visual-studio-2012/

Modify a directory without changing the timestamp

Is there a way to copy file A into directory B without changing B's timestamps? If yes, then what is it?
edit:
The larger goal: I'm digging through some code I wrote more than a year ago. I found that there were somethings I did which will always be confusing to my future self. I want to add a README file there explaining the gotcha. But I want to preserve the last time I worked in that directory.
Finally:
Thanks for both the answers. I ended up doing "touch -r B/newestoldfile B" which was good enough for my purpose. Even though like someone pointed out, that isn't the exact answer to my question in all circumstances. I voted up both the answer but had to pick on as accepted. I chose the one that briefly mentioned the -r option :)
Capture the old mtime of the B directory. Then move the file, then rewrite the mtime of the B directory with old mtime that you have stored, using the touch command.
old_mtime=$(stat -c%Y B)
mv A B
touch -d"$(date --date="#$old_time")" B
We use #$old_time to create the date representing by $old_time seconds since epoch, which is what stat gives us.
You can take the timestamp from the directory before copying with stat -c %Y and then use the touch command to modify the timestamp after.
If you simply want to copy the timestamp from directory A to B :
touch -r A B
When you code, you should use a Source Control System like Git, Mercurial or Subversion. It allows you to create a repository of the files of your project, edit the files, register the versions with comments on what you changed, eventually merge the edited files into the project, host it in the cloud by using a distributed system.
Others already replied correctly referring to the method you mentioned, but i wanted to give you a better suggestion using another solution that you'd better use also in the future.

How to change icon/emblem of a directory from bash

I'm playing around with get_iplayer (fantastic) it's running every few hours to grab any new episodes of whatever....
After it has finished grabbing anything new i'd like to change the emblem of ~/Videos to add a plus or star (nautilus emblem preferably)
Do i go about this via nautilus?
Do i need to change something in gnome-config?
I'm sure this can't be FS level?
Cheers for any links and advice.
gvfs-set-attribute ~/Videos -t stringv metadata::emblems new urgent
gvfs-set-attribute -t string $FOLDER metadata::custom-icon file:///home/user/path/to/icon.jpg
There's a package called libnautilus that provides tools for working with nautilus, including emblems. It's what Dropbox uses, for example, to add emblems showing sync status. You could try looking at the source of that.

Resources