Uniface and git experiences | Uniface Development | Forum


Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

—  Results per page  —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters
For a group of consecutive words like 'end of support' use Match phrase

sp_Feed Topic RSS sp_TopicIcon
Uniface and git experiences
06 May 2017
11:39 am
Forum Posts: 38
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi all

I am testing with git nowadays using a silly Uniface form to export all modified components since last time. It is a nice way to review every modification done by the team and, of course, to have control version.

The main problem is UTIMESTAMP and UCOMPSTAMP (I have understood version 10.3 will remove this inconvenient).

The experiment, and the reason I am sharing this, consists in using git filters to remove both fields.

It’s a way to filter files from/to repository to indent, remove, alter or whatever files before entering in. 


Configuration is quite simple. From repository just get the file as is (through command cat)

git config filter.no_timestamps.smudge "cat"

But when commit, remove all UTIMESTAMP and UCOMPSTAMP tags (It should be “U….STAMP” but I have some troubles with quotation marks)

git config filter.no_timestamps.clean "sed -e 's/<DAT name=.U....STAMP.>....-..-..T..:..:.....<\/DAT>//'"

And adding this line to .gitattributes will force every XML file to pass through defined filter:

*.xml   filter=no_timestamps

As result, every xml file committed to repository skips UTIMESTAMP & UCOMPSTAMP lines. So if you open and compile a component it will not be considered as a modification anymore. They are in your working copy but never reach repository. And when import these altered files, Uniface has no problems at all and considers these fields are empty.

Do you have any experience with this? Any improvement?


Best regards

09 May 2017
12:15 pm
Theo Neeskens
Forum Posts: 366
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi Luis,

As for the UTIMESTAMP and UCOMPSTAMP, in a future release of Uniface 10 we will introduce Work Area Support. The main goal of it is to make it easier to use Uniface in combination with version management systems. One of the things we will do to achieve that, is to introduce a file format that is easier to read and easier to merge than our current export format. And to avoid constant merges/conflicts this file format will contain neither a modification nor compilation time stamp. (so you understood correctly Laugh)

I think it is great that you have found a way to filter out the time stamps.
It is a very useful way of working with Uniface and git until the Work Area Support becomes available.
(wish I had seen this option when I was experimenting with git, would have saved me a lot of merging)



03 Mar 2018
12:10 am
Arthur Barrett
Forum Posts: 14
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Or, you could just use the tool that has been around for 18 years already doing exactly that… 

Works with Uniface 7, 8, 9:


Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 131

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ulrich-merkel: 1840

Iain Sharp: 663

Theo Neeskens: 366

gianni: 331

istiller: 285

rogerw: 268

Knut: 219

lalitpct: 197

Arjen van Vliet: 182

sochaz: 173

Member Stats:

Guest Posters: 3

Members: 9740

Moderators: 0

Admins: 8

Forum Stats:

Groups: 1

Forums: 62

Topics: 2270

Posts: 9824

Newest Members:

agrohimujg, Ramhaturiff, best_auto, kings1, skorp0883, oraha, Anitastync, marina1993m, CharlesRip, Angiefoxlome

Administrators: admin: 23, Adrian Gosbell: 318, diseli: 1017, Bob Maier: 3, Nico Peereboom: 80, Michael Rabone: 4, richiet: 406, JanCees: 34