Questions tagged [keyword-expansion]

16 questions
6
votes
2 answers

How to expand some version keywords in Mercurial?

In CVS I could put $LOG$ into the source file and when the file is checked in $LOG$ will be expanded into true logs in the file. But how to implement this in Mercurial? Of course I mean the other keyword such as the latest checkin date and time.
4
votes
2 answers

TFS and keyword expansion

We've just moved some projects from Microsoft Visual SourceSafe (VSS) to Microsoft Team Foundation Server (TFS) and have now noticed that keyword expansion no longer works. For instance, keywords like $Log$ or $Header$ are no longer expanded to the…
user83450
  • 481
  • 2
  • 6
  • 7
4
votes
2 answers

Is there a hook which updates $Id$ in files on clone/pull?

I have a bare (remote) GIT repository with the several users blessed to commit there. On repository clone/pull I want that each source file which contains magic $Id:$ is expanded to smth. like: $Id: . It'd be amazing…
4
votes
1 answer

Eclipse Git keyword expansion

I need to to update my source code revision keywords (@version, @date, etc) every time I am checking out the source to the git-hub server. As you might know: The main problem with this in Git is that you can’t modify a file with information about…
Eugen Mihailescu
  • 3,553
  • 2
  • 32
  • 29
2
votes
2 answers

Can you combine keyword argument expansion with regular keyword arguments?

What I want to do is this: logged_in = { 'logged_in': True, 'username' : 'myself', } print render_template('/path/to/template.html', **logged_in, title = 'My page title', more = 'even more stuff', ) But that doesn't…
st-boost
  • 1,877
  • 1
  • 14
  • 17
2
votes
0 answers

How to make git-svn act like the keyword expansion of SVN?

Git has limited keyword expansion capabilities. I know that I should write some scripts that actually do the expansion, because git itself won't. Right now I'm not that worried about the expansion actually being done. My problem is that I have to…
ytg
  • 1,755
  • 2
  • 23
  • 41
1
vote
4 answers

Git keyword-expansion or alternative

Having read some postings here about this topic, I realize that there are quite some cons that speak against using keyword-substitution. Nevertheless, I need a way to solve following problem and hope that somebody might have an idea on how to solve…
quaylar
  • 2,617
  • 1
  • 17
  • 31
1
vote
3 answers

Github - how to include info in your source

Is their a way to inject last commit number/branch information into your code files in github? Maybe using some kind of reserved word or token? I'm a little new to advanced source control and git so forgive if I'm not using the right terminology and…
BuddyJoe
  • 69,735
  • 114
  • 291
  • 466
1
vote
1 answer

GIT how to inject commit infomation inside a file so that during/after push to remote?

We were given a task to inject commit information like committer, commit date and author name inside a file committed. After some search and this thread How can I populate the Git commit ID into a file when I commit? we achieved injection into a…
Sherzodbek
  • 170
  • 1
  • 20
1
vote
3 answers

Source Control Checkin Comments at Top Of Source Files

I've noticed a discrepancy with some source files in our system whereby some contain source-control checkin comments, and some do not. These comments are added automatically to the top of the file when it is checked in: * $Log: …
James Wiseman
  • 29,946
  • 17
  • 95
  • 158
1
vote
0 answers

wordexp results if there is no matching file

i have a problem with the usage of wordexp. If this function cannot find any files, it returns like it had found 1. #include #include #include int main(int argc, char* argv[]) { if (argc < 2) return…
mch
  • 9,424
  • 2
  • 28
  • 42
1
vote
0 answers

How to push and pull from github without sharing sensitive information? Smudge & clean?

When I pull from github to a server repository I want to avoid overwriting localized sensitive information in certain files, for example config.php. Note: it's not an open-source type repo; I have full control over the repository, I'm the only…
CommaToast
  • 11,370
  • 7
  • 54
  • 69
1
vote
1 answer

Rational Team Concert - version numbers / keyword expansion

I am trying to create an automatic build package which the build version embedded. The version control system in use is RTC. As far as I can see there is no keyword expansion, nor file version numbers. On the RTC forum someone replied (pp) "there is…
TenG
  • 3,843
  • 2
  • 25
  • 42
0
votes
1 answer

Custom Analyzer in Lucene 8.5

I am trying to implement a CustomAnalyzer using Lucene 8.5. It's purpose it to expand queries with synonyms from wordnet. My code is the following: private static CustomAnalyzer customAnalyzer() throws IOException { Map sargs…
dkaz
  • 305
  • 4
  • 14
0
votes
1 answer

SVN keyword expansion--replace once?

Svn can replace certain keywords with expanded info, like $Rev$ to $Rev: 123$. But the next time the document is changed and submitted, this replacement will get replaced once more, to the rev of the second submit. Is it possible to have…
Johann Studanski
  • 1,023
  • 12
  • 19
1
2